Jump to content
  • Advertisement
Sign in to follow this  
coolshamim

Record & Replay Utility

This topic is 3497 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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!