Jump to content
  • Advertisement
Sign in to follow this  

Record & Replay Utility

This topic is 3406 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi; I have developed first person shotter game. now i want to add record and replay feature in it. Can anybody let me the technique or utility other than saving states/events in file and playback in the same sequence for record and replay. Thanks in advance

Share this post


Link to post
Share on other sites
Advertisement
You should take a look at the Command Design Pattern. If all of the actions of your engine are encapsulated in a generic command class, you can store the commands and replay them in the same order later.

Share this post


Link to post
Share on other sites
Your simulation needs to be deterministic for starters. Then every frame you need to record the inputs into the simulation (e.g. key-presses, delta-time values, etc...).
Then when you want to replay, use the recorded inputs instead of actual inputs (instead of getting delta-time from a timer and key-presses from the user, just read them out of the replay file).

Check out the article "1500 archers..." for more info.

[EDIT]

Or if you just want to record a video of the gameplay, check out "YouTube Integration In Games".

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!