Changing child actor z-depth.
Posted: Mon Jan 07, 2013 3:45 am
I understand the child actor inherits the parent's z-depth. Moreover, the child actor always seems to be "on top off" the parent as though it had aslightly higher z-depth. I wanted to check whether it is possible to:
1) change the child's z-depth due to an event
2) permanently set the child's z-depth to be less that the parent's
In case you would like to understand the scenario I'm designing, here it is. A soldier walks into water and a collision event makes the child actor (ripples of water around him) visible. Upon leaving the pool. the child actor disappears. The ripples need to:
1) be underneath the soldier
2) have a smaller z-depth than the border surrounding the water body so they do not spill onto the shore.
The attached file shows what I want to achieve.
1) change the child's z-depth due to an event
2) permanently set the child's z-depth to be less that the parent's
In case you would like to understand the scenario I'm designing, here it is. A soldier walks into water and a collision event makes the child actor (ripples of water around him) visible. Upon leaving the pool. the child actor disappears. The ripples need to:
1) be underneath the soldier
2) have a smaller z-depth than the border surrounding the water body so they do not spill onto the shore.
The attached file shows what I want to achieve.