How do I make so that an image spawns inside a for loop with a delay
Got this code so far:
[code] local function spawnImage
if image=nil then
local image = display.newImage(“image.png”)
image.x = math.random(displayX/2 - 100, displayX/2 + 100)
physics.addBody(image)
soldier.myName = “image”
end
end
[/code] [import]uid: 24111 topic_id: 7793 reply_id: 307793[/import]
