WHAT I WANT
- A level can only be unlocked once, but the player can replay it as much as he wants.
- From the MENU, a level can be loaded only if it's unlocked.
- A button ?continue? load the last unlocked level.
the first point :
you want when you click on the button (level1) it will take you to layout for level 1 and if you clicked button for level2 it will take you to layout level2 right??
if it like this then you just need to change the event number (11) in "event sheet 1" (in the example capx)
to this :
event:
condition1:mouse left clicked on button
condition2:value at levelsbutton.level>0
action1: system :go to (by name) ---> and write this : "LVL"&levelsbutton this mean it will take you to layouts with names :LVL1,LVL2,LVL3... so name your layout as this..
action2: set currentlevel to levelsbutton.level
*so just change action1 and layout names.
the second point and the 3rd point i didn't understand what you need ? can you explain what you have did and what happened and what you want to happen