Restarting level in a puzzle game

Get help using Construct 2

Post » Tue Aug 13, 2013 11:52 am

Actually the above won't work for your game. Sorry, do this :

On left button clicked on reset button > Restart layout, reset global variables to default.
B
43
S
13
G
59
Posts: 1,779
Reputation: 35,731

Post » Tue Aug 13, 2013 12:57 pm

the issue was on the restart of the layout all of your blocks were being destroyed and that would make the cubes_level_01 counter drop to -10 on restart of the layout.

so having a reset global variables like plinkie said or doing like paradox said and adding a "on start of layout > set cubes_level_01 to 3" (this is the way I also solved the problem when i tried before looking at the thread) the game resets the value to 3 on restart rather then following the code and leaving it at a -10 value.
B
24
S
7
G
1
Posts: 82
Reputation: 2,525

Previous

Return to How do I....?

Who is online

Users browsing this forum: AekiroStudio, Lancifer, lucstanislash, RetroSpock and 11 guests