Need help using pictures in an array on Turing!
Author |
Message |
MI
|
Posted: Thu May 09, 2013 4:09 am Post subject: 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 |
|
|
|
|
|
Sponsor Sponsor
|
|
|
TW iz Rippin
|
Posted: Thu May 09, 2013 9:59 am Post subject: RE:Need help using pictures in an array on Turing! |
|
|
Have you tried a 2d array? |
|
|
|
|
|
MI
|
Posted: Thu May 09, 2013 8:00 pm Post subject: 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
|
Posted: Thu May 09, 2013 8:18 pm Post subject: 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. |
|
|
|
|
|
|
|