Locking levels (HELP)

Hello all... Im having a bit of a mental brake down with the next part of my game. Im trying to get a simple level locking system working (Level one unlocked and the rest locked till you complete the prevues level).
Im trying to do this using the simple instructions i have = 'booleans called level 2 locked, level 3 locked etc' then 'complete level 1 you use a change attribute level 2 locked to false.'. Finding this ver hard for some reason,,,
Can any one out there shead some light on what it is im supposed to be doing .... How does this work and how do i get a default locked image to replace the locked levels. !!!!!
Please help my rubbish sunday morning become an amazing weekend !!!!
ALL THE BEST
PHIL
http://cantcodewontcode.tumblr.com/
Im trying to do this using the simple instructions i have = 'booleans called level 2 locked, level 3 locked etc' then 'complete level 1 you use a change attribute level 2 locked to false.'. Finding this ver hard for some reason,,,
Can any one out there shead some light on what it is im supposed to be doing .... How does this work and how do i get a default locked image to replace the locked levels. !!!!!
Please help my rubbish sunday morning become an amazing weekend !!!!
ALL THE BEST
PHIL
http://cantcodewontcode.tumblr.com/
Comments
You need to add an attribute to each scene or level end actor that says what level number you are playing
Then in your actor add to your end rule
If self.LevelNumber is greater than or equal to game.unlock
That way it will only add to the level unlock if you are on a level higher than the game.unlock attribute.
Tshirtbooth:
you need to have a rule that checks
Game.levelunlock
so lets say your on level 5, right now level unlock is set to 5
when you beat level 5 your doing to tell it to change game.levelunlock to 6
but you need to do it this way
If attribute game.levelunlock is less then 6
change attribute game.levelunlock to 6
this way say your up to level 20 and you go back to 5 it will not change game.levelunlock to 6 because levelunlock is greater then 6
hope that helps
cheers
This will also help
This might also help you
http://gamesalad.com/game/12756
Search for the name of that under new in GameSalad and you can download the project file.