2D sprite look towards mouse

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By amaou310

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

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

i.want.to.die | 2022-06-28 00:06