How to create a skip button in a pause scene?
When the player presses pause button it pauses game and pause scene is on. I did this so I do not have to create the menu button level button etc separately for each stage but now I wish to create a skip button.
The problem is if it was in each level it was easy go to next scene, but now as its in pause scene, I have to find out first which stage is the game in and then go to next scene.
The basic idea is that if it's stage 1 it will go to stage 2 and so on.
Will something like this work.
Make s self attribute skip stage in the skip button.
When it' goes to pause scene, make self. Skip stage = game. Stage
When it's touched
Make skip touch = skip touch + 1
Go to to scene value skip touch.
How to make the the last part, is there a way to add a go to scene value?
The problem is if it was in each level it was easy go to next scene, but now as its in pause scene, I have to find out first which stage is the game in and then go to next scene.
The basic idea is that if it's stage 1 it will go to stage 2 and so on.
Will something like this work.
Make s self attribute skip stage in the skip button.
When it' goes to pause scene, make self. Skip stage = game. Stage
When it's touched
Make skip touch = skip touch + 1
Go to to scene value skip touch.
How to make the the last part, is there a way to add a go to scene value?
Comments
For example:
Set a Rule in some actor (that must be present in all scenes) which condition is the true value of that boolean, and inside the rule set the change scene behaviour and Go to Scene: Next Scene.
Now, when your skip button is pressed, just set that boolean to true, and Unpause the game, so the actor containing the Rule will change game to the next scene immediately.
Don't forget to set back to false the boolean just before the Change Scene behaviour