# Animation For Tilemaps

**URL:** <https://forum.makecode.com/t/animation-for-tilemaps/16942>\
**Category:** Help\
**Created:** [December 17, 2022, 7:26am UTC](https://forum.makecode.com/t/animation-for-tilemaps/16942 "2022-12-17T07:26:16Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![AbstractDesigner](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/abstractdesigner/32/22531_2.png) [@AbstractDesigner](https://forum.makecode.com/u/AbstractDesigner)\
**Post date:** [December 17, 2022, 7:26am UTC](https://forum.makecode.com/t/animation-for-tilemaps/16942/1 "2022-12-17T07:26:16Z")

</div>

How do you create animations for tilemaps?

---

<div class="post-metadata">

**Author:** ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)\
**Post date:** [December 18, 2022, 4:54am UTC](https://forum.makecode.com/t/animation-for-tilemaps/16942/2 "2022-12-18T04:54:51Z")

</div>

You can’t animate non-sprites, but if you could change the tiles in a tilemap after a set portion of time creating an animation. I can show an example, ive used it in lava/water animaitons before!

---

<div class="post-metadata">

**Author:** ![personalnote](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/personalnote/32/31359_2.png) [@personalnote](https://forum.makecode.com/u/personalnote)\
**Post date:** [December 18, 2022, 4:56am UTC](https://forum.makecode.com/t/animation-for-tilemaps/16942/3 "2022-12-18T04:56:09Z")

</div>

[TilesXtra - new extension with animated tiles - Arcade - Microsoft MakeCode](https://forum.makecode.com/t/tilesxtra-new-extension-with-animated-tiles/15728)

Take a look here. It’s a really neat extension.

---

<div class="post-metadata">

**Author:** ![AbstractDesigner](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/abstractdesigner/32/22531_2.png) [@AbstractDesigner](https://forum.makecode.com/u/AbstractDesigner)\
**Post date:** [December 20, 2022, 6:04pm UTC](https://forum.makecode.com/t/animation-for-tilemaps/16942/4 "2022-12-20T18:04:58Z")

</div>

I tried the TilesXtra, but my game is really weird.

> **[SpeedDun](https://arcade.makecode.com/65767-47390-61894-60910)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Can someone debug the code?

---

<div class="post-metadata">

**Author:** ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)\
**Post date:** [December 29, 2022, 5:36pm UTC](https://forum.makecode.com/t/animation-for-tilemaps/16942/5 "2022-12-29T17:36:50Z")

</div>

What’s wrong?

---

<div class="post-metadata">

**Author:** ![AbstractDesigner](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/abstractdesigner/32/22531_2.png) [@AbstractDesigner](https://forum.makecode.com/u/AbstractDesigner)\
**Post date:** [December 29, 2022, 9:48pm UTC](https://forum.makecode.com/t/animation-for-tilemaps/16942/6 "2022-12-29T21:48:06Z")

</div>

When I finish a level, the lava tilemaps don’t disappear and are shown in the next level.

---

<div class="post-metadata">

**Author:** ![AbstractDesigner](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/abstractdesigner/32/22531_2.png) [@AbstractDesigner](https://forum.makecode.com/u/AbstractDesigner)\
**Post date:** [February 24, 2023, 6:00pm UTC](https://forum.makecode.com/t/animation-for-tilemaps/16942/7 "2023-02-24T18:00:53Z")

</div>

How can I delete the animations when a level is finished?
