Which global variable do I use?

Get help using Construct 2

Post » Sat Aug 03, 2013 10:43 pm

Do I use a numbered global variable or a text global variable for a level select screen? I made a level select where the player can choose which level to do - no locked levels - and now I want to change the level sprite when level is completed.
B
11
S
4
G
3
Posts: 210
Reputation: 5,318

Post » Sat Aug 03, 2013 10:57 pm

You should be able to use either. It's all about implementation.

Suppose each level has a number, then you can simply check for globalvariable = level.number and go to that level.

If you want to name the levels, then you can do a similar check: globalvariable = level.name
Project Lead of Zems Online Card Game

Producer at Impulse Limited
B
18
S
6
G
3
Posts: 677
Reputation: 5,224


Return to How do I....?

Who is online

Users browsing this forum: 13spongg13, Kenthria, Yahoo [Bot] and 6 guests