Not directly, but you can do this.
- Code: Select all
Actor *
getCloneIdx (const char *cname, int cindex) //g_GetCloneByIndex, its original name
{
char buffer[50];
sprintf(buffer,"%s.%i",cname,cindex);
return(getclone(buffer));
}
- Code: Select all
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);
}
The xy coordinates will change for how you want it, but I think you can use screen_to_actor, or actor_to_screen, to set that up or your own variables.
What this does is go through all existing clones, by use of a for loop and the ActorCount function, and draws them. It uses each clone's xy, but this will probably not work without adjustment, otherwise you would not use draw.