# How can I anchor things to the screen?

**URL:** <https://forum.makecode.com/t/how-can-i-anchor-things-to-the-screen/15277>\
**Category:** Help\
**Tags:** game\
**Created:** [September 9, 2022, 5:06pm UTC](https://forum.makecode.com/t/how-can-i-anchor-things-to-the-screen/15277 "2022-09-09T17:06:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Galorlx](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/galorlx/32/6533_2.png) [@Galorlx](https://forum.makecode.com/u/Galorlx)\
**Post date:** [September 9, 2022, 5:06pm UTC](https://forum.makecode.com/t/how-can-i-anchor-things-to-the-screen/15277/1 "2022-09-09T17:06:40Z")

</div>

How can I anchor things to a screen such as my Hotbar/inventory at the bottom but it doesn’t move with my character/screen, anyway I fix this?

---

<div class="post-metadata">

**Author:** ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)\
**Post date:** [September 9, 2022, 5:16pm UTC](https://forum.makecode.com/t/how-can-i-anchor-things-to-the-screen/15277/2 "2022-09-09T17:16:25Z")

</div>

Two ways:

You can use the ‘relative to camera’ sprite flag (under the `set mysprite auto destroy [on/off]` blocks dropdown) and that will make it so this sprite ignores the camera:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/4/425d75dc6b961fabc1f0c31f347ced0a20158c60.png)

The other easy way is to use the jwunderl/arcade-sprite-util extension’s ‘render on z index’ block. This will let you draw directly to the screen with a z index you set (so you can set it to e.g. 80 if you want it to show up above other sprites that you have made since it’s a menu):

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/e/ef7e4216dadc42195bb7a7ead03a881757639777.png)

> **[ways to render ignoring camera](https://arcade.makecode.com/59934-75845-97203-71808)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![Galorlx](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/galorlx/32/6533_2.png) [@Galorlx](https://forum.makecode.com/u/Galorlx)\
**Post date:** [September 16, 2022, 4:43pm UTC](https://forum.makecode.com/t/how-can-i-anchor-things-to-the-screen/15277/3 "2022-09-16T16:43:22Z")

</div>

> [@jwunderl](#):
>
> jwunderl/arcade-sprite-util

When I do the relative to camera method the items all glitch out and for the z index render I can’t draw something as a variable so I can’t edit any values etc in my other code. I might ask if someone can make an extension to help with me.

---

<div class="post-metadata">

**Author:** ![Galorlx](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/galorlx/32/6533_2.png) [@Galorlx](https://forum.makecode.com/u/Galorlx)\
**Post date:** [September 16, 2022, 4:45pm UTC](https://forum.makecode.com/t/how-can-i-anchor-things-to-the-screen/15277/4 "2022-09-16T16:45:09Z")

</div>

Also this is my game [https://makecode.com/\_KjYF43Hx3Tyx](https://makecode.com/_KjYF43Hx3Tyx)

---

<div class="post-metadata">

**Author:** ![Two\_Time](https://avatars.discourse-cdn.com/v4/letter/t/ecb155/32.png) [@Two\_Time](https://forum.makecode.com/u/Two_Time)\
**Post date:** [March 3, 2026, 7:49pm UTC](https://forum.makecode.com/t/how-can-i-anchor-things-to-the-screen/15277/5 "2026-03-03T19:49:22Z")

</div>

I did that but it didn’t work, i will give you the link here

> **[Snakey boi](https://arcade.makecode.com/S22589-68347-18259-90449)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Please reply and say what is wrong.
