Actor*
getclone2 (char* name, int cindex)
{
char buffer[30];
sprintf(buffer, "%s.%d", name, cindex);
return(getclone(buffer));
}
Actor* temp = getclone2("enemy", 5); // gets pointer to enemy.5
sprintf(text, "x: %lf\ty: %lf", temp->x, temp->y);
myCollideActorsX = collide.x;
Users browsing this forum: No registered users and 1 guest