- Home /
The question is answered, right answer was accepted
How can I make a replay of a racing game?
I want to make a replay of my game. There are couple of objects running in the race and when they cross the FINISH LINE I have to repeat the part of race when they crossed the FINISH LINE to create a clear and slow appearance of winners. How can I do that...? Any help would be appreciated. Thanks in advance, Shraddha
Answer by EpiFouloux · Jun 10, 2016 at 12:09 PM
What you shoul do is place a Trigger Collider before the finish line and start recording status of your rigidbodies, when one crosses the trigger.
void OnTriggerEnter(Collider coll)
{
if (alreadyRecording == true)
return;
alreadyRecording = true;
// trigger the "recording"
}
Then after they crossed the finish line, reset all car bodies and other important variables to the first record, move the camera to the "replay" position, and make the cars repeat all actions from the record !
@ShraddhaP Can you accept an answer to close the topic?
Answer by softrare · May 30, 2016 at 08:47 AM
You can do that with our Asset Store package EZ Replay Manager https://www.assetstore.unity3d.com/en/#!/content/690. Just start the recording when at least one car is near the finish.
Did you really just throw a $75 product in his face?
We have a demo free to try which will show wether the package is suitable for his situation https://www.assetstore.unity3d.com/en/#!/content/3584 . Other than that, yes, EZR does exactly what he asks for so I think it is fair as an answer for his query.
Oh, that's pretty cool. I just thought the full version was a little expensive but maybe that's just me.
I might try the demo out for myself. :)
Of course you, too, are welcome to do so. If you have any trouble/questions/comments please contact us: http://softrare.eu/contact.html
Thanks a lot Sir, But is there any limitations of using the free version?
Yes, as a demo it only records a limited amount of frames per recording. Also saving the recording to a file is not included as a feature.
Ohh so I can not be able to fulfill my requirement from the free version?