Page 1 of 1

Question about dragging

PostPosted: Tue Nov 22, 2011 1:59 pm
by Hblade
Is there a way I can limit how far the actor can be dragged?
Meaning, like if you start to drag the actor, okay? I want it to not be able to be dragged off-screen.

Re: Question about dragging

PostPosted: Tue Nov 22, 2011 2:35 pm
by Game A Gogo
Code: Select all
xscreen=max(10,min(xmouse,30));

something like that. Do the dragging in code like that, not with the mouse drag feature

Re: Question about dragging

PostPosted: Tue Nov 22, 2011 2:39 pm
by Hblade
Thank you