Follow mouse? Like literally on the mouse

Talk about making games.

Follow mouse? Like literally on the mouse

Postby The achievement » Wed May 10, 2006 7:12 pm

How can i make it so my actor can follow my mouse when i move.

Ive done it, but its so far away, i want my actor to be on the mouse. How would i do this?
User avatar
The achievement
 
Posts: 220
Joined: Sun Feb 12, 2006 11:01 pm
Location: United States,Massachusetts
Score: 0 Give a positive score

Postby makslane » Wed May 10, 2006 7:41 pm

You can set the drag option in the 'Mouse Button Down' event or use the 'Follow Mouse' action
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby Just4Fun » Thu May 11, 2006 3:33 am

achievement:
I am not sure if this is what you are trying to do, but...

--1. Create Actor (name it "dragMouse")
-----a. Create Actor Event --> Mouse Enter
-----1) Add Action --> Follow Mouse
Don't change anything in the 'Follow Mouse Dialog Box', but
select 'OK'.

Now, run your program and put your mouse over the Actor. As soon as the mouse enters over the "dragMouse" Actor's area, the mouse should be "stuck to your actor".

As Makslane points out, there are several ways to do this based on what you want to accomplish.
HTHs...
I've learned that I still have a lot to learn.

** Makslane == Genious **
Just4Fun
 
Posts: 524
Joined: Tue Jul 01, 2003 5:19 am
Location: USA: Washington State; West Coast
Score: 6 Give a positive score

Postby The achievement » Thu May 11, 2006 3:00 pm

ya, that was my problem Just4fun. Thank you!

Ill have a demo up soon so you can see of any problems.

thanks again!
User avatar
The achievement
 
Posts: 220
Joined: Sun Feb 12, 2006 11:01 pm
Location: United States,Massachusetts
Score: 0 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest