I am trying to remake flappy bird, and right now, I am not even close to done. For now, I need to know how to make the bird fall back down. Any help?
local physics = require "physics" physics.start() local bird = display.newImage("Flappy-Bird.png", display.contentWidth/2, display.contentHeight/2) bird:scale(.15,.15) physics.addBody( bird, "rigid", {density=0, friction=0, bounce=0 } ) function activatebird(self, event) self:applyForce( 0, -35, self.x, self.y ) end local timeLimit = 4 function touchScreen (event) if event.phase == "began" then bird.enterFrame = activatebird Runtime:addEventListener( "enterFrame", bird ) end end timer.performWithDelay( 1000, timerDown, timerLimit) Runtime:addEventListener( "touch", touchScreen )