How do I specify part of a variable to compare?

Get help using Construct 2

Post » Thu Jun 19, 2014 1:04 am

I want to compare values "Blahh1" and "Blarg2", to see which number is higher.
However, trying to compare them doesn't work, because I cannot "cut off" the word part of the variable.
Is there a way to fix this?
B
9
S
3
Posts: 52
Reputation: 1,260

Post » Thu Jun 19, 2014 1:25 am

Try using int() and
right(text, count)
Return the last count characters of text.
What I know would fill a Book , what I don't know would fill a Library
B
37
S
12
G
29
Posts: 331
Reputation: 16,499

Post » Thu Jun 19, 2014 1:35 am

Oh, yeah! INT! I forgot about that. Thank you so much, I appreciate the help!
B
9
S
3
Posts: 52
Reputation: 1,260

Post » Thu Jun 19, 2014 1:37 am

Your Welcome ,good luck on your game .
What I know would fill a Book , what I don't know would fill a Library
B
37
S
12
G
29
Posts: 331
Reputation: 16,499


Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 47 guests