I`m trying to animate a character when they start walking and when they stop. Here is the code causing the problem
if $AnimatedSprite.is_playing ("walkright") == true and motion.x == 0:
$AnimationPlayer.play("idleright")
I`m not sure what could have caused it could someone please help me out