Need help fixing player movement

Which tutorial? And why would it use an object’s scale to handle its direction? That makes no sense! Also, the code you shared doesn’t use scale.x anywhere!

But if you actually did use scale than this behavior is to be expected?

So it’s a problem with your AnimatedSprite2D? The code you shared includes a call to animated_sprite.trigger_animation(velocity, direction) which likely causes this behavior. But since you didn’t share that function with us, it’s impossible to help you with this.

2 Likes