I am perplexed by this behavior

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

I imagine this is due to my skill. However, I have a gun scene set up as follows

Node2d (AK)
Animation Player

I have my sprite attached to the sprite node for when an animation is not needed and this sits directly on top of my player. However when I change the animation to shoot the animation then plays but moves the sprite off down off the screen to the diagonal right… I have a short video to illustrate.

Video of issue on youtube

:bust_in_silhouette: Reply From: rzuf

Does the gun sprite move around when you move the player while the animation is running?
Would also help to see how your animation is set up. (like what values are affected by the animation and in what way)