Hey, im having a problem with the getnode(...).settext(...) combo. In every aspect it is working fine, but for some reason in one part of my menu it is misbehaving.
On my player stats display i have some sub stats based on the main stats, like attack based in the player strenght, when i change the player Main Stats the sub stat make the calculations and recalibrate by it self and this is working fine (i constantly check in the output printing every stat and substat) but my in game "character sheet" lable node, way of checking just dont get the right number, For exemple: My hit points is showing the right numbers in both in game sheet lable node and output tab, but the attack just show a random number (shoulf be 124 and is showing 9) that dont even make sense, and it is the right number in the output tab, the dodge statistic just miss by 1 (40 to 41).
This is the way that im geting the numbers to show in the "character sheet lable node":
get_node(path_statistics + "ASPD/Value").set_text(str(player.attack_speed))
get_node(path_statistics + "Critical/Value").set_text(str(player.critical))
where "player" is a var to my "onready var player = get_node("../../player").
Anyone have any ideia how to solve my problem ? this has been disturbing me for days now. Ty.
Edit: as asked by GameSpy, this is the print () function:
if Input.is_action_just_pressed("Slot 4"):
and this are the variables:
export(float) var attack_speed
export(float) var critical
this funcion is already in my player script in my player node as are those variables