# Making Action Adventure Games (using Z depth)

**URL:** <https://forum.makecode.com/t/making-action-adventure-games-using-z-depth/2912>\
**Category:** Help\
**Created:** [July 24, 2020, 1:30pm UTC](https://forum.makecode.com/t/making-action-adventure-games-using-z-depth/2912 "2020-07-24T13:30:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nobrain](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/nobrain/32/1078_2.png) [@Nobrain](https://forum.makecode.com/u/Nobrain)\
**Post date:** [July 24, 2020, 1:30pm UTC](https://forum.makecode.com/t/making-action-adventure-games-using-z-depth/2912/1 "2020-07-24T13:30:12Z")

</div>

I have seen these 16 bit color or so pixel games that are made with engines like game maker or godot. They are made with 2D, and are called [Hyper Light Drifter](https://www.youtube.com/watch?v=nWufEJ1Ava0&t=36s) and [Resolution](https://www.youtube.com/watch?v=1Z34tI_ix4c). I think that they can be made with makecode (well not everything in the game, just the gameplay) and can be made with Z depth. Well I don’t actually I don’t know how to use z depth. I’m a beginner at makecode arcade and I know only the basics of it. Can you help me?  
( I am also requesting a tutorial video on the live stream )

---

<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:** [July 24, 2020, 1:38pm UTC](https://forum.makecode.com/t/making-action-adventure-games-using-z-depth/2912/2 "2020-07-24T13:38:37Z")

</div>

The higher z depth on a sprite you have is going to appear on top.

Example  
Sprite one has a z depth of 20  
Sprite two has a z depth of 10  
Sprite three has a z depth of 30

Sprite 3 will overlap sprite one and two.  
Sprite two will go below sprite three and one because he has a lower depth.  
Sprite one will go over sprite two and under sprite three

@Nobrain

---

<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:** [July 24, 2020, 1:42pm UTC](https://forum.makecode.com/t/making-action-adventure-games-using-z-depth/2912/3 "2020-07-24T13:42:47Z")

</div>

> **[example](https://arcade.makecode.com/84921-68210-36310-17773)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

This one only has two sprites

---

<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:** [July 24, 2020, 1:42pm UTC](https://forum.makecode.com/t/making-action-adventure-games-using-z-depth/2912/4 "2020-07-24T13:42:59Z")

</div>

Try this with z depth  
The pink will go over the red because it has a higher z depth.
