# Trying to use world.seconds and can't get it to work......Help please

**URL:** <https://forum.code.org/t/trying-to-use-world-seconds-and-cant-get-it-to-work-help-please/24497>\
**Category:** Coding and Debugging Help\
**Created:** [February 1, 2019, 7:27pm UTC](https://forum.code.org/t/trying-to-use-world-seconds-and-cant-get-it-to-work-help-please/24497 "2019-02-01T19:27:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jtuttle](https://avatars.discourse-cdn.com/v4/letter/j/bbe5ce/32.png) [@jtuttle](https://forum.code.org/u/jtuttle)\
**Post date:** [February 1, 2019, 7:27pm UTC](https://forum.code.org/t/trying-to-use-world-seconds-and-cant-get-it-to-work-help-please/24497/1 "2019-02-01T19:27:07Z")

</div>

I have a student that is trying to add a timer to his game. He would like to game to end after a minute. We have tried several things however, each one creates another problem such as score not showing or backgrounds not changing when the score reaches 50. I realize his function has the world.seconds at 1 and he did have it at 60 but the bell rang and he didn’t have a chance to put it back to 60. What are we doing wrong? Is it the order of things, the functions???

> **[Check out what I made](https://studio.code.org/projects/gamelab/6ie42oIfBnRLjQNuxBFqV5u6ytUF7vLyVnqKBO7KHmw)**
>
> I wrote the code myself with Code.org

---

<div class="post-metadata">

**Author:** ![jold](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/jold/32/5811_2.png) [@jold](https://forum.code.org/u/jold)\
**Post date:** [February 4, 2019, 5:42pm UTC](https://forum.code.org/t/trying-to-use-world-seconds-and-cant-get-it-to-work-help-please/24497/2 "2019-02-04T17:42:10Z")

</div>

I added this line of code into the draw loop and got count to count up in seconds.  
We are now updating count every time we go through the draw loop.

```auto
count = World.seconds ;

```

Now count will update with the number of seconds.  
Let us know how it goes!
