I have a button that sets a variable to n when touched and back to 0 when un-touched. I have the basic code working but the problem is that when the button is touched, then the finger is moved out of the button, no ended event is triggered, so the variable is never set back to 0, which messes up my game. I’m asking if there is anyway to detect if a touch event moves out of the target’s bounding box.
Also, I realize that I can setup a global touch listener and check if the point of the touch event hits the button, but there a lot of buttons and it would get laggy and really hard to code.
Thanks a ton! [import]uid: 7202 topic_id: 7618 reply_id: 307618[/import]