# Depth pseudo 3d

**URL:** <https://forum.kirupa.com/t/depth-pseudo-3d/116073>\
**Category:** Uncategorized\
**Created:** [July 14, 2004, 1:01pm UTC](https://forum.kirupa.com/t/depth-pseudo-3d/116073 "2004-07-14T13:01:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![skut2k](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@skut2k](https://forum.kirupa.com/u/skut2k)\
**Post date:** [July 14, 2004, 1:01pm UTC](https://forum.kirupa.com/t/depth-pseudo-3d/116073/1 "2004-07-14T13:01:19Z")

</div>

Based on the Y position of an object I’m trying to set the objects depth… to give a feeling of objects being in a 3d space…

I’ve been trying various things for a day or 2 now but still can’t seem to crack this. It should be simple…

Can anyone help?

I’ve attached an FLA with the axample I’m trying to do.

– here’s the method I’m using, it’s triggered from an OnRelease command, inside each MovieClip.

```
this.depth = Math.round(this._y);

```

In theory the position of the object should affect it’s Z order on screen…
