NPC Code:
if (playerenters||timeout) {
while (true) {
putexplosion 32,playerx,playery;
showimg this.thingummy,beer.gif,random(0,screenwidth),rand om(0,screenheight);
changeimgvis this.thingummy,4;
this.thingummy++;
}
timeout=0.05;
timereverywhere;
}
You should try running that in a level for fun once.
Disclaimer: I am in no way responsible for any system crashes etc., thank you.