Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
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
Hello all. I was wondering, how do you add (and only add) the textbox values you input into the box, and have the answer show up as the text beside the textbox? Whatever you type into the textbox should keep adding on to the text/number beside it.
use on "ON input box changed" rather than pulsing it every tick.
Also, use Append, to glue stuff to the end.
Develop games in your browser. Powerful, performant & highly capable.
I did what you said, but that just duplicates the number in the textbox (turns 11 into 1111), it doesn't add the values together (like 11 + 11 = 22).
https://dl.dropboxusercontent.com/u/541 ... mple2.capx
Create a global variable
keyboard on enter or on button clicked
system add : int(NumberAmount.Text) to global variable NumberAmountText set text : global variable
system add : int(NumberAmount.Text) to global variable
NumberAmountText set text : global variable
Oh! you wanted the sum, not to add text to the string. Sorry about that.
My English is not so great, I dont live around here.
Create a global variable keyboard on enter or on button clicked > system add : int(NumberAmount.Text) to global variable > NumberAmountText set text : global variable
> system add : int(NumberAmount.Text) to global variable
> NumberAmountText set text : global variable
It works! Thanks — This is exactly what I was looking for.