PlayMaker Help & Tips > PlayMaker Help

Return to title screen on player death

(1/2) > >>

unearthly:
Hi guys, wondering if you can help me with a minor problem.

I have a return to title screen option working with a key press, but when used to load the title screen after the players death there's a graphical problem. At the players death the screen fades to black before returning to the title screen level,.. but between them a view of the game world reappears for a second. It's that image I don't want appearing.

jeanfabre:
Hi,

 you need to also include a fading on your level.

 so your level as a canvas with a black image by default, and you fade this fade automatically when the level starts.

 this way you avoid this kind of issues.

also, I suggest you move away from the action fade as it uses the old UI, instead you could make a dedicated canvas with just the fade image in full screen and make that canvas persistent in your game, and survive loading which would have the same effect. and you can reuse this everywhere you need a fading.

 Bye,

 Jean

unearthly:
Hi jeanfabre,

Not sure how to fade the black image on canvas. Are we talking about a sprite animation or a way to use actions to control alpha on a material or something else? :-[

Regards Charles

unearthly:
Hi jeanfabre,

This tutorial showing a way to fade objects with Playmaker looks like a good way to do it //www.youtube.com/watch?v=6WxC9-ihV0M
Regards Charles

Fat Pug Studio:
You can just stretch a single black pixel over the whole screen and change it's alpha in spriterenderer to fade, simple as that.

Navigation

[0] Message Index

[#] Next page

Go to full version