creator actor
Posted: Wed Jul 11, 2007 8:27 pm
.. Some functions in GE (such as CHANGE PARENT) allow you to select "CREATOR ACTOR", so obviously each actor knows what created it, right? So when scripting (without the easy to use & click interface functions) how would it be scripted? for example, my actor's DRAW script below has it moving along with another actor (which created it) while not being parented (per the parenting problem with independantly rotating actors addressed in my Hull Breach game). The problem is, if two of these actors are on the screen at once, the following actor doesn't know to follow it's creator(.1 in this case) rather then the original (.0) actor... anyone?
int weight = 1;
x = ((weight -1)*x + e_HK.x +10 )/weight;
y = ((weight -1)*y + e_HK.y +15 )/weight;
** in this case "e_HK" needs to be whatever would make it "CreatorActor"...
int weight = 1;
x = ((weight -1)*x + e_HK.x +10 )/weight;
y = ((weight -1)*y + e_HK.y +15 )/weight;
** in this case "e_HK" needs to be whatever would make it "CreatorActor"...