
-----------------------------------
MI
Thu May 09, 2013 4:09 am

Need help using pictures in an array on Turing!
-----------------------------------
What is the problem you are having?
I am trying to import 2 different images at once in rows and columns (at random). I need help on how to set up an array for that.


Describe what you have tried to solve this problem
I tried looking at some of the discussions, but I can't get it to work. Any help is appreciated!


Please specify what version of Turing you are using
Turing 4.1.1

-----------------------------------
TW iz Rippin
Thu May 09, 2013 9:59 am

RE:Need help using pictures in an array on Turing!
-----------------------------------
Have you tried a 2d array?

-----------------------------------
MI
Thu May 09, 2013 8:00 pm

RE:Need help using pictures in an array on Turing!
-----------------------------------
I know I need to use a 2D array, but I don't know how exactly to code it to make it work. Is it possible to show me an example if you can? Thanks

-----------------------------------
Insectoid
Thu May 09, 2013 8:18 pm

RE:Need help using pictures in an array on Turing!
-----------------------------------
If your image files have good names like image_1.jpg, image_2.jpg, etc., you can use string manipulation to load them in. "image_"+instr(rand())+".jpg", for example. If you can fill an array with random numbers, you can fill it with random pictures.
