# Game update & animation

**URL:** <https://forum.makecode.com/t/game-update-animation/4051>\
**Category:** Help\
**Created:** [October 23, 2020, 9:14pm UTC](https://forum.makecode.com/t/game-update-animation/4051 "2020-10-23T21:14:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cosmoscowboy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/cosmoscowboy/32/1718_2.png) [@cosmoscowboy](https://forum.makecode.com/u/cosmoscowboy)\
**Post date:** [October 23, 2020, 9:14pm UTC](https://forum.makecode.com/t/game-update-animation/4051/1 "2020-10-23T21:14:57Z")

</div>

In a game update, I check whether the player dies by iterating over sprite kind and checking if they overlap. I prefer this then having the on overlap event. When the player dies I want to show an animation.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/f/fb33e2e944007ffd448cbe9459c616532adb59c1.png)

Placing a pause here doesn’t get the animation to run, I guess because it is within the update method. When I was watching the YouTube video on character animations, I remember hearing something about animations being queued.  
Do I need to set a flag, and ignore certain other game update events, and then after some time, reset the game?  
I think I just answered my own question. If this is the case, then I hope this has helped someone else.

---

<div class="post-metadata">

**Author:** ![cosmoscowboy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/cosmoscowboy/32/1718_2.png) [@cosmoscowboy](https://forum.makecode.com/u/cosmoscowboy)\
**Post date:** [October 24, 2020, 10:55pm UTC](https://forum.makecode.com/t/game-update-animation/4051/2 "2020-10-24T22:55:06Z")

</div>

I got the animations working.

> [@Frogging Fun](https://forum.makecode.com/t/frogging-fun/4062):
>
> I finally figured out how animations work, and have put them into my latest release of my #game Frogging Fun. In the coming versions I want add move enemies and change their speeds. Please let me know if you have more ideas or tips on programming it better. I hope you all enjoy it.
