I have a Control Node and under it there is a textureProgress. I did a function in where i change the value. After it i print() it. In another class i called the function. The output says the right value but the progressBar does not update. So it is always saying 100%
code of the function:
onready var bar2 = $HealthBar2
func _setDamage(damage):
bar2.value -= damage
print(bar2.value)
code of the call in the other class:
$HealthBar._setDamage(40)
If i change the value with a button which is in the same scene it works. But if i call the onButton_pressed() function on the other script it does not work!