My code is bricked

4.5 Stable


i’m trying to get my code to run but i can’t figure out what these errors mean since im still new, any help would be really appreciated :slight_smile:

state_attack.gd:5 and player.gd:6 are the file names and code lines where the first errors occur, so that’s where you should look. Apparently you are trying to access an AnimationPlayer in both cases, that isn’t found at either of the specified node paths.

And since the AnimationPlayer wasn’t found at the specified location, trying to play it then crashes the game.

Make sure you AnimationPlayer variable is declared as an @onready variable.