I am developing a matching game 4*4 SQUARE as in the image below:
What I have DONE:
[x] Create a array random16ImageWord= {"a","a.png","b","c","c.png","b"...}
[x] Create 16 BLOCKS (grouped in Pictures group) with UID = 33 > 48
Now I want to:
+ BLOCK with value random16ImageWord.At("Block.UID") contain ".png" will load IMAGE
+ BLOCK with value random16ImageWord.At("Block.UID") not contain ".png" will load TEXT
I am kind of sucess with these code:
The result:
However, my trouble is the TEXT OBJECTs have been creating continuously without stoppage...
Could you please check my .capx and help me out?
Thank you so much!
P.S: My .capx https://1drv.ms/u/s!AnUEszOwQCI1jdkz5ugf9Mk8Ckma_Q
My .capx contain the plugin (mkArray) to randomize array at https://www.scirra.com/forum/viewtopic.php?f=153&t=179478&p=1135190#p1135190
Alternative download link here: https://1drv.ms/u/s!AnUEszOwQCI1jdk0TD1_lkT8y0DI7Q