evildead9000
Member
Hello All,
I'm working on a crossword puzzle and I'm not sure how to begin coding.
I have one main sprite with 26 frames, each containing a letter of the alphabet. I have an enum for themes. As in "animals", "places", etc. I have one array set up so far, which contains numerous animal types; "bear", "koala", etc.
I would like a random theme to be selected, which then accesses a script to place the appropriate words in an array. Afterwards, word by word, I plan on reading one letter at a time for grid placement.
For example: Using the word "bear", I would obtain the B, then place the sprite on a grid using sprite_index 2, which is a "b". I would then continue for each letter of the word, then move onto the next.
This is my idea and I'm not sure it's a good approach, but I believe it could be much simpler. Would a DS Map be better? Is an enum recommended? etc.
Please let me know if I'm on the right track. Also, I'm not sure how to implement what I just explained. It's quite tricky!
Thanks much!
I'm working on a crossword puzzle and I'm not sure how to begin coding.
I have one main sprite with 26 frames, each containing a letter of the alphabet. I have an enum for themes. As in "animals", "places", etc. I have one array set up so far, which contains numerous animal types; "bear", "koala", etc.
I would like a random theme to be selected, which then accesses a script to place the appropriate words in an array. Afterwards, word by word, I plan on reading one letter at a time for grid placement.
For example: Using the word "bear", I would obtain the B, then place the sprite on a grid using sprite_index 2, which is a "b". I would then continue for each letter of the word, then move onto the next.
This is my idea and I'm not sure it's a good approach, but I believe it could be much simpler. Would a DS Map be better? Is an enum recommended? etc.
Please let me know if I'm on the right track. Also, I'm not sure how to implement what I just explained. It's quite tricky!
Thanks much!