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
<img src="https://dl.dropboxusercontent.com/u/1685424/textbox.JPG" border="0" />
I want the text box to show the number contained in the variable.
The top line doesnt work but the second one does
Drop the quotes on the variable
Variable1 instead of "Variable1"
Only strings (of text) get quotes :)
Develop games in your browser. Powerful, performant & highly capable.
you should do > set text to str(Variable1)
your var is a number and set text expects a string
also if you use a var, you shouldn't but quotes around it ""
edit: ow i guess you don't even need the str()
thanks. It does need the str(Variable1) as the textbox is set to a number type.