Hi! just want to know if this practice is bad for app performance, if not, 200ms is enough to load a heavy scene?
local function onSceneChange( event ) local options = { effect = "fade", time = 800 } if ( event.phase == "began" ) then audio.play(click) local load = composer.loadScene( "scenes.scene2", false) print( "Touch event began on: " .. event.target.id ) elseif ( event.phase == "ended" ) then local tmr = timer.performWithDelay( 200, function() composer.gotoScene( "scenes.scene2", options ) end ) print( "Touch event ended on: " .. event.target.id ) end return true end
Thanks in advance
DoDi