hi i am 13 years old and need help improving my code as well as help in the way that someone tell me
why this does not work. Thank you!
local physics = require(“physics”)
physics.start()
physics.setGravity( 0, 0 )
physics.setDrawMode(“hybrid”)
local back = display.newImage(“bkg_bricks.png”)
local function BloonSpawn ()
local balloon = display.newImage(“red_balloon.png”)
balloon.x = math.random(50, 275 )
balloon.y = display.contentHeight / 1 + 100
physics.addBody(balloon, { bounce = 0.4, friction = 0.4, radius = 43})
end
function balloonbreak ( event )
balloon:removeSelf()
end
timer.performWithDelay( 500, BloonSpawn, 100)
balloon:addEventListener(“touch”, balloonbreak)
[import]uid: 215700 topic_id: 36253 reply_id: 336253[/import]