Page 1 of 1

Zdepth help?

PostPosted: Fri Feb 20, 2015 4:25 am
by DragooNz
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?

Re: Zdepth help?

PostPosted: Fri Feb 20, 2015 9:21 am
by skydereign
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.

Re: Zdepth help?

PostPosted: Fri Feb 20, 2015 12:34 pm
by DragooNz
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