make object move

How to make a table of object move ?eg
i have a table called enemy.Now I want these two images to move from one side to the other how can I do it?please help me if you can?

local enemy = {
{tankImage = “jeep.png”, barrelImage = “enemyTankBarrel.png”},
{tankImage = “truck.png”, barrelImage = “enemyTankBarrel.png”},
} [import]uid: 82446 topic_id: 21849 reply_id: 321849[/import]

The table alone won’t create display objects. If you want to create an object from your images, you need to use the display.newImage() or display.newImageRect() API first.

Those two functions return an object which you can in-turn move, rotate, etc.

I recommend taking a look at the Getting Started Guide tutorial (you can skip the environment setup stuff if you’d like), but it walks you through basic display object creation and pretty much all the basics you need to know about developing apps with Corona.

Here’s the link:
http://developer.anscamobile.com/resources/corona-quick-start-guide

And here’s “Corona in 5 Minutes” which is also worth a look:
http://developer.anscamobile.com/content/application-programming-guide-tutorial-introduction

And the rest of the docs:
http://developer.anscamobile.com/resources/docs

Best of luck. [import]uid: 52430 topic_id: 21849 reply_id: 86978[/import]