Yo,
I am creating a word game in which kids have to re-arragne word to form a sentence as picture below
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
...
+ 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