After Game Over, continue!
Hello,
I ask for help:
I advance in my game, I collided an actor, then Game Over appears, everything is normal.
The game stops my "player" is dead.
On the Game Over screen, I can choose between
"Continue" or "restart"
In the case to continue, what will be the code to resume play at the same place where the actor was dead.
Help me
Comments
This is both a good question and an overly simplified one. It's not possible to give you a specific answer because I have no idea how your game works, but I'll try to give you some guidance.
Keep in mind that GameSalad is an authoring tool but it doesn't do anything by itself. There's no magic "create a side-scrolling one-button alien attack game" button. And likewise, there's no such thing as a "continue" or "restart" button... unless you create one.
So to answer your question, I'd have to know how your game is designed and what it means to continue. For example, in a game like Jetpack Joyride, continuing would just mean unpausing the game and moving the player back to the ground position and maybe delaying spawning of obstacles for a little while... because all of the code is already active when the game ends. Perhaps you want to use a similar feature and just pause and then unpause your game?
4 attributes. Start x and start y. Then constrain x and constrain y. You can then. During game play use constrain attributes for self.x and self.y.......player dies the two options are restart. Move actor to start x and y. Or continue. Then actor goes to the constrained x and y attributes.