GET TOUCH POSITION X AND Y

28 views
Skip to first unread message

Caiota Games

unread,
Feb 17, 2018, 6:32:12 PM2/17/18
to DroidScript
HOW I CAN GET THE X AND Y POSITION OF ONE TOUCH?

alex.symbroson

unread,
Feb 17, 2018, 7:27:21 PM2/17/18
to DroidScript
on most controls except button like objects you get an touch event object as first parameter of your OnTouch function which includes the properties 'X' and 'Y'

so in function OnTouch(ev) {… ev.X and ev.Y will be the touch position

Caiota Games

unread,
Feb 17, 2018, 8:23:16 PM2/17/18
to DroidScript
thanks, it works !

Reply all
Reply to author
Forward
0 new messages