Child and parent

Non-platform specific questions.

Child and parent

Postby Caaz Games » Sun Mar 18, 2007 11:31 am

when i parent an actor it seems to change the child's Z-Depth and i cant change it backi dont know if this is a bug or something im doing wrong.
You are welcome to join my forum. 4 active members lol but it's a cool place. active... much talking :D it's fun!
http://caaz.freeforums.org/
User avatar
Caaz Games
 
Posts: 729
Joined: Wed Feb 14, 2007 9:09 am
Location: California....knows how to party!
Score: 25 Give a positive score

Postby UltimatHedgehog » Sun Mar 18, 2007 12:23 pm

thats been annoying on my games i tried to make the mainchar the backround's parent but it covered the guy :cry:
Image
I always thought Hell would be a giant load screen that goes on for eternity, then one day, eons later, it would end, only to reveal a slightly different loading screen.
User avatar
UltimatHedgehog
 
Posts: 325
Joined: Fri Jan 19, 2007 1:48 pm
Location: http://downloads.khinsider.com/?u=112542 plz click
Score: 10 Give a positive score

Postby Game A Gogo » Mon Mar 19, 2007 12:40 am

the child has the Same z-Depth, Transparent and coordinate like his parent.
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby UltimatHedgehog » Mon Mar 19, 2007 12:50 am

are you saying it inherits all that from the parent and thats how it gets greater zdepth when you do that
Image
I always thought Hell would be a giant load screen that goes on for eternity, then one day, eons later, it would end, only to reveal a slightly different loading screen.
User avatar
UltimatHedgehog
 
Posts: 325
Joined: Fri Jan 19, 2007 1:48 pm
Location: http://downloads.khinsider.com/?u=112542 plz click
Score: 10 Give a positive score

This makes it impossible to move my player easily.

Postby DST » Sun May 20, 2007 7:35 pm

I use a transparent enemy activator to trigger events relative to my player. The activator is a child of the player, and handles most events. Since its zdepth is greater than that of the player, when one tries to move the player in edit mode, the activator is moved instead, then you must drag the player and realign them, and if you don't line them back up perfectly, your shots come out a several pixels away from where they should.
If you make the activator the parent and the player the child, then you cannot hide the activator or you hide player as well, so the player MUST be the parent. But being on bottom, events don't map to the player properly, so they must be written to the activator.

What i'm saying is, being a child should not give you greater zdepth than the parent. If anything, it should give you less zdepth. Also, about the 'inherit' idea, if that is true, why can i make my child more transparent but not farther away? Are you saying it only inherits zdepth but not transparency, and if so, why?

This doesn't affect the gameplay, but it affects the editing seriously, as i need to be able to move the player around to test new areas of the game, without having to play through the entire level first.

I thought of using view as an activator, but then a player could trigger a boss at either the top or bottom of the screen, which means i can't control how much room the player has to move around in. The activator must move with the player.

Is there any solution to this parent child zdepth issue??
User avatar
DST
 
Posts: 1117
Joined: Sun Apr 15, 2007 5:36 pm
Location: 20 minutes into the future
Score: 151 Give a positive score

Postby d-soldier » Sun May 20, 2007 7:42 pm

I also have been frustrated with the parent/child relationship regarding zdepth. It would be greatly benefitial is there were options regarding such relationships... I hate the zdepth relationship... but I'm willing to bet there is probably a good reason for it, though I cant think of what it would be.
User avatar
d-soldier
 
Posts: 703
Joined: Sun Apr 08, 2007 2:13 am
Score: 61 Give a positive score

Postby Kodo » Sun May 20, 2007 7:45 pm

This has come up before (some time ago). I would love to see it addressed, it's one of those very annoying little things that can cause big headaches :(
Inogames: http://www.inogames.com iOS gaming
Firetop Adventure (app store): http://itunes.apple.com/us/app/firetop- ... ?mt=8&ls=1
User avatar
Kodo
 
Posts: 449
Joined: Thu Oct 20, 2005 8:20 pm
Location: UK
Score: 23 Give a positive score

Postby DilloDude » Mon May 21, 2007 7:56 am

Here's a few tips: if you right-click on an actor and chose 'lock actor', you will not be able to accidentally move it. To move an actor that is underneath another one, hold down the left ctrl key.
Image
User avatar
DilloDude
 
Posts: 866
Joined: Tue Jan 24, 2006 9:51 am
Location: Nyerellion
Score: 58 Give a positive score

Postby Jay S. » Mon May 21, 2007 1:46 pm

I've had problems with this before, as well. :(

Darn hereditariness.... :wink:
User avatar
Jay S.
 
Posts: 118
Joined: Thu Apr 26, 2007 6:51 pm
Location: My computer desk. :P
Score: 9 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest