Although it appears this should work, I’m not having much luck.
What I’m trying to do is attach 2 images into a table, and then move both by updating the table’s position.
So, I’m trying something like this:
local container = {}
local pic1 = display.newImage( “pic1.png” )
pic1.x = 40
pic1.y = 40
container.pic1 = pic1
local pic2 = display.newImage( “pic2.png” )
pic1.x = 90
pic1.y = 40
container.pic2 = pic2
container.y = 40
What happens is the that moving the container’s position happens, but the images are placed as per their initial set-up. I’m guessing the fact that I haven’t got this working means that I’ve either missed something fundamental, or it’s not possible.
Anyone got any suggestions?
(Essentially, I’m looking for shortcuts to updating many items.) [import]uid: 34358 topic_id: 7060 reply_id: 307060[/import]