help me out please

how do i create a timer that stays on a specific scene

  • Timers are ignorant of scenes, groups, etc.

  • Timers are not display objects and thus are not ‘anywhere’ exactly.

  • If you want a timer to stop or pause when leaving a scene, do so in the “will” or “did” phase of the composer hide() method:

    function scene:hide( event ) local sceneGroup = self.view local willDid = event.phase if( willDid == “will” ) then elseif( willDid == “did” ) then end end

PS - In the future, make the title of your post specifically related to the issue at hand.  Think of it as a short-hand notation to your question.  You’re more likely to get help with a well formatted question.

  • Timers are ignorant of scenes, groups, etc.

  • Timers are not display objects and thus are not ‘anywhere’ exactly.

  • If you want a timer to stop or pause when leaving a scene, do so in the “will” or “did” phase of the composer hide() method:

    function scene:hide( event ) local sceneGroup = self.view local willDid = event.phase if( willDid == “will” ) then elseif( willDid == “did” ) then end end

PS - In the future, make the title of your post specifically related to the issue at hand.  Think of it as a short-hand notation to your question.  You’re more likely to get help with a well formatted question.