Well, didn't know where to put this, so I'll put it here.
Does anyone have experience adding the ability to record and play back their games?
I've been thinking about how to do it, and was wondering if anyone has solved these issues before.
Some of the main issues I see:
1) Timing with Input
When playing back the recording, how do you know when to poll the "recording" for input?
2) Timing with the game
Games that use timers (for end of level, etc...) or are time based, how do you make sure the recording stays in sync with the game timers?
3) Randomness
My games incorporate a lot of randomness in them, do I create a new seed each time they play a game and save that seed to the recording file? This seems the most logical to me.
Anything else I should be concerned about?
Is anyone working on a Module for this type of functionality or maybe a Module to save game play as an AVI (with Audio)?
Does anyone have experience adding the ability to record and play back their games?
I've been thinking about how to do it, and was wondering if anyone has solved these issues before.
Some of the main issues I see:
1) Timing with Input
When playing back the recording, how do you know when to poll the "recording" for input?
2) Timing with the game
Games that use timers (for end of level, etc...) or are time based, how do you make sure the recording stays in sync with the game timers?
3) Randomness
My games incorporate a lot of randomness in them, do I create a new seed each time they play a game and save that seed to the recording file? This seems the most logical to me.
Anything else I should be concerned about?
Is anyone working on a Module for this type of functionality or maybe a Module to save game play as an AVI (with Audio)?