How do I set number global variable to user input

Get help using Construct 2

Post » Fri Mar 31, 2017 4:23 pm

Hello! I have a user input box, with the type set to Number. I want to be able to set a numerical global variable to what the user inputted in the box after clicking on a button. So something like On Button pressed, set GlobalVariable to UserInput.Text. I have tried this, however it doesnt seem to work. Any ideas why?

Any help would be greatly appreciated
Regards,
Kriss
B
3
Posts: 10
Reputation: 195

Post » Fri Mar 31, 2017 5:03 pm

Message: artheads can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Hi, it's easy. Take a look at my example:
www.dropbox.com/s/cciqnlrrc3znyqf/input_var.capx?dl=0
B
9
S
3
G
1
Posts: 40
Reputation: 1,687

Post » Fri Mar 31, 2017 7:40 pm

Message: KreKre can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
artheads wrote:Hi, it's easy. Take a look at my example:
www.dropbox.com/s/cciqnlrrc3znyqf/input_var.capx?dl=0


I did the exact same thing (or so I think anyway), yet it didnt work. SO, I remade the whole thing, and now it magically works... yay :D
B
3
Posts: 10
Reputation: 195

Post » Sun Apr 02, 2017 3:22 pm

Nice to hear :)
B
9
S
3
G
1
Posts: 40
Reputation: 1,687


Return to How do I....?

Who is online

Users browsing this forum: PROxMTswatTR and 16 guests