Page 1 of 1

Q: Clone Variables

PostPosted: Sat Jun 17, 2006 3:49 am
by zupernoc
I am creating an actor (actor1) from another actors's script (actor2).

Code: Select all
actor1.angle = 45;


The above works fine. But how does one set the angle of one of the clones? example:
Code: Select all
actor1.01.angle = 45;
does not work

Ultimately I am just attempting to have 10 actors spawn from a single point, and move out at different angles. (similar to a particle explosion).

A solution to the above clone variable issue, or best practices advice appreciated. Thank you.

PostPosted: Sat Jun 17, 2006 2:31 pm
by Game A Gogo
if you want tem to move in random direction, use on create event:
Code: Select all
angle=rand(360);
directional_velocity=rand(3);
that should make then go to random angle and move at a random speed

PostPosted: Sat Jun 17, 2006 5:51 pm
by makslane

PostPosted: Sat Jun 17, 2006 6:50 pm
by zupernoc
Thank you.

The getclone function worked.
I now have a sweet particle explosion. :D