Quick help with mouse following
wookie264
Member Posts: 5
Quick thing I need help with:
In my game, I want a little target (pointer, aimer, etc.) to follow my mouse. I also want it to have lag time, as in I want it to follow the pointer at only a certain speed, tell it where to go and it goes there slowly. Basically right now, I have a rule that says: If mouse location x isn't equal to target location x and mouse location y isn't equal to target location y, move to mouse position x and y at 105 speed. I have tried this without a rule but it still does something odd. If the target ever catches up with the mouse, it freezes and stays put, no matter what. This is really annoying, how can I fix it?
Thank you for helping, I'm fairly new.
In my game, I want a little target (pointer, aimer, etc.) to follow my mouse. I also want it to have lag time, as in I want it to follow the pointer at only a certain speed, tell it where to go and it goes there slowly. Basically right now, I have a rule that says: If mouse location x isn't equal to target location x and mouse location y isn't equal to target location y, move to mouse position x and y at 105 speed. I have tried this without a rule but it still does something odd. If the target ever catches up with the mouse, it freezes and stays put, no matter what. This is really annoying, how can I fix it?
Thank you for helping, I'm fairly new.
Comments