How to make a "replay" function

dreamZdreamZ Member Posts: 103
edited November -1 in Working with GS (Mac)
Guys, I wonder how to make a replay button that it has the function while I finish the game and click replay it would back to the beginning of the scene..

Right now i got this button set with
Rule - touch is pressed - change scene

it change the scene but it wont reset the game it only change to where i've finished.

thx : )

Comments

  • COBGamesCOBGames Member Posts: 114
    why don't you say "reset scene" instead?
  • dreamZdreamZ Member Posts: 103
    reset scene does not work for me..

    when i finish the game it will go to "score" scene.. and i got the "replay" button there then it will just reset the "score" scene

    hope i explain well enough : )
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    Have your actors know their x and y location, then when reset, they auto go there, resetting the scene.

    Hope this helps.
  • App SurgeApp Surge Member Posts: 651
    Have an boolean called reset, and write a few rules.
    On the reset actor, create a rule that says when touch is pressed, change scene. Also, change attribute reset to true. Otherwise change attribute reset to false.
    Now, on the main actor or something in the gameplay scene, create a rule that says when reset is true, reset this scene.
    Hope this helps!
    Henry
    ------------------------------------------------------------------------------------------------------------------------------------
    My New Template: http://gamesalad.com/forums/topic.php?id=32445
  • Rob2Rob2 Member Posts: 2,402
    er...just use the rest game action (or scene depends on your design)
  • App SurgeApp Surge Member Posts: 651
    Rob2 said:
    er...just use the rest game action (or scene depends on your design)

    Well he is switching scenes in the midst of this I believe, so I do not think it is that simple...
    I wish it was though :)
  • dreamZdreamZ Member Posts: 103
    Thanks redsky. will try that out later : )
  • App SurgeApp Surge Member Posts: 651
    dreamZ said:
    Thanks redsky. will try that out later : )

    Good luck!
    Email me at redsky@programmer.net if you want more help.

    ------------------------------------------------------------------------------------------------------------------------------------
    My New Template: http://gamesalad.com/forums/topic.php?id=32445
  • dreamZdreamZ Member Posts: 103
    I had tried that just now the game has reset but it just pause at the beginning of the game..why?
  • dreamZdreamZ Member Posts: 103
    anyone could help ? : )
Sign In or Register to comment.