Reset game and pause scene problem

GamePizzaGamePizza Member, PRO Posts: 227
edited November -1 in Working with GS (Mac)
I have 2 scenes. Scene 1 is where the main game is played. Scene 2 displays the instructions. I have a button in Scene 1 that when mouse down pauses the game and displays Scene 2 over Scene 1. A button in Scene 2 unpauses the game and returns to the game in progress in Scene 1. This works great!

But at the end of the game in Scene 1, I display a Play Again button that when the user clicks on Resets the game. For some reason, when this Play Again button is clicked, Scene 2 is displayed and just stops. Clicking on the button doesn't return the game back to Scene 1. Any ideas on what is going wrong?

Comments

  • GamePizzaGamePizza Member, PRO Posts: 227
    just clicking anywhere on the scene even while the game is in progress in Scene 1 causes Scene 2 to show up.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Mouse is down means any click or touch anywhere.

    Its working exactly as you have coded it.

    You need to have use when touch is pressed for buttons.
  • GamePizzaGamePizza Member, PRO Posts: 227
    it's for Mac OS, don't think can use touch? But I was hoping just click on actor not entire scene. But right now just adding actor to the scene causes the entire scene to be a hot spot. can I use touch for Mac OS?
  • GamePizzaGamePizza Member, PRO Posts: 227
    ok changed from mouse button down to touch pressed and it works! Thanks for the help!
Sign In or Register to comment.