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

Non-platform specific questions.

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

Postby msv83 » Sun Jan 06, 2008 12:35 pm

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?
msv83
 
Posts: 22
Joined: Mon Dec 31, 2007 3:17 pm
Score: 0 Give a positive score

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

Postby Azou » Sun Jan 06, 2008 12:47 pm

You have to search them away from the background!! Use the keypad - to zoom and to see them :D
User avatar
Azou
 
Posts: 514
Joined: Thu Sep 13, 2007 1:12 pm
Score: 35 Give a positive score

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

Postby msv83 » Sun Jan 06, 2008 1:16 pm

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?
msv83
 
Posts: 22
Joined: Mon Dec 31, 2007 3:17 pm
Score: 0 Give a positive score

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

Postby Azou » Sun Jan 06, 2008 2:25 pm

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:
User avatar
Azou
 
Posts: 514
Joined: Thu Sep 13, 2007 1:12 pm
Score: 35 Give a positive score

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

Postby msv83 » Sun Jan 06, 2008 2:31 pm

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 :(
msv83
 
Posts: 22
Joined: Mon Dec 31, 2007 3:17 pm
Score: 0 Give a positive score

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

Postby Azou » Sun Jan 06, 2008 2:33 pm

Why do you want the background parented to the player? :lol:
User avatar
Azou
 
Posts: 514
Joined: Thu Sep 13, 2007 1:12 pm
Score: 35 Give a positive score

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

Postby msv83 » Sun Jan 06, 2008 2:39 pm

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...
msv83
 
Posts: 22
Joined: Mon Dec 31, 2007 3:17 pm
Score: 0 Give a positive score

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

Postby Azou » Sun Jan 06, 2008 2:55 pm

Post an image of the game,i'll see the situation :P
User avatar
Azou
 
Posts: 514
Joined: Thu Sep 13, 2007 1:12 pm
Score: 35 Give a positive score

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

Postby msv83 » Sun Jan 06, 2008 5:02 pm

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:
msv83
 
Posts: 22
Joined: Mon Dec 31, 2007 3:17 pm
Score: 0 Give a positive score

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

Postby Azou » Sun Jan 06, 2008 6:19 pm

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
User avatar
Azou
 
Posts: 514
Joined: Thu Sep 13, 2007 1:12 pm
Score: 35 Give a positive score

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

Postby Troodon » Mon Jan 07, 2008 6:20 am

Perhaps I misread, but did you try setting your actors zdepth higher than bg's z?
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

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

Postby Fuzzy » Mon Jan 07, 2008 6:41 am

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.
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score

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

Postby msv83 » Thu Jan 10, 2008 9:22 pm

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.
msv83
 
Posts: 22
Joined: Mon Dec 31, 2007 3:17 pm
Score: 0 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron