How would I make a drag function only happen when...

Non-platform specific questions.

How would I make a drag function only happen when...

Postby Hblade » Sat Dec 12, 2009 10:33 pm

Hey how can I make a drag item event only when a switch or a button is pressed? Is their a code that indicates rather the mouse / drag feature can be turned on or off?
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: How would I make a drag function only happen when...

Postby skydereign » Sat Dec 12, 2009 10:37 pm

You can use the FollowMouse function, turning follow on or off pending a variable. The follow mouse will allow it to appear as if it is being dragged.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: How would I make a drag function only happen when...

Postby Hblade » Sat Dec 12, 2009 10:57 pm

Thanks :D
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: How would I make a drag function only happen when...

Postby 4erv' » Sat Dec 12, 2009 11:16 pm

Wow, already replied.. I was to slow on making the example demo :D
Gold Basketball 2008 - the first basketball game made with game editor.

User avatar
4erv'
 
Posts: 188
Joined: Sat Jul 07, 2007 10:52 am
Location: in Recycle Bin
Score: 10 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron