# How to make a tilemap change when all enemies have died?

**URL:** <https://forum.makecode.com/t/how-to-make-a-tilemap-change-when-all-enemies-have-died/25747>\
**Category:** Arcade\
**Created:** [January 8, 2024, 6:06pm UTC](https://forum.makecode.com/t/how-to-make-a-tilemap-change-when-all-enemies-have-died/25747 "2024-01-08T18:06:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Redsword](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/redsword/32/12843_2.png) [@Redsword](https://forum.makecode.com/u/Redsword)\
**Post date:** [January 8, 2024, 6:06pm UTC](https://forum.makecode.com/t/how-to-make-a-tilemap-change-when-all-enemies-have-died/25747/1 "2024-01-08T18:06:17Z")

</div>

I’d like to find a way to make it so that when there are no enemies left in the room, it plays a little noise and the tilemap changes to open the door, allowing the player to go to the next level. Is there a way I can do this?

---

<div class="post-metadata">

**Author:** ![Blobbey](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/blobbey/32/20831_2.png) [@Blobbey](https://forum.makecode.com/u/Blobbey)\
**Post date:** [January 8, 2024, 7:11pm UTC](https://forum.makecode.com/t/how-to-make-a-tilemap-change-when-all-enemies-have-died/25747/2 "2024-01-08T19:11:05Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/4/4767aab3c6f544fd6ba832b843af11cd73441f49.png)  
Something like this could work.
