How do I comper textbox number to a number variable?

Get help using Construct 2

Post » Fri Jan 09, 2015 2:45 pm

Hi guys,
I'm trying to make a very simple textbox that the user can put a number in it and I'm comparing it to a variable.
I'm trying if the comparison is correct a text element has the value "correct", if that false the text element has the value 'false"
I can't do the comparison well, no matter what I try.
I set the textbox type to nuber.
What other "problems" I'm missing?

(its supposed to be a math quiz type ot game)
B
5
S
1
Posts: 31
Reputation: 431

Post » Fri Jan 09, 2015 2:54 pm

int(TextBox.Text)
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
15
S
3
G
1
Posts: 329
Reputation: 2,012

Post » Fri Jan 09, 2015 2:56 pm

Bruno, TNX, I've just found out about this

TNX
B
5
S
1
Posts: 31
Reputation: 431

Post » Sun Feb 01, 2015 10:44 am

thank you i was looking for this
B
11
S
3
G
1
Posts: 418
Reputation: 1,780


Return to How do I....?

Who is online

Users browsing this forum: jkmalau and 16 guests