Hi everyone.
I’ve reached a point in my game where i need to consult people whom are knowledgable about Globals, but first my goal.
I have levels and a level select screen.
Every level has 3 stars, upon completion, depending how many you got will be displayed on the level select screen.
So far i have a variable local starsCollected = 0 on each level.
Everytime you collect one it increases until you get 3.
My plan was to save this number and place the corrosponding stars on the level select screen.
What is the best way to go about this, for effiency for mass levels?
I can only think about using Global Variables, so i could set them in the level and read them in the select screen, but this would require 1 global variable per level, which would turn into 90+ by the end.
Although there would only be 1 per level and no collision or timers are related to them.
But i heard Globals are Bad M’Kay…
What about a Global table, is that more efficient?
Probably best to keep a Global Variable Module to keep things organised too.
So, what would be the best way for me to go about this?
[import]uid: 91798 topic_id: 17627 reply_id: 317627[/import]