Hi I'm very new to godot and programming with gdscript, recently I have run into an error with some simple code I have used to test out animation. I've looked on other posts similar to this and found no results

Not sure how image attachment works here so hoping this works.


    4 days later

    If that script is attached to the AnimatedSprite2D, then remove the variable _animated_sprite and simply call play() or stop().

    trizZzle sometimes when you add or remove nodes godot compiler does not compile and thorws errors when in fact there is no errors.. saving script/scene reloads the thing and it compiles ..