Keep variable values

Get help using Construct 2

Post » Sat Jan 19, 2013 5:50 pm

[QUOTE=FrodoBaggins] Hi,
Currently, when I change layout, the global variables will reset[/QUOTE]

Unless you are triggering the "Reset global variables" action, they shouldn't be. That's the whole purpose of global variables.

Global Variable Demo Capx
R115: Press space bar to progress to the next level. Notice how the score does not reset.

Be sure you don't have any "On start of layout" events where you are setting the score back to 0 - this will fire every time you change to a new layout, not just the first time you start your game. boolean2013-01-19 17:52:14
B
24
S
4
G
1
Posts: 244
Reputation: 3,462

Post » Sun Jan 20, 2013 4:18 am

Thanks Whiteclaws and boolean, a combination of your two answers solved my problem :). My score counter now works fine.

-Frodo.
B
4
S
1
Posts: 20
Reputation: 790

Previous

Return to How do I....?

Who is online

Users browsing this forum: blackhornet, jeffige, TheHat and 0 guests