# How do you make z depth higher than the built in story extension menu?

**URL:** https://forum.makecode.com/t/how-do-you-make-z-depth-higher-than-the-built-in-story-extension-menu/15733
**Category:** Help
**Created:** [October 5, 2022, 8:33pm UTC](https://forum.makecode.com/t/how-do-you-make-z-depth-higher-than-the-built-in-story-extension-menu/15733 "2022-10-05T20:33:21Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Segatendo](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@Segatendo](https://forum.makecode.com/u/Segatendo)
#### Post date: [October 5, 2022, 8:33pm UTC](https://forum.makecode.com/t/how-do-you-make-z-depth-higher-than-the-built-in-story-extension-menu/15733/1 "2022-10-05T20:33:21Z")

</div>

so in the story extension menu i want to have a sprite overlapping the menu selection but no matter how hight he z depth is the menu is overlapping it and i want it to be beneath this sprite how do i do this

---

<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: [October 6, 2022, 5:56pm UTC](https://forum.makecode.com/t/how-do-you-make-z-depth-higher-than-the-built-in-story-extension-menu/15733/2 "2022-10-06T17:56:16Z")

</div>

The z-index of text in the story extension is 99 and the menu is 100. Anything higher than that should show up on top.

---

<div class="post-metadata">

### Author: ![SmashFangameMaker](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/smashfangamemaker/32/6868_2.png) [@SmashFangameMaker](https://forum.makecode.com/u/SmashFangameMaker)
#### Post date: [October 7, 2022, 12:28am UTC](https://forum.makecode.com/t/how-do-you-make-z-depth-higher-than-the-built-in-story-extension-menu/15733/3 "2022-10-07T00:28:39Z")

</div>

Using raycasting may help but it is a little buggy. Too much code and… well… mine got corrupted.
