Hi all,
Currently I have a function that, when triggered, is supposed to reduce the height of a stamina bar. The problem is that after the function runs, it returns to its previous height.
The way I have this set up is that the bar has an instance variable "stamina" that gets reduced by X amount and then it sets the height of the bar based on this variable. But, again, the height always resets after the function runs even though the variable number has been reduced.
I can make it work by using the "every tick" action but I feel like that action takes an unnecessary amount of memory just to track stamina.
What am I doing wrong here?
(Thanks in advance for all your help)