Hey, and thanks for reading in advance.
In a class-based fighting game I’m helping to code, a few classes employ the use of dashing attacks - moves that rapidly create hitboxes as the player travels at moderate velocity.
The trouble with this is getting the hitboxes in the correct position. The system we currently have in place simply pings a remote every step of the dash to determine position, but you can imagine how this ends up failing - signal travel time causes hitboxes to appear very late or out of sync. I’m attempting to re-imagine the system a little and cut out the remote traffic entirely and simply have the server decide where to position each box without asking the client for information, but I’m having a little trouble:
Even if I perform the physics of the dash from the server, the server is sluggish and isn’t in proper agreement with the client about where you ‘are’ per se.
Is there any method to obtaining the client’s idea of your own position without using a remote and waiting for a callback? Should I just calculate the best fit by using ping to correct? Any help or advice is appreciated.
