so im learning about tables and its all good but i do have a question, please if your gonna answer dont refer me to a link, if i understood by reading i wouldnt be asking,
anyway i was reading this article
http://www.coronalabs.com/blog/2011/06/21/understanding-lua-tables-in-corona-sdk/
i understand the post but when i get to the bottom example, how would you display these objects on the screen without them overlapping, i made a table with images and displayed it on the screen but my images overlap, how would i make each individually appear on different parts of the screen
Example from article local myTable = { "blue", "red", "yellow", "green", "white", "purple" } for i=1,#myTable do print( myTable[i] ) end
everything is fine with the example above when you are printing, but what about when you are displaying them to the simulator they will overlap each other, how do you avoid this?
this is my example
local myTable = {}
myTable[1] = “yellowGreen.png”
myTable[2] = “pinkDot.png”
for i=1,#myTable do
display.newImage(myTable[i])
end
images here are overlapping, how do you fix
