- Home /
2D Platformer Ghost Replay
Dear developers, I have been working on a 2D platformer (I have done that I'm not that bad), Anyway I wanted to add a ghost feature, but unlike car racing ghosts I want the player to have the jumping animations, walking animations... What do you guys think would be the best way to do this, All I am asking for is the best way to do this, but of course if you have some ready code that you might have from a previous project (Don't think so seems like I'm the only one implementing a ghost in a platformer) that would be greatly appreciated as it would greatly increase my project finish date. Thanks in advance AliquidHacker
Answer by NightLucididty · Sep 01, 2015 at 05:50 PM
Like you I am also working on a ghost replay,
The way I am doing it (Most probably is not the best way but seems to work for me),
Is to create a List that will store the order of the movement, what movement it is, and how long it lasted.
Then make a timer that will store the times and start the timer when the key of the movement is pressed. You can then add those on the list, and later on get the data and times from this created list and execute the same command for the same amount of time. That's pretty much it. Hope this helps, NightLucidity
Answer by joubqa · Nov 22, 2016 at 09:07 AM
Did you guys get this working? @NightLucididty @AliquidHacker ,Hi, Can you share the code? @NightLucidity @AliquidHacker
Your answer
Follow this Question
Related Questions
One animation overlaps the other 1 Answer
Blurry animations on android 0 Answers
Tutorial Program will not Run (First time in Unity) 1 Answer
How To Mirror Animation 1 Answer
Animation blocking rotation 2 Answers