At 6/21/13 01:59 AM, nitokov wrote:
At 6/20/13 06:03 PM, MSGhero wrote:
The replay thing might be neat, but I kinda have an idea to do that as well.How would you do it?
I was thinking for every object to store x,y and time in array and move it according to that.
Normally, you give the game a command, and it reacts to it. So, in theory, I'd store commands and re-enact the game. I saw it in a vid about multiplayer: instead of storing/sending to a server the xy,rotation,etc of everything, send the commands that caused those things and lerp the in-betweens. So like, maybe "holding left for 90 frames, holding nothing for 200 frames, ..." maybe frames or time. You're gonna move a specific amount in those 90 frames holding left, and it will be the exact same as if you stored xys. And then enemies would be sorta the same. Theoretically.