Help Referencing ActorVariables

Non-platform specific questions.

Help Referencing ActorVariables

Postby skydereign » Sun Dec 07, 2008 10:24 am

Is there a way of passing on values of actor variables to other actors? I don't think it is just a matter of storing the values elsewhere and referencing them, as the amount of actors needing to do this grows exponentially... At least 4 actors will be creating 3 new actors and then each of those creates 3 more and so on, and I don't know how to pass on the variables of the creator actor (one that creates the other 3) to the created (the 3 being created).
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Help Referencing ActorVariables

Postby makslane » Sun Dec 07, 2008 12:31 pm

Do you mean variables created by you or the x,y, xscreen... variables?
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: Help Referencing ActorVariables

Postby Killagram » Sun Dec 07, 2008 5:29 pm

variable=creator.variable;
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it."
-Brian W. Kernighan
User avatar
Killagram
 
Posts: 31
Joined: Sun Aug 10, 2008 8:49 pm
Score: 5 Give a positive score

Re: Help Referencing ActorVariables

Postby skydereign » Tue Dec 09, 2008 4:19 am

Thanks a lot. Now I can continue in the general production of my game, and this makes other things a lot easier.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron