Page 1 of 1
How To Get Actor To Stop Following Mouse
Posted:
Sun Jun 07, 2015 4:24 am
by PerrySteven
Hello, recently I have been working on my game, on a specific scene where the player has to move branches to a working area to form a fireplace. So far, activating the "Follow Mouse" function is very easy, but what I want to do now is make the branch stop following the mouse. How do I do that? I know that there are a few posts out there giving a solution on how to solve such a thing. But they are very complicated.
Re: How To Get Actor To Stop Following Mouse
Posted:
Sun Jun 07, 2015 9:33 am
by koala
Why don't you use "Drag"?
Re: How To Get Actor To Stop Following Mouse
Posted:
Mon Jun 08, 2015 4:50 am
by skydereign
As koala has said, you could use the mouse button down drag feature instead. But to stop the actor from following the mouse when you use FollowMouse, you can use NONE_AXIS instead of BOTH_AXIS.
Re: How To Get Actor To Stop Following Mouse
Posted:
Tue Jun 09, 2015 5:15 am
by PerrySteven
skydereign wrote:As koala has said, you could use the mouse button down drag feature instead. But to stop the actor from following the mouse when you use FollowMouse, you can use NONE_AXIS instead of BOTH_AXIS.
Ahh, thank you very much! By the way, I have never heard of that Drag feature, can you explain it?
Re: How To Get Actor To Stop Following Mouse
Posted:
Tue Jun 09, 2015 12:05 pm
by koala
When you choose event Mouse Button Down, or something like that, there's an option Drag set to Disable by default. Just change it to Enable.
Re: How To Get Actor To Stop Following Mouse
Posted:
Fri Jun 12, 2015 10:17 am
by PerrySteven
koala wrote:When you choose event Mouse Button Down, or something like that, there's an option Drag set to Disable by default. Just change it to Enable.
Wow, thank you for that information.