Page 1 of 1

Actors disappears when using parent function. What's wrong?

PostPosted: Sun Jan 06, 2008 12:35 pm
by msv83
Another newb question from me :lol:

For some reason, some of the actors disappears from the screen when I use the "parent" function for a background with my player. Am I doing it wrong in some way, or can't you use the "parent" function like this?

Re: Actors disappears when using parent function. What's wrong?

PostPosted: Sun Jan 06, 2008 12:47 pm
by Azou
You have to search them away from the background!! Use the keypad - to zoom and to see them :D

Re: Actors disappears when using parent function. What's wrong?

PostPosted: Sun Jan 06, 2008 1:16 pm
by msv83
Thanks for the answer :)

Anyway, zooming doesn't help, the actors are still gone...

What I have done, is to choose the background and put my player as the "parent" for it, to have it follow the background. However, the actors and the player disappear behind the background when I use the "parent" function like this. So I've started to wonder if it can't be done this way, or if I have just overlooked some important bits?

Re: Actors disappears when using parent function. What's wrong?

PostPosted: Sun Jan 06, 2008 2:25 pm
by Azou
OOOhhh yeah,i know that!!!!!!!! :D :D You have to create first the background,otherwise,the character is going to be behing the bg!! :mrgreen: First bg,second character :wink:

Re: Actors disappears when using parent function. What's wrong?

PostPosted: Sun Jan 06, 2008 2:31 pm
by msv83
Thanks for trying to help me out further with this :)

I'm afraid I still don't get it to work. The Background is created first, then the player. But as soon as I choose the background and give it the parent "player", the player disappears out of sight. Makes me really confused :(

Re: Actors disappears when using parent function. What's wrong?

PostPosted: Sun Jan 06, 2008 2:33 pm
by Azou
Why do you want the background parented to the player? :lol:

Re: Actors disappears when using parent function. What's wrong?

PostPosted: Sun Jan 06, 2008 2:39 pm
by msv83
Maybe because I'm a newbie and haven't gotten around to understand things completely yet... :lol:

What I want is to have the player run through that background (it's supposed to be one "level"). Should I do it in an other way? I tried doing it by doing it the way it was shown in the tutorial, by choosing "View" and give it the parent "player". But then the screen just turned black...

Re: Actors disappears when using parent function. What's wrong?

PostPosted: Sun Jan 06, 2008 2:55 pm
by Azou
Post an image of the game,i'll see the situation :P

Re: Actors disappears when using parent function. What's wrong?

PostPosted: Sun Jan 06, 2008 5:02 pm
by msv83
You mean an image of the game setup?

By the way, I forgot to mention that on a test game I created at first, I actually made it work with my player moving along with the background, by simply giving the background the player as parent. However, I can't get that to work again, even though I can't see any differences on that file (I saved it so I could look back at it for reference) to what I try to create now...

Maybe I'm aslo setting up the levels in a wrong way? :oops:

Re: Actors disappears when using parent function. What's wrong?

PostPosted: Sun Jan 06, 2008 6:19 pm
by Azou
Hum...
msv83 wrote:By the way, I forgot to mention that on a test game I created at first, I actually made it work with my player moving along with the background, by simply giving the background the player as parent. However, I can't get that to work again, even though I can't see any differences on that file (I saved it so I could look back at it for reference) to what I try to create now...

Ok,post and image f the setup game :)
Or,make the view parented to your player,then move your player into the center of the background! It is doing that if the player moves,so the view is going to follow him :P

Re: Actors disappears when using parent function. What's wrong?

PostPosted: Mon Jan 07, 2008 6:20 am
by Troodon
Perhaps I misread, but did you try setting your actors zdepth higher than bg's z?

Re: Actors disappears when using parent function. What's wrong?

PostPosted: Mon Jan 07, 2008 6:41 am
by Fuzzy
What is happening is that a parent and child actor share the same zdepth level. If you wish to not get away from the BG set it to infinite repeats.

Re: Actors disappears when using parent function. What's wrong?

PostPosted: Thu Jan 10, 2008 9:22 pm
by msv83
Thanks for helping me out, everyone :)

I also found out it was a bit easier for me to make each level in a separate .ged file.