How can I loop this so it keeps spawning images?
function tapHandler(event) thingy[1]:removeSelf() end for i=1,1 do thingy[i] = display.newImageRect("wassup.png", 50, 50, true); thingy[i].x = math.random(0,W1); thingy[i].y = H1\*-0.2; thingy[i].name = ("thingy"..i); thingy[i]:addEventListener("tap",tapHandler) transition.to(thingy[i],{time=1000000,rotation=math.random(-80000,80000)}) physics.addBody(thingy[i],"dynamic",{bounce=1,friction=1,density=1}) end