Pause system

hey falk i was wandering if anyone have pause system for theier games
here what i did , but corona crashes everytime i ran it

-- Pause  
local function pausepressed(event)  
 if not (event.phase == "ended") then return end  
 if pause == 0 then  
 pause = 1  
 physics.stop()  
 else  
 pause = 0  
 physics.start()  
 end  
end  

whats wrong with this??? [import]uid: 11559 topic_id: 5383 reply_id: 305383[/import]

Try physics.pause() instead of stop [import]uid: 8486 topic_id: 5383 reply_id: 17979[/import]

Thanks alot H4ch1, i was breaking my head and couldnt get it to work, but now it works [import]uid: 11559 topic_id: 5383 reply_id: 17980[/import]