Child and parent
Posted:
Sun Mar 18, 2007 11:31 am
by Caaz Games
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.
Posted:
Sun Mar 18, 2007 12:23 pm
by UltimatHedgehog
thats been annoying on my games i tried to make the mainchar the backround's parent but it covered the guy
Posted:
Mon Mar 19, 2007 12:40 am
by Game A Gogo
the child has the Same z-Depth, Transparent and coordinate like his parent.
Posted:
Mon Mar 19, 2007 12:50 am
by UltimatHedgehog
are you saying it inherits all that from the parent and thats how it gets greater zdepth when you do that
This makes it impossible to move my player easily.
Posted:
Sun May 20, 2007 7:35 pm
by DST
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??
Posted:
Sun May 20, 2007 7:42 pm
by d-soldier
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.
Posted:
Sun May 20, 2007 7:45 pm
by Kodo
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
Posted:
Mon May 21, 2007 7:56 am
by DilloDude
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.
Posted:
Mon May 21, 2007 1:46 pm
by Jay S.
I've had problems with this before, as well.
Darn hereditariness....