# How do I add a timer to my game, which you can change before the user starts the game

**URL:** https://community.thunkable.com/t/how-do-i-add-a-timer-to-my-game-which-you-can-change-before-the-user-starts-the-game/2085108
**Category:** Questions about Thunkable X
**Created:** [October 16, 2022, 9:09am UTC](https://community.thunkable.com/t/how-do-i-add-a-timer-to-my-game-which-you-can-change-before-the-user-starts-the-game/2085108 "2022-10-16T09:09:00Z")
**Posts on this page:** 14
**Page:** 2

<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: [October 23, 2022, 3:17am UTC](https://community.thunkable.com/t/how-do-i-add-a-timer-to-my-game-which-you-can-change-before-the-user-starts-the-game/2085108/21 "2022-10-23T03:17:19Z")

</div>

I’m not able to spend time looking over blocks to see if anything looks wrong. If you notice something not working and can provide details and screenshots or a project link I may be able to take a look and find the cause.

I also don’t use timers and find them confusing so I’m not the best person to help you.

---

<div class="post-metadata">

### Author: ![leviocsmithk](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/leviocsmithk/32/136645_2.png) [@leviocsmithk](https://community.thunkable.com/u/leviocsmithk)
#### Post date: [October 23, 2022, 3:18am UTC](https://community.thunkable.com/t/how-do-i-add-a-timer-to-my-game-which-you-can-change-before-the-user-starts-the-game/2085108/22 "2022-10-23T03:18:03Z")

</div>

Ok, Sounds good.

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [October 23, 2022, 11:05am UTC](https://community.thunkable.com/t/how-do-i-add-a-timer-to-my-game-which-you-can-change-before-the-user-starts-the-game/2085108/23 "2022-10-23T11:05:21Z")

</div>

> [@leviocsmithk](#):
>
> Does this look correct?

No.

All timer blocks should be out of the `Fire block`.

Setting the timer intervals and timer loop property should be outside of the Timer Fire event.

---

<div class="post-metadata">

### Author: ![leviocsmithk](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/leviocsmithk/32/136645_2.png) [@leviocsmithk](https://community.thunkable.com/u/leviocsmithk)
#### Post date: [October 23, 2022, 8:46pm UTC](https://community.thunkable.com/t/how-do-i-add-a-timer-to-my-game-which-you-can-change-before-the-user-starts-the-game/2085108/24 "2022-10-23T20:46:01Z")

</div>

Oh, ok, Thanks, I will try to fix that today. Many Thanks, Levi

---

<div class="post-metadata">

### Author: ![leviocsmithk](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/leviocsmithk/32/136645_2.png) [@leviocsmithk](https://community.thunkable.com/u/leviocsmithk)
#### Post date: [October 24, 2022, 6:50am UTC](https://community.thunkable.com/t/how-do-i-add-a-timer-to-my-game-which-you-can-change-before-the-user-starts-the-game/2085108/25 "2022-10-24T06:50:12Z")

</div>

![Screen Shot 2022-10-24 at 4.49.35 pm](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/9/49220bfdaaa8019132449ccfd7e71188d3d3e9d1.png)  
So something more like this where I have just added the marker placing elements underneath.

---

<div class="post-metadata">

### Author: ![leviocsmithk](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/leviocsmithk/32/136645_2.png) [@leviocsmithk](https://community.thunkable.com/u/leviocsmithk)
#### Post date: [October 24, 2022, 7:30am UTC](https://community.thunkable.com/t/how-do-i-add-a-timer-to-my-game-which-you-can-change-before-the-user-starts-the-game/2085108/26 "2022-10-24T07:30:02Z")

</div>

When I do it like this it does not place the markers for like 5 minutes. When it should only take a max of like 70 seconds.

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [October 24, 2022, 8:40am UTC](https://community.thunkable.com/t/how-do-i-add-a-timer-to-my-game-which-you-can-change-before-the-user-starts-the-game/2085108/27 "2022-10-24T08:40:26Z")

</div>

How many times should I say `timer blocks` should not go inside the `fire event`

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/1/517788f56ff597e26519d16a555686f45f9f9f0d.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: [October 24, 2022, 2:22pm UTC](https://community.thunkable.com/t/how-do-i-add-a-timer-to-my-game-which-you-can-change-before-the-user-starts-the-game/2085108/28 "2022-10-24T14:22:11Z")

</div>

Also, you do not need two different timers. You only need one timer that fires and then completes all of the steps in your blocks in the order you now have them.

---

<div class="post-metadata">

### Author: ![leviocsmithk](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/leviocsmithk/32/136645_2.png) [@leviocsmithk](https://community.thunkable.com/u/leviocsmithk)
#### Post date: [October 24, 2022, 9:15pm UTC](https://community.thunkable.com/t/how-do-i-add-a-timer-to-my-game-which-you-can-change-before-the-user-starts-the-game/2085108/29 "2022-10-24T21:15:28Z")

</div>

Sorry for the misunderstanding, this is my first app and I am still learning, Thanks for your help with everything, I will try what you have said today.

Thanks, Levi

---

<div class="post-metadata">

### Author: ![leviocsmithk](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/leviocsmithk/32/136645_2.png) [@leviocsmithk](https://community.thunkable.com/u/leviocsmithk)
#### Post date: [October 30, 2022, 3:38am UTC](https://community.thunkable.com/t/how-do-i-add-a-timer-to-my-game-which-you-can-change-before-the-user-starts-the-game/2085108/30 "2022-10-30T03:38:14Z")

</div>

Here is what have done now, I have moved the Timer Blocks outside of the fire event.

 ![Screen Shot 2022-10-30 at 1.37.57 pm](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/f/4fb8a102ef5b7d0c66aa267f07bd55e776e2d6b4.png)

---

<div class="post-metadata">

### Author: ![leviocsmithk](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/leviocsmithk/32/136645_2.png) [@leviocsmithk](https://community.thunkable.com/u/leviocsmithk)
#### Post date: [October 30, 2022, 4:32am UTC](https://community.thunkable.com/t/how-do-i-add-a-timer-to-my-game-which-you-can-change-before-the-user-starts-the-game/2085108/31 "2022-10-30T04:32:17Z")

</div>

Does that look better?

---

<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: [October 30, 2022, 4:45am UTC](https://community.thunkable.com/t/how-do-i-add-a-timer-to-my-game-which-you-can-change-before-the-user-starts-the-game/2085108/32 "2022-10-30T04:45:30Z")

</div>

I would ask… does it work?

The thing that is confusing about your blocks is that when you are fixing one problem, you change the blocks and create another problem. Of course that’s going to happen when you are learning a new way of coding but… it takes the control variable away because now you’ve changed multiple things and there’s no way of knowing which change helped or made things worse. It’s better to change **one** thing and see if that fixes a specific problem.

You’re now using a list (`app variable userlat`) to add a marker to the map. Before (look at your screenshot above), you were using a list **item** (`in list app variable latlist get #i`). The “latitude” and “longitude” properties expect numeric values (items) not lists.

---

<div class="post-metadata">

### Author: ![leviocsmithk](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/leviocsmithk/32/136645_2.png) [@leviocsmithk](https://community.thunkable.com/u/leviocsmithk)
#### Post date: [October 30, 2022, 4:58am UTC](https://community.thunkable.com/t/how-do-i-add-a-timer-to-my-game-which-you-can-change-before-the-user-starts-the-game/2085108/33 "2022-10-30T04:58:42Z")

</div>

Ok, I agree, I will go and test this out, and try some more things myself because I don’t want to bother you guys. But yes, I will do a lot more testing a researching myself, and leave the hard problems I find for the forum topics. 🙂 Thanks For Your Help @tatiang and @muneer .

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [January 28, 2023, 4:59am UTC](https://community.thunkable.com/t/how-do-i-add-a-timer-to-my-game-which-you-can-change-before-the-user-starts-the-game/2085108/34 "2023-01-28T04:59:08Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

[Previous page](https://community.thunkable.com/t/how-do-i-add-a-timer-to-my-game-which-you-can-change-before-the-user-starts-the-game/2085108.md?page=1)
