I’m trying to make a preloader scene. Problem is that the loading animation stops when the game scene is loading. Is there a way to preload a scene and simultaneously show loading animation?
function scene:create( event ) local sceneGroup = self.view local animLoading = display.newText( "Loading", 100, 200, native.systemFont, 16 ) sceneGroup:insert(animLoading) transition.blink( animLoading, { time=2000 } ) end function scene:show( event ) local sceneGroup = self.view local phase = event.phase if phase == "will" then elseif phase == "did" then local game = composer.loadScene( "game", false ) local function changeScene() composer.gotoScene( "game", "fade", 800 ) end preloadtimer = timer.performWithDelay( 5000, changeScene ) end end