hi,
i don’t understand why i clic, two object “cres” appears while I do not want one
thanks for you response
function appears () local xposition = math.random( 1, 250 ) local yposition = math.random( 1,250 ) local cres = display.newImage ("crate.png", xposition, yposition ) physics.addBody( cres, { density=1, friction=10, bounce=20 } ) end Runtime:addEventListener( "touch", appears )