Is it only me or this is well known? Ive got this script, and once it hits enemy then his drawmehod commands in pain attacks (tinting to red or white) dont work at all
Or am i doing something wrong ?
---
Yes i did something wrong, if i use changedrawmethod(opp,"enabled",0); then drawmethod commands work fine.
Code:
@script
void self = getlocalvar("self");
void opp = getentityproperty(self, "opponent");
if ( frame == 1 ) {
changeentityproperty(self,"parent",opp);
changedrawmethod(opp,"enabled",1);
changedrawmethod(opp, "tintmode", 1);
changedrawmethod(opp, "tintcolor", rgbcolor(100,100,200));
changeentityproperty(self, "velocity", 0,0,0);
changeentityproperty(self, "speed", 0);
setentityvar(opp, "posx", getentityproperty(opp, "x"));
}
if ( frame == 40 ) {
changedrawmethod(opp, "tintcolor", rgbcolor(0,0,0));
}
@end_script
---
Yes i did something wrong, if i use changedrawmethod(opp,"enabled",0); then drawmethod commands work fine.