Yes, but what if i'd wanted to repeat my action? In my "nice" example above, it'd repeat without trouble. How would it work with timeout? You can save some trouble with a sleep for loop. And i don't really see what's wrong with sleep :/
NPC Code:
if (playerenters){
i=1;
this.savex=0;
timeout = 0.05;
}
if (timeout){
if (i<64){
i++;
showpoly 2,{this.savex,32,i,32};
this.savex=i;
} if (i==63){
i=1;
this.savex=0;
}
timeout = 0.05;
}