Best way to reset gameplay scene from pause scene?

carlblanchetcarlblanchet Member Posts: 755
edited July 2012 in Working with GS (Mac)
Hey all!

What would be the best way to reset the gameplay scene from the pause scene?
Because I am currently using the change scene to 'gameplay scene' behaviour when pressing the restart button in my pause scene, although when the gameplay scene is loaded, an animation that is suppose to happen only when an actor is pressed, happens on its own...
It's really troubling me..

Thanks!

Best Answer

  • HC_DKHC_DK Posts: 92
    edited July 2012 Accepted Answer
    Are you using the UNPAUSE function?

    What I do is when reset button is pressed, I change all of my game attributes as SCORE to 0 and so on.
    When all those are set to 0 or whatever the DEFAULT STATE is, I use a CHANGE SCENE to my GAMEPLAY SCENE.

    This works for me :-)

    HC

Answers

  • jordie.rulzjordie.rulz Member Posts: 5
    edited July 2012
    Personally i have had this situation. So what i did is made it when 'Touch' is pressed 'Inside' the reset button, it changes a attrribute in the game to 1, and then unpauses the game. On the main actor i have it set so when the game attribute that was changed to 1, is 1 it resets the scene, and then changes the game attribute back to 0. There is probably a easier way, but this way works for me :) Good Luck
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    I would just use a change scene behavior out of the pause scene for a scene reset. Some people are going to give you a long workaround to get an instant reset going on but in all honesty I think the instant reset stuff is way over rated. Just go with a change scene behavior and you'll be good.
  • HC_DKHC_DK Member Posts: 92
    @tenrdrmer, that will not "reset" an SCORE attribute to 0 but will "reset" all actor positions.

    HC
  • carlblanchetcarlblanchet Member Posts: 755
    @jordierulz @HenrikChristensen @tenrdrmer

    Thank you all for your awesome answers! I will play around with this information and see if I can fix my problem. :)
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    @tenrdrmer, that will not "reset" an SCORE attribute to 0 but will "reset" all actor positions.

    HC
    Niether will Reset Scene

    You will still have to use a change attribute to reset any game level attribute back to an original value. Doesn't matter what you use to reset your scene. And before you say But Reset scene will change a scene attribute back. So will a change scene. It works just the same.

    change scene for reseting from a pause is better because you don't have a load time to unpause and then a load time to reset. You just have 1 load time.
Sign In or Register to comment.