Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to make mouse change position on click?

Explorer ,
Jan 16, 2015 Jan 16, 2015

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.

TOPICS
ActionScript
267
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jan 17, 2015 Jan 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.

Translate
Community Expert ,
Jan 17, 2015 Jan 17, 2015
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines