Hey Clickteam,
I know there's an easier way to code what I'm trying to do, so I'm coming to the forums!
I have two frames. The first frame is a level select screen with 8 buttons that represent 8 levels to choose. The second frame is the game.
I created an active called "Stars" that looks like 3 faded stars. It's duplicated 8 times and are placed on each level button. I also animated the "Stars" active so when it's direction is to the right, it's 3 faded stars. When it's direction is down, the first star is lit, when it's direction is left, two stars are lit etc... It's a star rating for how good the player did in the game frame.
I also spread value 0 in the "Stars" active.
In the game frame, when a player completes a level in under 10 seconds they get three stars! Between 11-20 seconds, two stars, and over 20 seconds only 1 star. I created a global value called "Star_Counter" which sets the value to how many stars they achieved.
What I'm trying to do is then set the "Stars" active animation on the level select screen to how many stars they achieved on the game frame. Right now I'm hard coding it like this:
"Stars" Id=0 + "Star_Counter"=2 ------- Set "Stars" direction to down.
It works this way but I have to do this for every single level. I know there is a better way but I don't know how. I'm sorry for not including a MFA, I'm at work. I can upload one tonight if my explanation is hard to follow. Thanks Clickers!