Problem with animation

Godot Version 4.2.1

Question

Can someone explain what’s going on here? I think I’ve done everything like in official manual and it’s not working.
Second error is my problem.

Is this script on the survivor node or on the AnimatedSprite2D node? If it’s the latter, then you don’t need the _animated_sprite variable, since that’s the object the script is attached to, and in that case, you can simply say play("walk") and play("idle") on line 7 and 9 respectively.

1 Like

Thx mate, that’s solved this problem. <3

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.