Page 1 of 1

character problems

PostPosted: Tue Feb 01, 2005 5:46 am
by archgod
I made my character first then the land and then the background such as the sky and now my character is behind the background how to I but him back in front, any info would be much appreciated

PostPosted: Tue Feb 01, 2005 9:21 am
by ingsan
Maybe it's a Z-depth problem.

If you cannot directly select your character, select it from the ActorControl panel. You'll see that the Z-depth is by default an average of both higest and lowest value. Increase the Z-depth of your character until you get your character back. What I usually do when I start programming a new game is to FIRST add my Background actor and put its Z-depth to its lowest value before adding other actors in my scene.

Result :
BACKGROUND's depth < CHARACTER's depth < LAND's depth

Z depth is the way to solve this

PostPosted: Fri Feb 04, 2005 9:06 am
by IPete2
Yes as mentioned above this sounds very much like the z-depth for the character is set lower than the background and sky.

Z depth is used to determine which object to draw in which order. You need you character to be drawn after the background and after the sky.

This is simple to achieve. In the interface find the 'Actor Control' panel (if you can't find it then select any object and right mouse click, its at the top of the little menu which comes up) and look at the top, next to the word 'Name' is a pulldown menu. Simply pull that down and select your character (he's there even if you can't see him on the screen). Now select the z-depth slider (which is just underneath) and slider it all the way to the right. Voila, your character will now be drawn in front of all other objects.

So this should lead you to think, ' Hm, I can now draw the character a little further back and have other foreground scenery drawn over the top when he walks passed it!'.

I hope this helps.

IPete2.