GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Retry button (help)

so when i lose , my game changes scene (gameover scene) and in that scene it has a retry button , when i click it i want it to reset the previous scene so i can play again , so how do i do it ?

Comments

  • mikejamesfishermikejamesfisher Posts: 63Member, BASIC

    In retry button actor... creat rule- when actor receives event- touch- pressed—change scene to (name of scene).

    I wonder how you got this far though without doing those rules to get to the gameover scene so does that help or am i missing something?

  • tatiangtatiang Posts: 11,890Member, Sous Chef, PRO, Senior Sous-Chef

    Something to consider is that the Reset Scene and Change Scene behaviors do not reset game attribute values. For those, you'll need to manually reset the values with a series of change attribute behaviors. Or, you could use a table and save yourself some agony since it's possible to copy a table to a backup table and then copy it back to reset the game.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • mikejamesfishermikejamesfisher Posts: 63Member, BASIC

    How true it is. And if you(i) forget to change attribute back , everything comes tumbling down. So in my actor’s death, i have a running list of change attributes. I wish i had learned tables a long time ago. Now im in too deep on my game. Maybe next project. (If i ever finish this one)

  • GamepencilerGamepenciler Artist/Game Developer Posts: 326Member, PRO

    just use change scene attribute to the game. Also add reset attributes in the retry button before change scene like putting back full life.

    Artist/Game Developer / Animator at your service..

Sign In or Register to comment.