# How do I change sprite layers?

**URL:** <https://forum.makecode.com/t/how-do-i-change-sprite-layers/34858>\
**Category:** Arcade\
**Created:** [March 24, 2025, 12:25pm UTC](https://forum.makecode.com/t/how-do-i-change-sprite-layers/34858 "2025-03-24T12:25:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wally](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/wally/32/19737_2.png) [@Wally](https://forum.makecode.com/u/Wally)\
**Post date:** [March 24, 2025, 12:25pm UTC](https://forum.makecode.com/t/how-do-i-change-sprite-layers/34858/1 "2025-03-24T12:25:35Z")

</div>

I’m making a racing game, and the road lines in the middle are on top of the characters, how can I fix this?

---

<div class="post-metadata">

**Author:** ![redSprite](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/redsprite/32/34262_2.png) [@redSprite](https://forum.makecode.com/u/redSprite)\
**Post date:** [March 24, 2025, 4:48pm UTC](https://forum.makecode.com/t/how-do-i-change-sprite-layers/34858/2 "2025-03-24T16:48:53Z")

</div>

Give us link to your game so we can see what your working with.  
Otherwise, try using the z (depth) property.

---

<div class="post-metadata">

**Author:** ![Jedi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jedi/32/14307_2.png) [@Jedi](https://forum.makecode.com/u/Jedi)\
**Post date:** [March 24, 2025, 4:51pm UTC](https://forum.makecode.com/t/how-do-i-change-sprite-layers/34858/3 "2025-03-24T16:51:29Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/d/e/de3c89e2132fc1698064032010c00bad17f46edb.png)  
this block

---

<div class="post-metadata">

**Author:** ![ShaneyBoi09](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/shaneyboi09/32/18893_2.png) [@ShaneyBoi09](https://forum.makecode.com/u/ShaneyBoi09)\
**Post date:** [March 24, 2025, 8:46pm UTC](https://forum.makecode.com/t/how-do-i-change-sprite-layers/34858/4 "2025-03-24T20:46:11Z")

</div>

if the “z (depth)” for your sprite is higher that the sprite you are overlapping with, are you above, or below them? I could REALLY use this for this BIG game I’m making.

---

<div class="post-metadata">

**Author:** ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)\
**Post date:** [March 24, 2025, 9:45pm UTC](https://forum.makecode.com/t/how-do-i-change-sprite-layers/34858/5 "2025-03-24T21:45:18Z")

</div>

lol just test it! I believe the higher the number the farther above it is, so liver numbers are drawn first and higher numbers are drawn after, but I would test that to make sure if I were you!

---

<div class="post-metadata">

**Author:** ![Jedi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jedi/32/14307_2.png) [@Jedi](https://forum.makecode.com/u/Jedi)\
**Post date:** [March 24, 2025, 9:46pm UTC](https://forum.makecode.com/t/how-do-i-change-sprite-layers/34858/6 "2025-03-24T21:46:00Z")

</div>

above/in front

---

<div class="post-metadata">

**Author:** ![ShaneyBoi09](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/shaneyboi09/32/18893_2.png) [@ShaneyBoi09](https://forum.makecode.com/u/ShaneyBoi09)\
**Post date:** [March 24, 2025, 10:28pm UTC](https://forum.makecode.com/t/how-do-i-change-sprite-layers/34858/7 "2025-03-24T22:28:12Z")

</div>

Man, ty guys, I’m making a big game and ill make sure to include u in the credits (@WoofWoof AND @Jedi for helping me.
