just tidying up my code before I submit it, but just wondering something
I declare all my locals in the scene:createScene( event ) section of my script, so
local loadingTimer loadingTimer = timer.performWithDelay( 800, runFunction, 1 )
then in my scene:destroyScene( event ) section of my script I remove the timer when I leave the scene with
if loadingTimer then timer.cancel( loadingTimer ); end loadingTimer = nil
but I’m just wondering, do I need to declare it as a local again??
does the local var bleed through the different parts of 1 storyboard scene, or seeing I declare the var as local in the createScene part it is only local there, and is global in the destoryscene part?