random call word

Get help using Construct 2

Post » Sun Jan 31, 2016 6:00 am

hello all,

I am trying to call a random word.

I have got it to work with a txt file with " , " between the words.

Image

But I need to also call a second part that matches the first.

I have tried to call it from an xml file. Where selected = word and image.
But have failed to make the mods required.

Image

any advise on this matter would be very gratefully appreciated.

Thanks again. Jeremy C
B
29
S
13
G
10
Posts: 355
Reputation: 8,317

Post » Sun Jan 31, 2016 9:46 am

I don't really understand..
What is the relation of text2 and text3 to text1?

I mean, couldn't you just set a local variable to the random number and use that variable in the expressions?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sun Jan 31, 2016 3:51 pm

LittleStain wrote:I don't really understand..
What is the relation of text2 and text3 to text1?

I mean, couldn't you just set a local variable to the random number and use that variable in the expressions?


The object is to expand my spelling b game. where text has image and words.

Yes! last night I did something like what you suggested. I set images with variables letter1, letter2, letter3 and so on.

As I would like to have 20-30 words it seams that this might work, as I was able to call random frame.
set text to word and adapt my org. code for on click or on key pressed. if letter = yes show else try again .

I know stop trying to over complicate it. it is just a game and as long as it works why rack you brain for a better way of doing it.

Have fun and enjoy. Jeremy C.
B
29
S
13
G
10
Posts: 355
Reputation: 8,317


Return to How do I....?

Who is online

Users browsing this forum: ColombageEnPLS and 4 guests