"Super meat boy"-ish replay of platformer game

Hey guys,
I’m making a platformer built from mini-levels - and I want to create a sort of a replay of all the player tries that the player did for the level.

My question is - what is the best way to record the player’s actions in-game, so that I could replay them later when he finishes the level.

I thought about recording only the player’s input and replay them later on, each on a clone of the player.
The problem I have with this is with dynamic obstacles (that could be moved around) - if one clone moves them, it throws the simulation off for the rest of the clones.

So then I thought about recording every frame the X/Y of the player, and then just replay it - but that seems it could cause a major memory leak and very ineffective.

So - does anyone have any ideas? :slight_smile:

Hi!
I’d suggest you give a good read on Data Mining. You can even search unity3d data mining, someone made an example. A source code is provided at the end but it probably wouldn’t work out well… Give data mining a good read so you get the gist of how to implement it yourself.
Good luck!

Ps if you want to go an extra step and see an example from a real game, try WOT. They made a really efficient system capable of saving an 18 minute game in around 1.2 MB of data… That sounds impressive but then again someone may come here and say it’s possible to make it a lot less and same quality.*