# Timer not functioning

**URL:** <https://community.thunkable.com/t/timer-not-functioning/426265>\
**Category:** Questions about Thunkable X\
**Created:** [January 25, 2020, 2:57am UTC](https://community.thunkable.com/t/timer-not-functioning/426265 "2020-01-25T02:57:05Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Garry\_Lane](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/garry_lane/32/58057_2.png) [@Garry\_Lane](https://community.thunkable.com/u/Garry_Lane)\
**Post date:** [January 25, 2020, 2:57am UTC](https://community.thunkable.com/t/timer-not-functioning/426265/1 "2020-01-25T02:57:05Z")

</div>

CoinRushStop Timer does not seem to be firing. Is it bad coding or bug? It is supposed to turn off CoinRush Timer.

 ![timer not working](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/8/08d478f547b79b1006fb31df320e083537bdf527.png)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [January 25, 2020, 3:12am UTC](https://community.thunkable.com/t/timer-not-functioning/426265/2 "2020-01-25T03:12:19Z")

</div>

It looks like when COINSCOLLECTED is ≥ 3, then one coin should be created. But it’s possible that COINRUSH stops working as soon as you disable it.

Does it create one coin? Does it create more coins? If it’s not creating any coins, then my guess is probably true.

---

<div class="post-metadata">

**Author:** ![Garry\_Lane](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/garry_lane/32/58057_2.png) [@Garry\_Lane](https://community.thunkable.com/u/Garry_Lane)\
**Post date:** [January 25, 2020, 3:16am UTC](https://community.thunkable.com/t/timer-not-functioning/426265/3 "2020-01-25T03:16:01Z")

</div>

It creates one coin every time it fires until CoinRushStop fires, but CoinRush is not being disabled by CoinRushStop it just keeps on creating coins.  
[https://x.thunkable.com/copy/462e0dbebe8494e22ed617c69dec89e8](https://x.thunkable.com/copy/462e0dbebe8494e22ed617c69dec89e8)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [January 25, 2020, 3:43am UTC](https://community.thunkable.com/t/timer-not-functioning/426265/4 "2020-01-25T03:43:40Z")

</div>

You’re right, it’s not working correctly. I added a label and set up debugging text. I should see A, then B, then C, then D; but instead, I’m seeing A, then B, then C, then A, B, C, B, C, etc.

I never see D. That timer never fires even though it should. I’m not sure how reliable timers are in Thunkable. I also noticed that you’re using them like you would normally use variables so you might try app variables instead and see if that fixes the problem.

 ![Screen Shot 2020-01-24 at 7.30.46 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/f/1f7a0bf5390f23392c93df4a0e57820d43534130.png)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [January 25, 2020, 3:44am UTC](https://community.thunkable.com/t/timer-not-functioning/426265/5 "2020-01-25T03:44:50Z")

</div>

Also, the canvas is back to not working on my iPhone (it just shows up blank). I was able to preview it online from the Details page.

---

<div class="post-metadata">

**Author:** ![Garry\_Lane](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/garry_lane/32/58057_2.png) [@Garry\_Lane](https://community.thunkable.com/u/Garry_Lane)\
**Post date:** [January 25, 2020, 4:23am UTC](https://community.thunkable.com/t/timer-not-functioning/426265/6 "2020-01-25T04:23:13Z")

</div>

Thank you so much for spending time on this for me. As for blank canvas have you tried reinstalling the Live app, that worked for me. Would you be able to elaborate on the variable option, I am a little unclear how I would structure that.  
Again much appreciative of your time.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [January 25, 2020, 5:05am UTC](https://community.thunkable.com/t/timer-not-functioning/426265/7 "2020-01-25T05:05:29Z")

</div>

I can see using a timer for something that needs to have a duration and/or a repeating aspect (every x seconds). But for your COINRUSHSTOP timer, it could just be a variable that changes from false to true… I don’t see a reason to make it a timer. Unless I’m missing something?

You also generally don’t want to check the value of a variable when a timer fires – unless you have a really good reason to – because the check is only going to be made at the moment the timer fires (e.g. an every 3 seconds timer will check once at 3 seconds, 6 seconds, etc.).

Instead, if you have a variable check (if app COINSCOLLECTED ≥ 3) within a Forever block, the check will be made constantly (at least ten times per second).

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [January 25, 2020, 5:06am UTC](https://community.thunkable.com/t/timer-not-functioning/426265/8 "2020-01-25T05:06:59Z")

</div>

Updating the Thunkable Live app did fix the canvas display issue. Thank you.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [January 25, 2020, 5:11am UTC](https://community.thunkable.com/t/timer-not-functioning/426265/9 "2020-01-25T05:11:23Z")

</div>

I switched around a couple blocks and got the green screen to appear.

Can you explain your pseudocode/algorithm?

For example, are you supposed to drag the player to pick up coins and then once three coins are picked up, the coin creation should accelerate for a split second until the green screen appears, and then coin creation should stop?

---

<div class="post-metadata">

**Author:** ![Garry\_Lane](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/garry_lane/32/58057_2.png) [@Garry\_Lane](https://community.thunkable.com/u/Garry_Lane)\
**Post date:** [January 25, 2020, 5:54am UTC](https://community.thunkable.com/t/timer-not-functioning/426265/10 "2020-01-25T05:54:26Z")

</div>

That is exactly what i am trying to achieve. But accelerated creation should stop and normal creation speed should resume. I believe i have resolved the issue. 🙂

 ![timer not working issue resolved](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/d/6dfb631c4f4c29dbe9a91bd8f4aecbf4c6b225c8.png). This kept retriggering the timer.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 11:45am UTC](https://community.thunkable.com/t/timer-not-functioning/426265/11 "2024-11-08T11:45:54Z")

</div>


