0 votes

What would be the most easiest way to make arm and gun sprite to aim towards the mouse?

I tried it by adding position2D to both hand and gun sprite, and stick together but couldnt achieve. Do you have any idea to make it work? Thank you in advance.

PlayerSkin(Node2D)
> Gun(Sprite)
   > Position2D
> Player Right Shoulder(Sprite)
    > Player Right Arm(Sprite)
        > Position2D

enter image description here
enter image description here

in Engine by (80 points)

as far as i am aware this is it
look_at(global_mouse_position)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.