D
DekuNut
Guest
Before I ask for help, I'd like to say that I do not want any finished code. Simply push me in the right direction, or throw me a link to a tutorial if you know of one. Pseudo-code is fine as well. I just want to be able to learn it, that way if I come across a similar situation in the future, I can tackle it on my own.
I want to be able to push a button, and have the player, enemies, and all objects revert to positions and animations that they were in - for example - 5 seconds ago. Problem is I have no idea how to go about this. It is easy enough to store the position of an object, but I can't seem to wrap my head around the concept of storing the position of an object every step, 5 seconds ago. Any ideas?
I'm working on a 2d mystery/action game. Player is a detective in a town infested with gangs, and he only real weapon besides his gun (limited ammo) and his fists is his mind. He can "predict" what enemies are going to do. That is the back (short) story if anyone was curious or needed more of an example.
I want to be able to push a button, and have the player, enemies, and all objects revert to positions and animations that they were in - for example - 5 seconds ago. Problem is I have no idea how to go about this. It is easy enough to store the position of an object, but I can't seem to wrap my head around the concept of storing the position of an object every step, 5 seconds ago. Any ideas?
I'm working on a 2d mystery/action game. Player is a detective in a town infested with gangs, and he only real weapon besides his gun (limited ammo) and his fists is his mind. He can "predict" what enemies are going to do. That is the back (short) story if anyone was curious or needed more of an example.