When the player completes a level, a button pops up offering the choice to retry the level. When the player clicks the button, I want my game to fade out, restart the layout, then fade in.
So I have the following eventL
Retry -> on clicked ->
System create object fader on layer 3 at 0, 0
fader set size to WindowWidth, WindowHeight
fader start fade
System wait 1.0 seconds
System restart layout
However clicking on the button does nothing. If I remove the wait event, then button works, but the layout restarts first, THEN the screen fades to black.
Thank you in advance.
Develop games in your browser. Powerful, performant & highly capable.