Hello corona, I was wondering if anybody knew how to make a button so when someone clicks on it, it will then start the physics of them game? So like have a start button and then once they click on it, the physics will start? [import]uid: 122076 topic_id: 21381 reply_id: 321381[/import]
Hi Brandon
Peach Pellen’s fantastic Corona tutorials may help you out, take a look on this tutorial and you will hopefully get an idea how to start the physics with a button.
http://techority.com/2011/10/13/a-simple-pause-button/ [import]uid: 122802 topic_id: 21381 reply_id: 84668[/import]
This is simple.
[code]
local myButton = display.newRect(100, 100, 50, 50)
local function startPhysics(event)
physics.start()
return true
end
myButton:addEventListener(“tap”, startPhysics) [import]uid: 84637 topic_id: 21381 reply_id: 84676[/import]