Touch events to move the character

(Vladimir) #1

Greetings, can anyone suggest how to implement touch events to move a character with a finger moving from one position of the screen to another?

(rostok) #2

Simple touch (no swiping) works just like mousePressed event. So on this event (can be checked every frame) get mouse position and add it to some list of next positions.