Page 1 of 1

Help Referencing ActorVariables

PostPosted: Sun Dec 07, 2008 10:24 am
by skydereign
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).

Re: Help Referencing ActorVariables

PostPosted: Sun Dec 07, 2008 12:31 pm
by makslane
Do you mean variables created by you or the x,y, xscreen... variables?

Re: Help Referencing ActorVariables

PostPosted: Sun Dec 07, 2008 5:29 pm
by Killagram
variable=creator.variable;

Re: Help Referencing ActorVariables

PostPosted: Tue Dec 09, 2008 4:19 am
by skydereign
Thanks a lot. Now I can continue in the general production of my game, and this makes other things a lot easier.