Feel like a noob asking this, but I’m trying to think of a better, more efficient way, for dealing with similar variables.
I’m making an achievement manager for a game, and each of the achievements has 3 levels within it. So you have to obtain the first level of that achievement, then the second, and so on.
My first instinct is to simple assign a variable to each achievement and level as a bool, and set it to true when reached.
Ex:
var achievement1Level1 : boolean = false;
var achievement1Level2 : boolean = false;
etc ....
var achievement2Level1 : boolean = false;
var achievement2Level2 : boolean = false;
etc ....
That seems very long and inefficient … simple to do and it will work, but I got the feeling its not the best option. What do you think is the best method to handle this?