Theres a sprite behind my walking animation

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

Im new to using godot (and programming in general), right now im following a tutorial to make a platformer, and i got the player to move and jump, but when adding the walking animation, a sprite from the player appears behind the actual animation, what do i do?

Its difficult to analyse this problem without being able to see all the nodes but I would hazard a guess that you have two seperate sprites and you need to either have all the animation on one animated sprite or else make the other sprite invisible (there is a visible = true/false option).

Cannot give you any more without being able to see the project.

Gluon | 2022-12-01 18:43

:bust_in_silhouette: Reply From: LordBoots

Difficult to say without code but I would assume that you’re adding a sprite to the scene rather than changing the players sprite. You should use the same texture variable and change that instead of instancing a new sprite for each animation.