How do I compare text in textbox not include space

Get help using Construct 2

Post » Sun Jun 19, 2016 6:47 pm

How I compare the text which player input into textbox. I mean i want to compare the text only not wrong if player pressed space-bar as long as the text which input match to the original text set.

example:
original text: "Love^^@me"
player inputted: "Love ^ ^ @ me"
I would like the comparison result matches to original, focus on text only not space between the text.

Please Help Thank you
B
7
S
3
Posts: 14
Reputation: 607

Post » Sun Jun 19, 2016 7:28 pm

'unspace' it.

C: While
C: System compare 2 values .. find("string", " ") .. >< - 1
A: replace("string", " ", "")
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950


Return to How do I....?

Who is online

Users browsing this forum: Mhanz and 17 guests