# Disintigrating tiles

**URL:** <https://forum.makecode.com/t/disintigrating-tiles/16477>\
**Category:** Help\
**Created:** [November 22, 2022, 9:20pm UTC](https://forum.makecode.com/t/disintigrating-tiles/16477 "2022-11-22T21:20:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dace](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dace/32/922_2.png) [@Dace](https://forum.makecode.com/u/Dace)\
**Post date:** [November 22, 2022, 9:20pm UTC](https://forum.makecode.com/t/disintigrating-tiles/16477/1 "2022-11-22T21:20:28Z")

</div>

looking to have a sprite animate a disappearing tile as I step on it. Which would then drop me into the lava. I have it working but I think it could be much more efficient, maybe with an array? thnx fo any help

> **[flip practice](https://arcade.makecode.com/S89627-91533-90286-19478)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

 ![make](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/5/5400848b7f2a0bbd8995931310e5fba3d97fc833.png)

---

<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:** [November 22, 2022, 9:44pm UTC](https://forum.makecode.com/t/disintigrating-tiles/16477/2 "2022-11-22T21:44:27Z")

</div>

@Dace here’s how I like to do falling/disintegrating tiles (no arrays or variables required):

> **[falling-tiles-example](https://arcade.makecode.com/S17057-78754-34600-27847)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

I added comments to the code to explain everything I’m doing. Let me know if you have any questions

---

<div class="post-metadata">

**Author:** ![Dace](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dace/32/922_2.png) [@Dace](https://forum.makecode.com/u/Dace)\
**Post date:** [November 28, 2022, 5:28pm UTC](https://forum.makecode.com/t/disintigrating-tiles/16477/3 "2022-11-28T17:28:13Z")

</div>

This is amazing! Just what I needed. I really appreciate your time!

---

<div class="post-metadata">

**Author:** ![Dace](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dace/32/922_2.png) [@Dace](https://forum.makecode.com/u/Dace)\
**Post date:** [November 28, 2022, 5:38pm UTC](https://forum.makecode.com/t/disintigrating-tiles/16477/4 "2022-11-28T17:38:53Z")

</div>

One more question, building on what you gave me, could I do a falling stalactite? I tried it here but just wondering if you might have a better way?

> **[flip practice](https://arcade.makecode.com/S89627-91533-90286-19478)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

 ![stalag](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/b/b4a4b1f639494ce6f957e4b8b3ef073c5da2b735.png)
