Clarification? touch is press,released,inside,outside
tenrdrmer
Member, Sous Chef, Senior Sous-Chef Posts: 9,934
Ok I have been messing with this Whats the difference in some of these? obviously release and press are opposites but as far as inside and outside and pressing in general. If i want to have to touch a specific actor to do by touch if i set it to just pressed will it react from a touch anywhere on the screen or only to the actor and if only to the actor then how is it different from touch inside the actor.
The reason i ask is i have been having some trouble with my game reacting how i want to touch. Sometimes it doesn't seem to detect it at all. I built my game with touch be inside the actor. Is it simply that touch inside mean that it will on react if the only touch on the screen is inside the actor?
The reason i ask is i have been having some trouble with my game reacting how i want to touch. Sometimes it doesn't seem to detect it at all. I built my game with touch be inside the actor. Is it simply that touch inside mean that it will on react if the only touch on the screen is inside the actor?
Comments
I have been creating an attribute(self.pressed) that is switched to 1 when touch is pressed on the actor and then my rule that checks for touch is released also checks that self.pressed = 1. Then, the last thing I do within that rule is reset self.pressed back to 0.
Anyone, please tell me if there is a better way! ;-)
"Touch pressed" only triggers the action when the mouse click or touch's origin is in the actor's bounds. Here, I have to start my click/touch ON the actor in order to activate it.