That didn’t work sadly maybe some code will help so you can see how I’ve set it up.
Start Button widget (outside of implementation in storyboard)
local startBtn local function onStartBtnRelease() local function startPhysics(event) physics.start() return true -- indicates successful touch end end
Start button widget in create scene (yes its inserted into a group)
startBtn = widget.newButton{ label="Start", labelColor = { default={255}, over={128} }, defaultFile="play.png", overFile="play.png", width=120, height=60, onRelease = onStartBtnRelease -- event listener function } startBtn.x = 20 startBtn.y = 300
Physics start and pause in enter scene
physics.start() physics.pause()
Remove widget in destroy scene
if startBtn then startBtn:removeSelf() -- widgets must be manually removed startBtn = nil end