# Animate vs Legacy in On Game Update

**URL:** <https://forum.makecode.com/t/animate-vs-legacy-in-on-game-update/3587>\
**Category:** Help\
**Created:** [September 23, 2020, 12:13pm UTC](https://forum.makecode.com/t/animate-vs-legacy-in-on-game-update/3587 "2020-09-23T12:13:28Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [September 23, 2020, 4:07pm UTC](https://forum.makecode.com/t/animate-vs-legacy-in-on-game-update/3587/2 "2020-09-23T16:07:44Z")

</div>

The animations in the new APIs reset when called multiple times. Instead of calling it every frame, you should only call it once when you start moving left or right:

 ![Screen Shot 2020-09-23 at 9.03.49 AM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/9/91d335b5a40f7c58b2409dc729bc683f6f189c0b.png)

Alternatively, I made an extension to make this sort of thing much easier. If you add this extension to your project:

```auto
riknoll/character-animations

```

You get blocks that capture this behavior along with a few other common scenarios:

 ![Screen Shot 2020-09-23 at 9.05.49 AM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/e/eb3020b8b92ae63e9106bd535db5116e636b4875.png)

It’s on my to-do list to get this in the default extension list.

---

_[View the full topic](https://forum.makecode.com/t/animate-vs-legacy-in-on-game-update/3587)._
