Need help with a retry button
I have multiple scenes and I have the game set up that when the player dies, a gameover scene appears with a retry button. How do I have one button to reset all the scenes that I have within my game.
For instance, if the player dies on level 4, i want the retry button to reset level 4. If the player dies on level 5, i want the retry button to reset level 5. What would the code look like?
For instance, if the player dies on level 4, i want the retry button to reset level 4. If the player dies on level 5, i want the retry button to reset level 5. What would the code look like?
Comments
i have a retry button in each level/scene so when that is pressed it resets that level/scene not any other...
i set the alpha of a button to 0 (hide) then if alpha is 1 on touch reset scene
the only thing you need then is on level win turn reset button alpha 0 to 1...