# Game Lab delay in animation

**URL:** <https://forum.code.org/t/game-lab-delay-in-animation/21573>\
**Category:** CS Discoveries\
**Created:** [October 31, 2018, 5:06pm UTC](https://forum.code.org/t/game-lab-delay-in-animation/21573 "2018-10-31T17:06:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jreynolds](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@jreynolds](https://forum.code.org/u/jreynolds)\
**Post date:** [October 31, 2018, 5:06pm UTC](https://forum.code.org/t/game-lab-delay-in-animation/21573/1 "2018-10-31T17:06:07Z")

</div>

I have a student who wants to animate an explosion. The sprites that represent the different parts of the explosion need to display slower than the usual frame rate. How can you do this in the draw loop? I tried sprite.pause() but it doesn’t seem to work.

---

<div class="post-metadata">

**Author:** ![frank\_w\_lee](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/frank_w_lee/32/4895_2.png) [@frank\_w\_lee](https://forum.code.org/u/frank_w_lee)\
**Post date:** [November 4, 2018, 6:37am UTC](https://forum.code.org/t/game-lab-delay-in-animation/21573/2 "2018-11-04T06:37:30Z")

</div>

Try this block  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/codeorgforum/original/2X/5/5fa1626559b9ca55485d3fda6ceb6e9993e81bf2.png)  
Read the documentation (“See examples” when you hover over it in Game Lab) to read about its usage.

---

<div class="post-metadata">

**Author:** ![jreynolds](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@jreynolds](https://forum.code.org/u/jreynolds)\
**Post date:** [November 6, 2018, 10:00pm UTC](https://forum.code.org/t/game-lab-delay-in-animation/21573/4 "2018-11-06T22:00:16Z")

</div>

Thanks but that is not what I’m looking for. My student wanted to just slow down one sprite’s animation, not the whole world. He figured out a solution that works for him last week though.

---

<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:** [November 7, 2018, 6:08pm UTC](https://forum.code.org/t/game-lab-delay-in-animation/21573/5 "2018-11-07T18:08:50Z")

</div>

I made an example with some comments to illustrate how I’ve shown students to solve this problem in the past.

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