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.
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
Develop games in your browser. Powerful, performant & highly capable.
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.