I have about 60 png images (A1.png, A2.png, A3.png, etc.) in sequence in a table that I want to display in 10 rows on the iPad simulator. I would also like to be able to move each of the images around the screen by touch.
I can get images to show up individually on the screen with x and y coordinates, but don’t know how to make them display when they are in a table format.
Any suggestions would be appreciated on displaying the table images or moving them by touch. [import]uid: 105659 topic_id: 20173 reply_id: 320173[/import]
I hope the example below helps, if it’s not what you were looking for feel free to provide examples of what you are doing to display them individually and how you’re storing them in the table. Also note that you may want to look into corona display groups for a container in which to hold multiple images: http://developer.anscamobile.com/content/display-objects#Groups
– individually display the first image in the table
table[1].isVisible = true
– display all images in the table
for index,image in pairs(table) do
image.isVisible = true
end
[/code] [import]uid: 100558 topic_id: 20173 reply_id: 78793[/import]