We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › Random images, random text...
Page Index Toggle Pages: 1
Random images, random text... (Read 907 times)
Random images, random text...
Jun 21st, 2009, 2:00pm
 
I'm trying to construct a spelling game where the program throws up a random image, with three words to choose from, with one of them (obviously) being correct.

Do I need to construct two separate arrays for the images and the text? Is this completely stupid? Undecided
Re: Random images, random text...
Reply #1 - Jun 21st, 2009, 10:01pm
 
It is not stupid. You just have an alternative: make a class containing a word and an image, and make an array of it.
But the double array is OK too if you are more comfortable with it.
Re: Random images, random text...
Reply #2 - Jun 22nd, 2009, 6:57am
 
Thanks, I'll try that.
Page Index Toggle Pages: 1