character problems

Game Editor comments and discussion.

character problems

Postby archgod » Tue Feb 01, 2005 5:46 am

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
archgod
 
Posts: 1
Joined: Mon Jan 31, 2005 8:44 am
Score: 0 Give a positive score

Postby ingsan » Tue Feb 01, 2005 9:21 am

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
User avatar
ingsan
 
Posts: 580
Joined: Mon Nov 17, 2003 4:02 pm
Location: Maurician LADY in FRANCE
Score: 6 Give a positive score

Z depth is the way to solve this

Postby IPete2 » Fri Feb 04, 2005 9:06 am

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.
IPete2
 
Posts: 43
Joined: Sun Jan 30, 2005 4:06 pm
Score: 0 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest