Arrays instead of Global Vars?

Get help using Construct 2

Post » Thu Aug 22, 2013 9:11 pm

I have @ 60 Global Vars for keeping stats that I use on an Achievements page in the game.

Is it possible to use a single Array instead of 60+ Globals to keep track of stats? It sure would be simpler to save ONE Array instead of 60+ Global Vars.

Thanks in advance!
B
12
S
2
Posts: 75
Reputation: 2,126

Post » Thu Aug 22, 2013 9:13 pm

Check out dictionaries.
Image
B
243
S
30
G
13
Posts: 1,787
Reputation: 18,770

Post » Fri Aug 23, 2013 3:34 am

Yeah, I think i'm gonna go with Dictionaries, Nice call MadFactory!

Thanks a ton. They seem equally as simple to save via webstorage as well, thanks again!
B
12
S
2
Posts: 75
Reputation: 2,126


Return to How do I....?

Who is online

Users browsing this forum: bclikesyou, kellehk, ST314 and 24 guests