Custom pause button problem

well I deiced to make my own pause button because gamesalads wasn't working to well.. it was super laggy & it had to go through this whole loading different scene stuff it just wasn't good for my game so I set up this Image and video hosting by TinyPic . it works great until you try to unpause the game. It'll unpause then a couple seconds later it it'll pause the game randomly even if you don't click the button

Comments

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

    Assuming that game.Paused/Unpuased is an integer that starts with the value 0, your rule will toggle between 1 and 0 each time the actor is clicked. The rest of how you're using that attribute value to "pause" and "unpause" the game is hidden from view in your screenshot.

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922

    Use touch is pressed not released.

  • http_gamesaladhttp_gamesalad Member Posts: 1,340

    @tatiang you got it right ! It doesn't happen on my MAC but when I put it on my ipod or samsung it happens

  • http_gamesaladhttp_gamesalad Member Posts: 1,340

    know what could be casuing it?

  • http_gamesaladhttp_gamesalad Member Posts: 1,340
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    edited July 2015

    yeah I could see that right away. Remember touch is released is a permanent condition once executed. where as touch is pressed is only an active condition during the press. So once you released it you were cycling the other conditions in your rule there causing a loop.

Sign In or Register to comment.