How would I do this?

For questions about using Classic.

Post » Mon Feb 21, 2011 6:47 am

Hello there,

I would like to make a "word search" program in construct. Like the ones you might know from the newspapers. So can someone point me to a tutorial or can explain me, how I'd do that in construct?

Any help here would appreciated! I sadly have no idea where to start at the moment.

Thanks a lot in advance

Posts: 2
Reputation: 429

Post » Mon Feb 21, 2011 11:58 am

Word search? As in you have a grid of letters, and have to find words?

I'll assume, just cause it's more awesome, that you want to generate word searches. Well, first off, get your words, and make them appear at random in the grid. Set a starting position, and send the word off in a random direction. Then test if

a) You do not overwrite an existing word, or if you do, that the letter you overwrite is the same as the letter you write.
b) the word does not go off the grid.

Then, fill all the empty boxes with a random letter.

Then, by say clicking and dragging across multiple boxes (with a rule that a box cannot be selected if two of the boxes next to it are selected, for diagonal selection), write the values of the boxes to a variable. If the variable matches one of the words in the word search, hey presto, a point!
Posts: 339
Reputation: 9,604

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 0 guests