- Home /
Fade Screen Transition After Death
Hi there
I want to add a transition between, when the player dies, and when he comes back to life. So I was thinking to add some kind of a black screen transition which fades in between when he dies and comes back to life. I would like to control how many seconds the transition should be :)
Any suggestions how I can do that?
Answer by MarioSantoso · Apr 19, 2018 at 03:46 AM
There's one way to do this and I've always use this.
Create a canvas. Set screen space - overlay
Add UI > Image object. Set dimension and position to stretch (so it fills up the whole screen)
You can leave the sprite empty, just change color to black.
Create a script that change the sprite alpha on certain condition. (You can use Lerp or download any tween plug-ins that are freely available in asset store).
Trigger the condition to start the fading.
Your answer
Follow this Question
Related Questions
Player movement for iOS? 1 Answer
Need help getting the screen to fade. 2 Answers
Make damage screen ui image 1 Answer
Player Mesh fade from one color to another 1 Answer
Why do AudioMixerSnapshots not crossfade properly when transitioning? 0 Answers