Hi,
It's me again. I know I'm asking too many questions and here is one again. (Maybe I should make a topic called "Tekdino's questions")
Is there any way to read a random clone in GE?
I need it to make a random moveto target clone.
Actor *actorArray[500];
array[count] = getclone(clonename);
number = count;
count ++;
count --;
array[number] = array[count];
int acnum = round(rand(count - .00001) - .5);
//if you need the actor as a target, get its clonename:
array[acnum]->clonename
//if you need the actor's location:
array[acnum]->x, array[acnum]->y
if (count < 500)
{
CreateActor...
}
Users browsing this forum: No registered users and 1 guest