Slide finger off buttons they stay pressed

ChaserChaser Member Posts: 1,453
edited November -1 in Working with GS (Mac)
Slide finger off buttons and they stay pressed. Is there a way around that

Comments

  • JamesZeppelinJamesZeppelin Member Posts: 1,927
    Can you be more specific about the rules in your buttons and what you mean by staying pressed since the buttons are defined by the user.
    i.e the graphic changes and wont change back, behavior keeps repeating etc

    thanks
  • ChaserChaser Member Posts: 1,453
    If you have a button that moves an actor when touch is pressed and instead of tapping the button you touch it and slide your finger away from the button while touching the screen the button does not detect the release. Try it on one of yours
  • HunnenkoenigHunnenkoenig Member Posts: 1,173
    Try to use touch inside/outside

    If touch pressed inside, do this
    otherwise touch outside do that

    by outside reset everything that you don't want to be done without pressing the button.

    I don't know if it works, but it seems logical
  • ChaserChaser Member Posts: 1,453
    I never noticed an inside outside option. Do you think it willscrew up my release rules. Example rule touch is pressed change game.move to 1

    rule when touch is released change game.move to 0
  • jweaver911jweaver911 Member Posts: 439
    I'm new here, and this may not help much, but may be thought provoking. I know what you're thinking Chaser. In Apple's own Interface Builder/xcode there is a property called "TOUCH UP INSIDE" which forces the button to only accept a release if it's let up while inside the button.

    Is GS capable of this?

    What Hunnenkoenig is describing isn't quite the same if I am understanding him properly.
  • HunnenkoenigHunnenkoenig Member Posts: 1,173
    Touch pressed
    Touch inside

    they are two rules and if you use both together, the touch triggers the rule obnly, if you touched the button in the inside.

    It won't break your game mechanics if you add the inside rule to the touch rule.

    Additionally you can add an ELSE rule, if touch is outside, reset all settings made by touch inside.

    Then if your finger moves away from the button and the touch is not inside of it anymore, then the rule doesn't apply anymore or if you have an outside rule, that rule will take over

    But as I said, I didn't test it, so I don'T really know, if it really works.

    I use inside rules, but I didn't use outside rules yet.
  • ChaserChaser Member Posts: 1,453
    I'll check it out when I get back this evening
  • ChaserChaser Member Posts: 1,453
    So I tested with inside and outside and inside and release it does the same type of action just this time I have to slide my finger off the button during play intentionally to get it to release. You guys should check your buttons. I'll stick with the glitch
Sign In or Register to comment.