actor is now just string, not Actor.
That's why you can't get its coordinates.
Do this:
Global code:
- Code: Select all
char actorName[50];
Actor * GetClone(char Name[50], int num)
{
sprintf(actorName, "%s.%i", Name, num);
return getclone(actor);
}
Then give name to it and click add.
And now your script:
- Code: Select all
int i;
Actor * this;
char actor[50]; //String for actors name.
for (i = 0; i < ActorCount("smile"); i ++) //Check all clones through.
{
this = GetClone("smile", i);
sprintf(actor, "smile.%i", i); //Set the name of actor to draw.
draw_from(actor,200+this->x-Player1.x, 200+this->y-Player1.y, 1); //Draw it.
}
Now it works because now you deal those positions with actor itself, not its name.

EDIT:
Seems you just were faster again, skydereign...