# Falling Animation in Raycasting

**URL:** <https://forum.makecode.com/t/falling-animation-in-raycasting/40852>\
**Category:** Help\
**Created:** [December 9, 2025, 12:30am UTC](https://forum.makecode.com/t/falling-animation-in-raycasting/40852 "2025-12-09T00:30:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![guywhocancode](https://avatars.discourse-cdn.com/v4/letter/g/c57346/32.png) [@guywhocancode](https://forum.makecode.com/u/guywhocancode)\
**Post date:** [December 9, 2025, 12:30am UTC](https://forum.makecode.com/t/falling-animation-in-raycasting/40852/1 "2025-12-09T00:30:02Z")

</div>

I’m making a game with third person freecam in raycasting, and I want to be able to make it so that when you touch a pit tile (a black square) you fall through the floor and clip out of bounds, or at least out of sight. Any idea how?

> **[Rotating Camera Base](https://arcade.makecode.com/67240-87840-29702-56586)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<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 9, 2025, 5:58am UTC](https://forum.makecode.com/t/falling-animation-in-raycasting/40852/2 "2025-12-09T05:58:41Z")

</div>

This is a cool idea, I hadn’t thought about locking the camera like that! 👀  
[Here’s my idea,](https://arcade.makecode.com/S25426-05015-29929-59456) it changes the z-index until the player is off the bottom of the screen. However, I’m not sure if it’s the correct way to use the blocks, because i have to set it to -3,000 to get it off the screen 😆  
You could also make an animation for the sprite where you move the player down each frame!

---

<div class="post-metadata">

**Author:** ![guywhocancode](https://avatars.discourse-cdn.com/v4/letter/g/c57346/32.png) [@guywhocancode](https://forum.makecode.com/u/guywhocancode)\
**Post date:** [December 9, 2025, 9:57pm UTC](https://forum.makecode.com/t/falling-animation-in-raycasting/40852/3 "2025-12-09T21:57:52Z")

</div>

I did the animation since I posted this, but thanks for the help!
