#animation player problem
1 messages · Page 1 of 1 (latest)
You'd have to share your scene tree for us to really give you a proper answer. When you use the $ notation for an @onready variable like that, it will act as a relative path and try to find a node of that name. So you need to look at your node hierarchy and review the path relationship relative to the node with this script.
Couple extra notes:
- You can right-click on a node in your scene and use "Access as unique name". That will let you reference the node with a
%and be path-agnostic, so you can always reference it easily. - From your scene tree, you can drag-and-drop a node into your script. That should give you the correct
$syntax of the path. Though I can't remember off the top of my head if it will automatically handle the path if the node script you're in isn't the root node.