# Overlapping pictures

**URL:** <https://forum.makecode.com/t/overlapping-pictures/13167>\
**Category:** Arcade\
**Created:** [April 18, 2022, 11:00pm UTC](https://forum.makecode.com/t/overlapping-pictures/13167 "2022-04-18T23:00:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dreadmask197](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dreadmask197/32/10494_2.png) [@Dreadmask197](https://forum.makecode.com/u/Dreadmask197)\
**Post date:** [April 18, 2022, 11:00pm UTC](https://forum.makecode.com/t/overlapping-pictures/13167/1 "2022-04-18T23:00:54Z")

</div>

Hey guys! So I don’t remember if there was ever a block that would be something about pictures and which ones will go on top of each other.

---

<div class="post-metadata">

**Author:** ![DahbixLP](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dahbixlp/32/4760_2.png) [@DahbixLP](https://forum.makecode.com/u/DahbixLP)\
**Post date:** [April 19, 2022, 5:44pm UTC](https://forum.makecode.com/t/overlapping-pictures/13167/2 "2022-04-19T17:44:09Z")

</div>

There is a block in the sprite section called  
set (sprite) (x) to (0)  
You have to click on the x and choose z depth!  
The lower a sprites zdepth the further back!  
So if you want sprite A to be over sprite B ste sprite A zdepth to (for example) 100  
Hope this helps

---

<div class="post-metadata">

**Author:** ![Kiwiphoenix364](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kiwiphoenix364/32/14368_2.png) [@Kiwiphoenix364](https://forum.makecode.com/u/Kiwiphoenix364)\
**Post date:** [April 19, 2022, 5:44pm UTC](https://forum.makecode.com/t/overlapping-pictures/13167/3 "2022-04-19T17:44:16Z")

</div>

Are you talking about the z layer of sprites? All you have to do for that is drag out a "set “x” " block and change the x to z (in the dropdown). higher z levels bring it closer to the front of the screen (0 is default), and 0 is the tilemap layer. Anything below 0 will be behind the tilemap. Also, if sprites have the same layer, the sprite that was created last will be on top. I hope this helps!

---

<div class="post-metadata">

**Author:** ![Dreadmask197](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dreadmask197/32/10494_2.png) [@Dreadmask197](https://forum.makecode.com/u/Dreadmask197)\
**Post date:** [April 19, 2022, 5:59pm UTC](https://forum.makecode.com/t/overlapping-pictures/13167/4 "2022-04-19T17:59:26Z")

</div>

OH MY GAWDDD. i completely forgot about z depth

---

<div class="post-metadata">

**Author:** ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)\
**Post date:** [April 19, 2022, 11:48pm UTC](https://forum.makecode.com/t/overlapping-pictures/13167/5 "2022-04-19T23:48:39Z")

</div>

Tile map z layer is -1, not 0.
