OK,so now you make a wall in the bonus level blocking it's entrace with a layer.I'll call "Wall" as an example,and an event that hides it.
You also create a Global Variable in world.I'll call it "Bonus" as an example.
On ALL of the levels,on it's ending,you make it call a Event.Example:After I pick up the SSW ending,his "Death" event will call the event that calls an script and then create another event that calls another Script.On the 1st Event,Inside the Script it calls,write:
- If gval(nameofvariableyoucreatedhere) < 4
Then Call TCreate(nameofthe2nd event here,0)
Then,on the Script that the 2nd event calls:
Now,on the level Bonus,create a Event that will happen right after player enter on the level (Level-Start),and that Event will call a script.On it,write:
- If gval(nameofthevariable) = 3 Then
Call TCreate(name of the event that hides the wall,0)
That Should Work.Hope it helps you!