look_at on Animated Sprite not working?

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

Hi, so I’ve got an animated sprite of 7 frames playing on a loop. This animated sprite is the child of a kinematic body (this being my main player). I want this animation to look at the mouse. But when I do $Animated_sprite.look_at($Animated_sprite.get_local_mouse_position)
it just twitches and acts weird!

:bust_in_silhouette: Reply From: mohamedLT

try to use get_global_mouse_position instead of $Animatedsprite.getlocalmouseposition