How to record the gameplay and show it in the game

Hi,
I want to record the game-play of the player so that he can see it later from different cameras. Similar to what they have in racing game , once you finish the race then you can view the whole race again and change the views in between.

If nothing random happens in your game, you can just save all the input of the user in a list. (It's a little bit complicater than that, but that's the main idea.) Then when you want to replay, you just restart the game and instead of using new input, you use the old input in the list. (And you write a script to control which camera should be used.)

1 Answer

1

This is probably not what you’re looking for, but it might point you in the right direction. It’s a script that plays back the game and outputs each frame into a folder that you can later then stitch into a movie.

If you’re looking for a comprehensive solution for saving the state of the world and playing back that later, there isn’t anything like that built in, and I don’t know of any middleware to help you achieve that off the top of my head.

Original Author: