Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
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.
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.
Develop games in your browser. Powerful, performant & highly capable.
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