Question about dragging

Non-platform specific questions.

Question about dragging

Postby Hblade » Tue Nov 22, 2011 1:59 pm

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.
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: Question about dragging

Postby Game A Gogo » Tue Nov 22, 2011 2:35 pm

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
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: Question about dragging

Postby Hblade » Tue Nov 22, 2011 2:39 pm

Thank you
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest