Trouble with restarting scene.

“I can’t find the solution anywhere”.

Seriously, I have to ask, have you ever heard of google?

A quick search for ‘cancel timer corona’ yields exactly the information you need.

Start your timer using:

local knifeTimer = timer.performWithDelay( 3500, createKnife, -1 )

Cancel it using:

timer.cancel(knifeTimer)

Sorry, last question, where do I add timer.cancel(knifeTimer) ???

@Zain ,

Kindly please read composer & Scene concept first - https://docs.coronalabs.com/api/library/composer/index.html

Hope you will correct first the missing required things for a scene that you have posted !!!

Too many mistakes in code :

  • No composer lib required

  • under show nothing called

  • where is create used

  • No declaration for sceneGroup

Please update & then resend.

-Assif

create is above the code and so is the composer, and the scene group thing works with just the self view so i left it like that, I will read the link. Thank you for being nice.

@Zain , Nice to hear !!!

Post complete code or simply attach scene.lua file !!!

Thus its become easy to debug for anyone.

-Assif