Unlock Level Problem

Hey guys, I watched those videos by tshirtbooth and for some reason when I'm testing my game, it just doesn't unlock the levels when I go back to my level screen. What could be the problem? It still has my locked image up and won't let me click the level at all even though I have beat it.
Comments
http://imageshack.us/photo/my-images/51/screenshot20120226at925.png/
http://imageshack.us/photo/my-images/864/screenshot20120226at925.png/
http://imageshack.us/photo/my-images/820/screenshot20120226at925.png/
http://imageshack.us/photo/my-images/267/screenshot20120226at926.png/
always take the seconds needed to type in what a rule does …
double click where it says Rule in its titleBar … and type away
save time and frustration as your project becomes more complex
also keeps you focused on what you want to make happen!
Nest rules within the Rule for an event
EX: your touch is released rule… could contain another Rule: when the touchX = releaseX
if the actorAttribute Level = 2 … why is scene changing to 2?
Sometimes when learning from a video … it is good to have a projectFile open …
and pause the video to implement the code/actions in your project
the video provides a great walk-through …
but one should be doing the steps one at a time … rather than trying to remember the whole journey
@};- MH
changeAttribute: game.unlock To; game.unlock+1
@};- MH
sceneAttribute … everything in scene can reference/manipulate this
actor(self)Attribute … everything in the actor … and an unlockedActor in the sameScene … can reference/manipulate
@};- MH
good to always monitor what your attributesValues are while you are designing your game.
I probably have at least 10 instances of a single DisplayText actor … each with something different to display till things are working right!
@};- MH
sometimes it seems that all the old and all the new just confuse things.
also if you are using viewer … clear out the old files and then reopen GSViewer.
@};- MH
Actually i had problems, because i changed the "door" separately on the screen, and tried to add actual changes in the "door" at the actor section, no wonder it didn't work,
I'm glad you put so much endurance and energy in to helping people, : ))))))))
Absolutely love you for this !
when level is locked change attribute
self.red to 0.2
self.green to 0.2
self.blue to 0.2
when UNLOCKED change attribute
self.red to 1
self.green to 1
self.blue to 1
get your kilobytes back!!!!