How do I Make a large word list?

Get help using Construct 2

Post » Sun Feb 21, 2016 12:19 am

Hello all,

I'm making a word game in which the user is going to be given a random word from a very large list (hundreds at least, maybe thousands) of words. I was wondering how I could make a word list like this in construct two, without having to manually type every word into a string array or something. My game could then randomly grab an index of that list and use that word.


Thanks,

William
B
8
Posts: 25
Reputation: 356

Post » Sun Feb 21, 2016 9:00 am

Hi @WilliamAnderson

You can add a text file into your project by right clicking and importing files. I asked a similar question last week:

viewtopic.php?t=168663

Will have the answer and an example over there. Then just do a random number between 0 and total number in list and use the index value to give a random word from your list.
B
38
S
11
G
1
Posts: 200
Reputation: 4,467


Return to How do I....?

Who is online

Users browsing this forum: HenryPK and 9 guests