Doppleganger mimicking player's every move

Get help using Construct 2

Post » Mon Dec 30, 2013 12:23 pm

Lerp function! OK, @rojohound's solution is what I am looking for. I can extend from it. Thanks @LittleStain !
I got a game that you multiply, breath fire with two heads and brawl foes to oblivion with your clones: http://www.newgrounds.com/portal/view/660664 (use Chrome on Windows for best performance)

My sites:
http://twinblazar.deviantart.com
http://twinblazar.newgrounds.com
https://twitter.com/twinblazar
http://www.pixiv.net/member.php?id=15072448
B
30
S
11
G
11
Posts: 411
Reputation: 8,469

Post » Mon Dec 30, 2013 2:15 pm

You can take dt into account when recording player movements and replaying them with another object. Take a look at this example. The example is for a braid-like rewind effect that takes dt into account when recording/rewinding. It could easily be modified to create a doppelganger effect. Instead of "rewinding" the recorded movement data, you can just replay the recording on a delay.

If the game's frame rate differs greatly when recording vs. rewinding, the replay can look choppy, but you could probably smooth it out by tweening the recorded data.zatyka2013-12-30 15:16:04
B
64
S
19
G
8
Posts: 341
Reputation: 12,185

Previous

Return to How do I....?

Who is online

Users browsing this forum: dop2000, Hyune and 12 guests