local physics = require("physics") physics.start() system.activate( "multitouch" ) player = display.newCircle(100,0,50) physics.addBody(player, "dynamic") function jump() player:applyLinearImpulse(0,-0.5,button.x,button.y) end button = display.newRect(300,200,100,100) button:addEventListener("touch",jump) local function checkpress(event) if event.phase == "began" or event.phase == "moved" then shot() end end Runtime:addEventListener("touch", checkpress)
up
I would suggest you look in the SampleCode/Interface folder. There are two sample projects there: MultitouchButton and MultitouchFingers that should get you started.
Rob
up
I would suggest you look in the SampleCode/Interface folder. There are two sample projects there: MultitouchButton and MultitouchFingers that should get you started.
Rob