- Home /
How to make a dramatic big finish?
I'm making this game and I was wondering if it would be possible to replay like the last 5 seconds before the player died after he died, but slower and dramatically. So after you blow up and die, it shows a quick instant replay from the enemy's perspective as it moves to the player and destroys it. Then it shows the game over scene. Is there any way to do this?
you need to keep a buffer, recording all events that happen in the scene, so you can "replay" from 5 seconds ago. It can be quite a complicated system depending on how your game works, but there's really no other nice way of doing it.
how exactly would you get the buffer? is it a component or a script?
All you need is registered the Transform at a certain frequency. That is for instance, every 0.2s, you store them in order in an array and then you just replay the array in order with interpolation between each position and rotation.
$$anonymous$$aybe you could also have a camera set up to record the player in a "dramatic manner" then just display what the camera recorded for the player who died but in slow motion. Otherwise you'll need a buffer like Benproductions said.
Do you want to do a Slow-$$anonymous$$otion movements? Use: Time.timeScale = 0.3; If you has an animation, make it slowly.
Answer by unimechanic · Feb 22, 2014 at 02:15 AM
Several valid answers were provided in the comments. [Adding this answer to remove it from the Unanswered list.]
Stop bumping old questions with irrelevant answers for the sake of "$$anonymous$$oderating"
As explained in comments this is a design/discussion question, there are useful answers in the comments and there is no reason to keep an answered question as unanswered.
A preferred way would then be to edit the question so that it mentions that this question is answered in the comments. Then close the question.
Answers are for answers; solutions to the problem the poster posed.
Comments are for talking about the problem; getting more info, possibly giving suggestions and thoughts on what to try next.
If you are this worried about unanswered questions, Unity Technologies should improve the unanswered filter such that it filters out closed questions as well. Then only the truly unanswered questions would show.
Your answer
Follow this Question
Related Questions
How do I make my player face the direction its moving. 0 Answers
How To Show Score On End Game 1 Answer
How do I add a Game Over text to my timer? 1 Answer
Webplayer - Watch players in realtime/Save replays 1 Answer
Need help: Replay have bug... 0 Answers