mouse follow help

Talk about making games.

mouse follow help

Postby Nykos » Sun Dec 19, 2010 11:20 pm

Hi everyone, my name is Nykos and i'm new to Game Editor and to game developing too.
I'm begining to understand how G E works but I still have some problems.
I have an actor that I want to follow the mouse, so I used "Mouse button down" --> "left mouse button" --> "follow mouse" on X axis. But i'd like it to stop following the mouse when the left button is not pressed. I tried "Mouse button up" but it does not work.
What do I have to do?

Thanks in advance

Nykos
Nykos
 
Posts: 110
Joined: Sun Dec 19, 2010 11:11 pm
Score: 6 Give a positive score

Re: mouse follow help

Postby skydereign » Mon Dec 20, 2010 7:57 am

It should work, unless I read your problem wrong. Here's an example of it, the only trick is on MouseButton up event, to set the FollowMouse to none.
Attachments
followMouseX.ged
(951 Bytes) Downloaded 74 times
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: mouse follow help

Postby Nykos » Mon Dec 20, 2010 9:39 am

Works perfectly, thanks a lot man
Nykos
 
Posts: 110
Joined: Sun Dec 19, 2010 11:11 pm
Score: 6 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest