Replay like Meatboy

Get help using Construct 2

Post » Mon Jan 07, 2013 9:14 am

Hi,

I want to know how can I do something like the Ghostreplay animations of Meatboy.

I want a replay ghost like I go from point A to B and press Space after that the Level reset and the ghostanimation started at the end of the animation the ghost will be stop. Is it possible? Because I want interact with the ghost later ingame.
B
4
Posts: 13
Reputation: 476

Post » Mon Jan 07, 2013 2:46 pm

The basics of it is that you save every x and y position incrementally in an array and plays it back when desired.

You might find tutorials around that demonstrate this, I remember there was a Braid example (time rewind) awhile ago. You might be able to use that to fit your needs: http://69.24.73.172/scirra/forum/viewtopic.php?t=9244&p=70772Julmust2013-01-07 14:47:18
B
16
S
6
G
6
Posts: 100
Reputation: 4,840

Post » Mon Jan 07, 2013 8:12 pm

Yes but that is only for one Player i want more Players on one screen....
B
4
Posts: 13
Reputation: 476

Post » Mon Jan 07, 2013 9:35 pm

Hmm, this would interest me too... let's have a think...
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
68
S
8
G
6
Posts: 930
Reputation: 9,358

Post » Tue Jan 08, 2013 12:04 am

More players ... More arrays ! Magic !
B
35
S
16
G
16
Posts: 2,222
Reputation: 16,589

Post » Tue Jan 08, 2013 12:26 am

A sprite and an array in a container works for this. Here's an example:
http://dl.dropbox.com/u/5426011/examples16/mario_record.capx

Notice that only two events are used for the recording and playback. The rest are just standard game events.

This idea can be extended by adding some interpolation between recorded states to smooth out hiccups caused by garbage collecting or other programs running in the background.
B
79
S
24
G
54
Posts: 4,743
Reputation: 40,749

Post » Tue Jan 08, 2013 1:50 am

Aggh! The array instances! I can't handle the madness!

Solid job, yet again ;)
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Tue Jan 08, 2013 1:59 am

[QUOTE=R0J0hound] A sprite and an array in a container works for this. Here's an example:
http://dl.dropbox.com/u/5426011/examples16/mario_record.capx

Notice that only two events are used for the recording and playback. The rest are just standard game events.

This idea can be extended by adding some interpolation between recorded states to smooth out hiccups caused by garbage collecting or other programs running in the background. [/QUOTE]

@R0J0hound your example made me wonder how is possible to port from CC to C2, i've ported some .cap to .capx but the results were not perfect.

The one what im trying to port was Braid's time rewind, isn't possible for HTML5?
B
96
S
25
G
20
Posts: 3,054
Reputation: 22,642

Post » Tue Jan 08, 2013 2:18 am

[QUOTE=Joannesalfa]
The one what im trying to port was Braid's time rewind, isn't possible for HTML5?[/QUOTE]

Of course it's possible ;) Instead of replaying the array forward, you step backwards, but it does come with complexity since you need to save time delays, animation frames etc.
B
15
S
5
G
7
Posts: 877
Reputation: 5,650

Post » Tue Jan 08, 2013 5:19 am

@R0J0hound Great example! Thanks!
B
37
S
9
G
7
Posts: 143
Reputation: 6,017

Next

Return to How do I....?

Who is online

Users browsing this forum: gregorysforster, Yahoo [Bot] and 21 guests