Parents and scripts.

Non-platform specific questions.

Parents and scripts.

Postby Joat_Mone » Wed Jan 04, 2006 2:52 am

Hi again,

Do the child's inherent the scripts attached with the parents? It would make things alot easier if I can make a collision check with the parent, and have all the childs inherit the check. Alot less scripts I need to fill out.

Matt
Joat_Mone
 
Posts: 37
Joined: Mon Mar 01, 2004 9:13 pm
Score: 0 Give a positive score

Parents and scripts. - The answer

Postby Joat_Mone » Wed Jan 04, 2006 3:01 am

It looks like they dont. I tried just making a simple collision script and it worked against the parent, but not the child. :(
Joat_Mone
 
Posts: 37
Joined: Mon Mar 01, 2004 9:13 pm
Score: 0 Give a positive score

Re: Parents and scripts.

Postby makslane » Wed Jan 04, 2006 12:07 pm

Joat_Mone wrote:Do the child's inherent the scripts attached with the parents?


No, you need to set the "Inherit" option in the Actor Control if you need inherit events from other actors.
Game Editor is an open source game creator software that's wants to pay it's developers to keep evolving.
If you like Game Editor, make a review!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Re: Parents and scripts.

Postby Joat_Mone » Wed Jan 04, 2006 3:48 pm

I tried that, but it still doesnt seem to inherit the script from the parent.
Joat_Mone
 
Posts: 37
Joined: Mon Mar 01, 2004 9:13 pm
Score: 0 Give a positive score

Re: Parents and scripts.

Postby Joat_Mone » Thu Jan 05, 2006 12:00 am

After playing around I found the "clone" button. It will do what I wanted without making things parents and children. Sorry about being dense, but I'm still learning about programming.
Joat_Mone
 
Posts: 37
Joined: Mon Mar 01, 2004 9:13 pm
Score: 0 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest