Zdepth help?

Game Editor comments and discussion.

Zdepth help?

Postby DragooNz » Fri Feb 20, 2015 4:25 am

Hello guys, i have problem with zdepth.

I create the dialog box actor that pop up above an actor head, and it use that actor as parent.

The problem is when the dialog box created, it have same zdepth with the parent. So when i have an actor that have zdepth lower than the tile, the dialog box is obstructed by a tile.

I have try to do this : dialog box -> create actor -> change zdepth or dialog box -> draw actor -> change zdepth. But it didn't work. the dialog box still follow its parent zdepth.

Can you help me?
DragooNz
 
Posts: 6
Joined: Sun Sep 01, 2013 5:33 pm
Score: 0 Give a positive score

Re: Zdepth help?

Postby skydereign » Fri Feb 20, 2015 9:21 am

Children will always have the same global zdepth as their parent, so you would either need to change the parent's zdepth (so the player), or you need to not use parenting.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Zdepth help?

Postby DragooNz » Fri Feb 20, 2015 12:34 pm

Well, i just know if the child will follow the parent color too. (parent r,g,b adjusted manually in script editor). So i think use parenting is kinda bad idea.

I will to try another way then..


Thanks anyway :D
DragooNz
 
Posts: 6
Joined: Sun Sep 01, 2013 5:33 pm
Score: 0 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest