How can I make a button which directs me to the next level? So when I'm in level 3 I want it to go to level 4 and if it is in level 2 I want it to go to level 3.
Also how can I make a button which return to the level where I'm at in that moment so when I'm in level 1 I want it to return to level 1 and if I'm in level 3 I want it return to level 3.
I've made a world and when there are 3 birds shooted and the pig isn't killed it will show my gameover screen another class I've made.
- So what I think I need to do is to check the last world I was in and then make the button return to that world. But how do I do this?
Thanks in advance

