tables

sorry that was mt typo, i copied pasted this time, this is what i have and it does not work

local myTable = {}


myTable[1] = “yellowGreen.png”

myTable[2] = “pinkDot.png”

myTable[3] = “orangeDot.png”

myTable[4] = “blueDot.png”



for i=1,#myTable do

local img = display.newImage(myTable[i])

img.x=i*10

img.y=100

end

Try this:

local myTable = {} myTable[1] = display.newImage("yellowGreen.png") myTable[2] = display.newImage("pinkDot.png") myTable[3] = display.newImage("orangeDot.png") myTable[4] = display.newImage("blueDot.png") for i=1,#myTable do myTable[i].x=i\*10 myTable[i].y=100 end

You the MAN, HAHA thanks.

it worked, just one smaller problem it only display 2 of my images

Make sure the image filenames are correct.  Also, you will have to adjust this line: “myTable[i].x = i * 10”  to however big your images are.  Just change the number 10 around until you find a number that works for your images.  Same with the y coordinate

its like your psychic, thanks again, my other two names were wrong, you should teach tutorials, im gonna add you as a friend

:slight_smile:

Nah not psychic, just like many others I’ve learned from making the same mistakes :slight_smile:

Hi JoelG411.  Please read this blog post:

http://www.coronalabs.com/blog/2013/07/09/tutorial-basic-debugging/

Many of the issues above you might have been able to determine by looking at the error messages generated by Corona in your console log file, like those image names being incorrect.   It really helps the people on here trying to help you if we know if there are errors going on.

Moving display objects is a pretty common thing.    You can also go to our Tutorial page: Corona University

http://www.coronalabs.com/resources/tutorials/images-audio-video-animation/

And look at the Loading Images video and refer to other information here.

I had to laugh at this line:

please if your gonna answer dont refer me to a link, if i understood by reading i wouldnt be asking,

I’m wondering how you managed to digest the information that JonPM wrote on the forum? 

its like your psychic

Ah, that’s how  :) 

haha