I see many fast fighting games, and when I play them, it’s very smooth, no lag at all.
But when I play my game I have lag, and latency problems. Everything is delayed and not synchronized. I do an attack and the hitbox is over there, when I’m right here. Someone else does a move and there’s a delay between the animation and the movement.
What trick or system are they using that I’m not? What’s the thing?
It’s really about optimizing your system as much as possible. Your latency issues may be caused by other systems that take up resources from the game, so it’s important to ensure that the entire game is well maintained and uses up-to-date methods. I have also found it helpful to do as much as possible on the client, such as visualizing effects, sounds, and anything that doesn’t affect other players. Hope this helps a little.
The problem, I haven’t started on any effects yet, I’m just starting on basic code right now making the system, but when I try it out everything, all the moves and skills are delayed and just look bad.