# Z Depth help

**URL:** <https://forum.makecode.com/t/z-depth-help/9175>\
**Category:** Help\
**Created:** [July 12, 2021, 3:18pm UTC](https://forum.makecode.com/t/z-depth-help/9175 "2021-07-12T15:18:04Z")\
**Posts on this page:** 3\
**Page:** 1

<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:** [July 12, 2021, 3:18pm UTC](https://forum.makecode.com/t/z-depth-help/9175/1 "2021-07-12T15:18:05Z")

</div>

So I was making a card game called skipbo! And when you take of a card from the stack it all works with the depth but when you take one from the 5 cards on the bottom they slide under the current stack.  
Take the one from the stack and drag it in one of the fields. Repeat with the number 2 (First refresh so you have a 3 in your 5 cards!) Then when you drag this one on the stack it slides under… (Hold A while on the card)

> **[SkipBo](https://arcade.makecode.com/69192-41061-43055-74780)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Thank you!

---

<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:** [July 12, 2021, 8:16pm UTC](https://forum.makecode.com/t/z-depth-help/9175/2 "2021-07-12T20:16:14Z")

</div>

we actually did this same sort of thing in the last livestream: [https://www.youtube.com/watch?v=YNP\_VQjjUEU](https://www.youtube.com/watch?v=YNP_VQjjUEU)

I was thinking about it and we can actually do it nicely without a variable – what you should do is set the cursor z to 10 or so to start, then in the ‘on a button pressed’ event when you pick up the card you should:

- set select card z to cursor z
- change cursor z by 1

(in that order)

---

<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:** [July 12, 2021, 9:08pm UTC](https://forum.makecode.com/t/z-depth-help/9175/3 "2021-07-12T21:08:07Z")

</div>

Hi there! Quick update! The thing is fixed! Here is the new version! Press Menu to restock your cards!

> **[SkipBo](https://arcade.makecode.com/53729-39230-00391-91406)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

I will continue this game in another topic (SkipBo) (will be uploaded tomorrow probably)
