Topic was automatically imported from the old Question2Answer platform.
Asked By
NeiPodam
I want to make a label that will display variable and if variable change it should
automatically change in label.
Example what I want to do:
You have an axe that have durability - 500 points.
If you use axe, you will get one point less so if you have 500 points and you use it five times you will have 495 points.
And I want a label that will show the durability of it.
I suppose you press a button to use the axe. So in on_pressed function of that button you can update the variable and set the text of the label to the updated value. Something like this: