isnt it in the Player code, it has const SPEED? it’s a constant of 80.0 speed. you get the player “node” by @export var player_body: CharacterBody2D, then if you just want the speed, just access player_body.SPEED, no? which still doesnt make sense, because it’s a constant 80 speed, did you mean velocity?
if it’s velocity, then just player_body.velocity will get the speed value
I wrote that I want to set up exactly the velocity and my code example logic unfortunately conflicts with the next lines (but there are differences: speed and SPEED).
So I already figured out that CharacterBody2D.velocity is proper, and now trying to call velocity through node name_class Player, but once again I’m trying to figure out why the script doesn’t see the AnimationTree:
here because the $AnimationTree is not ready, the previous code you shown, you take the $AnimationTree variable reference when it’s ready, that’s correct, then just use it on ready of the animation to get the playbacks
I don’t understood you clearly, but I tried to put it into _ready() function (it’s stupid because @onready already do it). I really don’t get what you mean (maybe because it’s not my mother language), can you clarify please if it’s no trouble?
now i see why, you are trying to access animation tree from Idle’s script node
the $AnimationTree Works only if your script is attached on Player, to do this and easily without typing $../../AnimationTree you can just drag and drop the AnimationTree Node to the code script, it will generate the NodePath for you