Using buttons to reload a layout with a fade

Get help using Construct 2

Post » Thu Jul 19, 2012 1:55 pm

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.

Posts: 67
Reputation: 3,186

Return to How do I....?

Who is online

Users browsing this forum: irina and 24 guests