Tokenat did not work as my intention!

Get help using Construct 2

Post » Thu Dec 15, 2016 4:12 pm

Yo,

I am creating a word game in which kids have to re-arragne word to form a sentence as picture below
Image

My concept:
+ Put sentence into array // SENTENCE = ("I am Giang from Viet Nam")
+ Split a sentence to Variable by tokenat
- Var1 = tokenat(SENTENCE.at(0),0," ") //use seperator = White Space
...
- Var6,7...
+ Load random position for Var1 > 7...
+ Kid click Word > push into Array called ANSWER
+ Compare SENTENCE and ANSWER

My problem:
+ Coud not split with word like: There's - There're even some words like I'll and I'm still be splitted.
+ Word could not split completely:
eg: "My thereds works in homeab bank" vs "My thereds works in homea bank" - homeab could not be splitted into variable even homea could be.

So I doubt that there is an limitation with tokenat like length of each token...?

Please help me out!

My capx https://www.dropbox.com/s/3wb1n9kwjo7qcnp/What%20is%20Order.capx?dl=0
B
29
S
6
G
2
Posts: 31
Reputation: 2,561

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 26 guests