How many events or global variables is too many?

0 favourites
  • 3 posts
From the Asset Store
Very simple code without excess options (15 events for server and 11 events for client)
  • I have 600 global variables and 2000 events in my game.

    Will having too many cause problems or slow down the game when its published?

  • it depends on how those events are structured and what they are doing...

    having thousands of events can work just fine, but you should use the debugger to see how it is running (cpu usage, memory, fps).

    Having that many global variables sounds like it would be very difficult to manage... there are probably much more efficient ways to store the data you need by using instance variables, arrays, and other techniques. If you describe what your goals are, we can make more specific suggestions.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hey Allan, thanks for the response. I have so many global variables because each one is for one star in a level. There’s 3 stars per level. When the star is collected, it shows up on the level select screen. I’m sure there’s an easier way lol but I don’t have enough experience

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)