Error (Solved)
Posted: Sat Jun 24, 2006 10:45 am
When I activate this code:
I get this error:
ChestItem.0's text is "GoldCoin", which is the name of an actor with the same animation name. What could be causing this?
- Code: Select all
char *itm;
Actor *I;
Actor *ITEM;
I = getclone2("ChestItem", cloneindex);
strcpy(itm, I->text);
animpos = 1;
ITEM = CreateActor(itm, itm, "no parent", "no path", 4, 0, false);
ITEM->xvelocity = 2;
ITEM->yvelocity = 1;
I get this error:
ChestItem.0's text is "GoldCoin", which is the name of an actor with the same animation name. What could be causing this?