Is there a way to update a text box with the contents of a variable when the variable changes? Not just on a specific click, but in every way the variable can change?
Set text to variable every tick always shows the current value of the variable, is that what you want? Or do you mean update it ONLY when it changes?
That can probably work thanks.
But would be nice to know that way too.
Develop games in your browser. Powerful, performant & highly capable.
If for some reason you want to set up something where you show only when the variable changes you could use a comparison variable.
Var1 = 20. (changes)
Var2 = 20.
If Var1 is not equal to Var2, set text to Var1.
Set Var2 = Var1.
Or create a function to change specifically this one variable (like a mutator).
On Function "SetVar1"
---->>Set Var1 = Function.Param(0)
---->>Set Textbox text to Var1