I have a touch joystick. When I move my player around with:
angle(control2.X,control2.Y,thumb1.x,thumb1.y)
The player doesn't run towards the direction he is moving as he's always facing left. How do I make it so that he can always turn towards direction movement?
Objects:
Control2 (what the thumbstick sits inside of)
thumb1 (is the thumb stick)
Events:
DragDrop is dragging: Move 5 pixels at angle angle(control2.X,control2.Y,thumb1.X,thumb1.y)
DragDrop is not dragging: Set positoin to (control2.X,control2.Y)