global variables & Conditional Events

Get help using Construct 2

Post » Mon Apr 16, 2012 10:05 am

Hello,

I was wondering if there is a maximum amount of global variables that should be included in a HTML5 game, or if the amount of these variables doesnt matter?

My main question is because i am building a tower defence game that utilises random event generation from a list, with each event held in a group. plus a variety of global variables monitoring score, resources and also how you deal with different alien races through a text adventure component of the game.

I already have a lot of global variables and am unsure if to many could be a problem or not.
thanks for any info.
B
25
S
7
G
5
Posts: 185
Reputation: 5,056

Post » Mon Apr 16, 2012 3:01 pm

There is no problem with having a very large number of global variables. There is no limit on them.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Mon Apr 16, 2012 3:18 pm

excellent, i didnt think there was a limit but i was concerned it might affect gameplay or framerate or something if i had to many global variables doing things in the background of the game.
B
25
S
7
G
5
Posts: 185
Reputation: 5,056


Return to How do I....?

Who is online

Users browsing this forum: Artpunk, Axiomaltd, MACPK, nicklowkcmagic, OddConfection, radbrothers and 25 guests