Quote:
Originally Posted by Angel_Light
no this.actor.ani is not a valid var, just use getvarnames() to get the vars. =P
|
then I would suggest you to do what Chris said:
Quote:
Originally Posted by cbkbud
May not help in your case, but if you can I would use a GuiShowImgCtrl.
|
PHP Code:
new GuiShowImgCtrl("test_actor") {
x = 10;
y = 10;
width = 60;
height = 60;
layer = 1;
playerlook = false;
// start actor
ani = "idle";
actor.headimg = "head.png";
actor.bodyimg = "body.png";
actor.shieldimg = "no-shield.png";
temp.i = 0;
for(temp.color : {"orange", "white", "blue", "red", "black"}) {
actor.colors[i] = color;
i ++;
}
}
Oh, and:
PHP Code:
sword -> player.swordimg
shield -> player.shieldimg
head -> player.headimg
Body -> player.bodyimg