Is there a way I can make all clones of an actor bedrawn in a canvas without listing each individual clone?
Tell me if I am not being very clear
Thanks alot
Actor *
getCloneIdx (const char *cname, int cindex) //g_GetCloneByIndex, its original name
{
char buffer[50];
sprintf(buffer,"%s.%i",cname,cindex);
return(getclone(buffer));
}
int i;
Actor * clone;
erase(0,0,0,1);
for(i=0;i<ActorCount("actorName");i++)
{
clone = getCloneIdx("actorName", i);
draw_from(clone.clonename, clone->x, clone->y, 1);
}
int i;
Actor * clone;
for(i=0;i<ActorCount("actorName");i++)
{
clone = getCloneIdx("actorName", i);
SendActivationEvent(clone->clonename);
}
int i;
Actor * clone;
erase(0,0,0,1);
for(i=0;i<ActorCount("actorName");i++)
{
clone = getCloneIdx("actorName", i);
draw_from(clone->clonename, clone->x, clone->y, 1);
}
Users browsing this forum: No registered users and 1 guest