Z Depth

Non-platform specific questions.

Z Depth

Postby darokstar » Tue Aug 05, 2008 7:54 pm

When I make things like a score in a game I set it's Z Depth up to the max but for some reason things like the tiles always get in front of it :( Does this happen to anybody else and is there a way to stop it?
I may be an idiot but that doesnt mean im dumb
darokstar
 
Posts: 13
Joined: Sat Jun 07, 2008 5:51 am
Score: 0 Give a positive score

Re: Z Depth

Postby feral » Tue Aug 05, 2008 11:51 pm

to me, this sounds odd : :? although someone else may have experienced it,

can you post a simple example to show the problem ?
User avatar
feral
 
Posts: 308
Joined: Sun Mar 16, 2008 6:27 am
Score: 47 Give a positive score

Re: Z Depth

Postby pyrometal » Wed Aug 06, 2008 12:50 am

It has happened to me b4 too when I was working on Mazeman... A bug probably...
SPRITE WARRIOR:
Free, open-source & crossplatform pixel art editor (currently under construction).
User avatar
pyrometal
 
Posts: 706
Joined: Wed Nov 28, 2007 4:07 am
Location: Kingston, ON, Canada
Score: 86 Give a positive score

Re: Z Depth

Postby Fuzzy » Wed Aug 06, 2008 2:52 am

Change the z depth of the view, which is its parent, right? A childs z depth will always be its parents plus a little higher. If other things are also children of the view, then they may be overtop your score. If that is a problem, then set scores parent to something else that doesnt move.
Mortal Enemy of IF....THEN(and Inspector Gadget)

Still ThreeFingerPete to tekdino
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score

Re: Z Depth

Postby sonicfire » Thu Apr 29, 2010 6:07 pm

Fuzzy wrote:Change the z depth of the view, which is its parent, right? A childs z depth will always be its parents plus a little higher. If other things are also children of the view, then they may be overtop your score. If that is a problem, then set scores parent to something else that doesnt move.


That DID IT !! This should be a sticky! I also had z-depth trouble... changing View´s Z-Depth fixed it :mrgreen:

(sorry for pushing this old topic :oops: )
sonicfire
 
Posts: 425
Joined: Wed Nov 01, 2006 9:34 pm
Location: berlin germany
Score: 16 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest