Quote:
Originally posted by Chicken_l33t
// NPC made by Chicken NaNa
if (timeout || playerenters){
timeout = 0.05;
if (keydown2(keycode(S),true) || keydown(5))
{
setsword nosword.png,0;
replaceani sword,idle;
setplayerprop #c,Hmm;
}
}
There's some un-nessecary stuff in there I was just testing some ****e but it works .
|
Why use a timeout and set the sword each time as well as replace the ani each time? That seems rather inefficient.