how do I make a display object timer that stays only in specific scenes i choose

how do I make a display object timer that stays only in specific scenes i choose

Please stop asking essentially the the same question over and over in new threads:

https://forums.coronalabs.com/topic/59443-how-to-put-functions-in-to-scene-groups/

https://forums.coronalabs.com/topic/59517-help-me-out-please/

You need to improve your questions so I and others know what you’re trying to do.  You’re just not giving enough details to be clear what you mean.  I’m not yelling or anything.  I’m just saying.  A short question or description doesn’t give enough details for me to fully grok your intent.

For example.  I don’t know what you mean by ‘stay in a scene’ …

  • cancel when the scene is hidden?
  • cancel when it is destroyed?
  • pause in either of the above cases?
  • Be tied to a specific object in a scene?

Give a high-level overview of what you’re trying to achieve.  Give examples.  Elaborate.  Submit the post.  Read it, edit it for clarity and formatting, resave it.  Repeat till it is super clear what you need.  

Don’t make us struggle and scratch our heads trying to understand what the heck you mean.

If anyone spends more time answering your question than you do asking it, that is unequal and wrong.  (OK, that was a little bit of yelling.)

https://forums.coronalabs.com/topic/55780-ask-a-better-question-get-a-better-answer/

I’m going to extend Ed’s thoughts a bit.

First, Forum rules say “Only ask your question once”. You’re responsible for asking a good question with enough information  to give us an idea of what you want.

Secondly, start new threads when you have new questions. One of the threads Ed points out you asked this question at the bottom of a different question.

Now you your question. Or are you asking how do you create a display object that shows the results of a timer that stays on screen during your scene? I suspect this is the question you’re really asking.

Rob

yep

See: https://coronalabs.com/blog/2015/04/28/tutorial-implementing-a-countdown-timer/

There is also an app in the SampleCode that comes with Corona called “Timer” that also demonstrates how to do this. The only thing you would have to do is make sure the timer’s display object gets put into the scene’s group and to start the timer in scene:show()'s “did” phase and stop it in scene:hide()'s “will” phase.

Rob

thats the code I’m using for the timer so I’m still having the same problem

Please stop asking essentially the the same question over and over in new threads:

https://forums.coronalabs.com/topic/59443-how-to-put-functions-in-to-scene-groups/

https://forums.coronalabs.com/topic/59517-help-me-out-please/

You need to improve your questions so I and others know what you’re trying to do.  You’re just not giving enough details to be clear what you mean.  I’m not yelling or anything.  I’m just saying.  A short question or description doesn’t give enough details for me to fully grok your intent.

For example.  I don’t know what you mean by ‘stay in a scene’ …

  • cancel when the scene is hidden?
  • cancel when it is destroyed?
  • pause in either of the above cases?
  • Be tied to a specific object in a scene?

Give a high-level overview of what you’re trying to achieve.  Give examples.  Elaborate.  Submit the post.  Read it, edit it for clarity and formatting, resave it.  Repeat till it is super clear what you need.  

Don’t make us struggle and scratch our heads trying to understand what the heck you mean.

If anyone spends more time answering your question than you do asking it, that is unequal and wrong.  (OK, that was a little bit of yelling.)

https://forums.coronalabs.com/topic/55780-ask-a-better-question-get-a-better-answer/

I’m going to extend Ed’s thoughts a bit.

First, Forum rules say “Only ask your question once”. You’re responsible for asking a good question with enough information  to give us an idea of what you want.

Secondly, start new threads when you have new questions. One of the threads Ed points out you asked this question at the bottom of a different question.

Now you your question. Or are you asking how do you create a display object that shows the results of a timer that stays on screen during your scene? I suspect this is the question you’re really asking.

Rob

yep

See: https://coronalabs.com/blog/2015/04/28/tutorial-implementing-a-countdown-timer/

There is also an app in the SampleCode that comes with Corona called “Timer” that also demonstrates how to do this. The only thing you would have to do is make sure the timer’s display object gets put into the scene’s group and to start the timer in scene:show()'s “did” phase and stop it in scene:hide()'s “will” phase.

Rob

thats the code I’m using for the timer so I’m still having the same problem