How can I do for when I touch the screen and touch a button my character does not move and stays in the same position in which it is, I am handling it in this way:
angle (self.X, Self.Y, Touch.X, touch.Y)
600 * dt
Develop games in your browser. Powerful, performant & highly capable.
You have the condition is touching so you could do;
Is touching button <<<<<<< Inverted to be the negative (Is not Touching)
Ation: player stop