check this out, if you enable sync_to_physics, then the animation player’s set wont work, so you have to disable it for it to work
which exactly what this say
This is useful when animating movement via AnimationPlayer, for example on moving platforms.