How to spawn an object

I have the following object with he following properties:

local rowonecrate1 = display.newImage( “crate.png” )
rowonecrate1.x = 30; rowonecrate1.y = -50
rowonecrate1.myName = “Row one first crate”

physics.addBody( rowonecrate1, { density=3.0, friction=0.5, bounce=0.3 } )

when the object moves down by gravity I wanted another one to spawn in it place one after another. Just wanted if someone could help me out. [import]uid: 6134 topic_id: 27609 reply_id: 327609[/import]

http://docs.coronalabs.com/api/library/timer/performWithDelay.html [import]uid: 108204 topic_id: 27609 reply_id: 112115[/import]

This guide will help you: http://www.coronalabs.com/blog/2011/09/14/how-to-spawn-objects-the-right-way/ [import]uid: 84637 topic_id: 27609 reply_id: 112158[/import]

If what you are trying is just a continuous drop of crates you can add a listener for the last crate droped, geting the y position in each frame. When the position of lastCrate > trackLimit spawn newCrate and Track new Crate.

I am new with corona, but I would do something like that for a flash game. [import]uid: 140715 topic_id: 27609 reply_id: 112539[/import]