How do I record player platform movement?

Get help using Construct 2

Post » Fri Feb 12, 2016 8:07 pm

Is it possible to record a player movement to replay it later?
Like for example the arcade games in atract mode.

I just want to record it once, so it shows when the game is not being played. Not sure if I'm explaining myself :shock:
B
5
S
1
Posts: 42
Reputation: 471

Post » Fri Feb 12, 2016 8:25 pm

I think there is no "ready to go" tool for this in c2. But it's not impossible. You just need to create it by yourself, which is a pretty hard task I think because you have to store all values regarding to movement and other stuffs like damage taken and etc.
B
52
S
21
G
3
Posts: 599
Reputation: 6,506

Post » Fri Feb 12, 2016 9:20 pm

For one object you could save it's x,y,angle, etc every frame to an array, then play it back.
Something like this:
replay-like-meatboy_p639426?#p639426

You could do the same for multiple objects.


Another idea would be to save the player inputs and play those back. Unfortunately that is tricky to get a perfect replay with since the varying dt will get the timing off quick. It is possible though with a carefully designed game. It may not even matter in the long run as it would give some variation in the long run.
B
85
S
27
G
85
Posts: 5,070
Reputation: 57,874


Return to How do I....?

Who is online

Users browsing this forum: kabaal, oddreal, raulcg1981, SondeepH and 11 guests