How to make a reset Button

ChucklingMonkeyChucklingMonkey Member Posts: 92
edited November -1 in Working with GS (Mac)
Hi,
When you loose the level there is a reset button that comes up. How could I make it so when you click it it resets the level?

Thanks

Comments

  • FloridaGamesFloridaGames Member Posts: 328
    when pressed - reset scene.
  • ChucklingMonkeyChucklingMonkey Member Posts: 92
    FloridaGames said:
    when pressed - reset scene.

    That reset the you loose scene. How do I make it so it resets the level your on?
  • RedlerTechRedlerTech Member Posts: 1,583
    Is your game all on one scene? Then you'll have to reset it manually.
  • ultimaultima Member, PRO Posts: 1,207
    it really depends on how you have your game set-upped, if your levels are in individual scene, it should reset just that scene, but if all of your levels are in the same scene, it'll reset the whole game. in that case you should set the reset button to "reset" your attributes that's used to activate that layer.
  • FloridaGamesFloridaGames Member Posts: 328
    Reset scene doesn't clear the scene it puts it back to the way it was before you started playing it.
  • youngster9youngster9 Member Posts: 326
    I think you have a new scene pop up when you lose correct?

    If that is true instead make a reset button slide onto the screen using interpolate self.position.x instead of change scene to lose scene. Or if you have your lose scene as one image just put that image on the level scene. And make it when it is pressed reset scene.
  • ChucklingMonkeyChucklingMonkey Member Posts: 92
    youngster9 said:
    I think you have a new scene pop up when you lose correct?

    If that is true instead make a reset button slide onto the screen using interpolate self.position.x instead of change scene to lose scene. Or if you have your lose scene as one image just put that image on the level scene. And make it when it is pressed reset scene.

    Yeah that's what I want it to have. I have the interpolate behavior and self.position.X in the you loose image. Now How do i make that come in a few seconds after the player dies?
Sign In or Register to comment.