Um but like for the fourth time lol

Godot Version

4.2

Question

im trying to call the animation player but whenever i try it says that the node doesn’t exist

You can set the animation to “Autoplay” in this case, it will automatically start the selected animation when it is ready.

For concrete order of events I would recommend getting the node inside the function before using it.

var AnimPlayer: AnimationPlayer

func _ready():
	AnimPlayer = $AnimationPlayer
	AnimPlayer.play("TurnStart")

it still says that its a null value

Is your BattleManager.gd on the correct node? Is it on an additional node? In that stack trace click on the “self” member Object ID: ####

BattleManager.gd is on my BattleManager Node2D, would there be a better place for me to put it?

nvm it was because i made the battlemanager autoload lol

1 Like

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