Custom pause button problem
http_gamesalad
Member Posts: 1,340
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 . 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
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.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Use touch is pressed not released.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
@tatiang you got it right ! It doesn't happen on my MAC but when I put it on my ipod or samsung it happens
know what could be casuing it?
@The_Gamesalad_Guru WORKED!!!
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.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS