Screen fade and game end

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By MungMoong

enter image description here

I have used ‘get_tree () .quit ()’ to terminate the game
Previously, I showed a fade effect on the screen with the ‘color rect’ node

Just before the game ends, the screen that you covered with the ‘color rect’ node will be briefly displayed.

I did not find any special problems in GDscript

Is there anyone who is experiencing something similar to me?

:bust_in_silhouette: Reply From: CalmTurtle

I haven’t experienced this problem, but I have a possible solution. Trying hide() the nodes and then throw your color rect. This way if the scenes pops through, there are no nodes to show. Good luck.

I did that and the menu scene does not disappear and it just keeps coming out.

I’ll find another way.

Thank you!

MungMoong | 2019-03-25 03:40