I have a simple level selection screen where if you click the name of the level you go straight to that level, and then when the level is finished you return to the level selection screen.
My problem is that I want the colour of the box the level name is in to change after completion of the level. I have sprites set up so all I need to do for this is to make the right sprite visible when a level is completed, however I'm unsure how to do this.
My first idea was to use a boolean on each of the sprites and then have that be set to visible when the level is complete, however this obviously doesn't work across separate layouts.
I assume I need to use global variables, but I'm unsure how to do this. I can see it being easy to do if the levels had to be completed in numerical order, but they can be done in any order so I'm unsure how to accomplish this.
Thanks in advance!