Record events for replay (time-travel)

Hi guys !

I have an idea for a portal-like puzzle game about time travel but I don’t know how to make it work with what I know in javascript.

I need to be able to “record” some actions, like the player movements, some triggers and replay them when the player goes back in time (so he can interact with his past self).

Any easy way for this to be done ?

Thanks in advance !

Manny

There’s no easy way of doing it.

First you must implement a some sort of logger to register player’s input or character’s movement.

Second you need a system to read those logs and then backtrack the actions to the desired point.