I have a code that starts creating circles after 50 seconds, but since the circles are not removed when they fall off of the screen the app gets really slow after a while.
I tried using the multipuck sample code but it didnt work
here is what i have please help
[lua]local physics = require(“physics”)
physics.start()
physics.setGravity( 10, 0 )
paper = display.newImage( “paper.png” )
function enemymaker(event)
function enemymaker2(event)
ball = display.newImage( “ball.png”,-100,100 )
physics.addBody( ball, { density = 1,friction=0, bounce=.1, radius= 5} )
end
timer.performWithDelay( 100,enemymaker2, 50000 )
end
timer.performWithDelay( 50000,enemymaker, 1 )[/lua] [import]uid: 28068 topic_id: 6907 reply_id: 306907[/import]
[import]uid: 28068 topic_id: 6907 reply_id: 24986[/import]