Hello friends,
I have a spelling game where the words are being drawn from an array, and the words vary in length from 3-8 characters. I would like to create two different modes - normal and easy, based on character counts - without creating two separate projects or arrays.
dropbox.com/s/5bbsm5gveebmm0a/spell.c3p
I stripped out the pictures just to make it smaller. I've included a text box with the target word for testing purposes.
I am imagining that I could invoke a mode using a variable, that reloads the array and filters entries based on character length. I would like to have a "normal" mode that uses all entries, and an easy mode that uses only entries up to 4 characters long. I would provide the user with a couple icons for normal and easy, and they could switch between the two modes. It would just invoke the filtering.
I would much prefer to stay with the same one array for both modes, filtering the same contents rather than creating additional arrays.
I tried to set a len condition, but I don't understand how to tell the system to only use array entries that fit a certain criteria.
Currently the letter blocks are baked into the layout. I would much prefer if the blocks were created dynamically, the same way that the slots are. Ideally there would be two options for how to handle it, either backend options for me for how to configure things for export, and/or user-selectable options during game play:
1) The number of letter blocks matches the character count of the target word, and...
2) I explicitly declare the number of letter blocks
I have now spent more than six hours trying to do only this, without success. I know how to make the boxes and do the offset, but the resulting boxes don't get tied into the rest of the mechanic properly.
Thanks very much for any guidance. Much appreciated.