Hello,
My save load works fine in simulator but doesn’t work in iOS. Does the code below have to be in main.lua? Because I am putting it under game.lua
local function onSystemEvent( event ) if ( event.type == "applicationSuspend" ) then sb.gameActive = false elseif ( event.type == "applicationResume" ) then sb.gameActive = true elseif ( event.type == "applicationExit" ) then saveGame() end end Runtime:addEventListener( "system", onSystemEvent )
