pause behavior issues

SAMmanSAMman Member Posts: 228
edited November -1 in Working with GS (Mac)
for some reason my pause button only work every other click, don't know where or how that happened. Any thoughts would be welcome if anyone has had a similar issue. Thanks.
SM

Comments

  • ultimaultima Member, PRO Posts: 1,207
    consistently or just sometimes?

    it happened to me before and it was because the button was too small, make a larger area using a transparent touch actor instead of using the "usually smaller-than-finger"button
  • SAMmanSAMman Member Posts: 228
    thanks, how do I make it transparent? and yes it is consistent! Debugging bytes! fyi!
    SM
  • SAMmanSAMman Member Posts: 228
    well, still no luck with it. thanks for the help so far though.
    SM
  • LoadingZeroLoadingZero Member Posts: 75
    mhmmm your rule is when touch is pressed and mouse is inside?
  • SAMmanSAMman Member Posts: 228
    yeah it is, just double checked. I know it's really weird.
  • DoManDoMan Member Posts: 102
    I know and can fix your problem. the pause button is unpausing itself as soon as you hit pause, as the rule "if paused and touched, unpause" happens as soon as "if unpaused, pause on touch" happens. you will have to be light speed if you want it to stay paused. you will need a separate "resume" button to turn the pause off. Otherwise use timers and delays to allow only afterwards to let the toggle switch back.
  • gamedivisiongamedivision Member Posts: 807
    i had same issue this is what i did
    when touch is pressed timer after 0.3s run to completion
    pause game
    then in your resume button
    when touch is pressed
    timer after 0.3s run to completion
    unpause game
  • SAMmanSAMman Member Posts: 228
    Thanks, I will give that a try too!
Sign In or Register to comment.