Skip to main content
Some_Dude
Known Participant
January 17, 2015
Answered

How to make mouse change position on click?

  • January 17, 2015
  • 1 reply
  • 281 views

So, I'm trying to make a gun aim at the crosshair, so it follows the mouse all the time. I want it to go up on recoil, so the mouse crosshair goes up and the gun follows up.

I tried something like mouseY - 10; but with no luck, it didn't do anything. Thanks.

This topic has been closed for replies.
Correct answer kglad

you can't control the users mouse.  you can 'hide' the users mouse and use a crosshair movieclip to indicate where the mouse is positioned and that movieclip you can control.

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
January 17, 2015

you can't control the users mouse.  you can 'hide' the users mouse and use a crosshair movieclip to indicate where the mouse is positioned and that movieclip you can control.