Drag and drop actor
Posted: Sun Jul 03, 2011 2:37 am
How to make a drag and drop actor for iPhone?
//Haha, no script! In your face!
FollowMouse("Event Actor", BOTH_AXIS);
FollowMouse("Event Actor", NONE_AXIS);
MouseB=1;
Initx=xscreen-xmouse;
Inity=yscreen-ymouse;
MouseB=0;
if(MouseB)
{
xscreen=xmouse+Initx;
yscreen=ymouse+Inity;
}