here is torch_idle in .txt form
NPC Code:
SPRITE 0 SPRITES 0 0 24 12 shadow
SPRITE 1 fire.gif 0 0 30 52 torch fire
SPRITE 2 fire.gif 8 0 14 52 torch light
SPRITE 4 ATTR2 0 0 28 32 torch
SPRITE 40 ATTR1 0 0 48 48 hat up
SPRITE 41 ATTR1 48 0 48 48 hat left
SPRITE 42 ATTR1 96 0 48 48 hat down
SPRITE 43 ATTR1 144 0 48 48 hat right
SPRITE 100 HEAD 0 0 32 32 head up
SPRITE 101 HEAD 0 32 32 32 head left
SPRITE 102 HEAD 0 64 32 32 head down
SPRITE 103 HEAD 0 96 32 32 head right
SPRITE 217 BODY 32 128 32 32 body walking4 left
SPRITE 226 BODY 64 192 32 32 body sword1 down
SPRITE 227 BODY 96 192 32 32 body sword1 right
SPRITE 248 BODY 0 384 32 32 body pushing3 up
DEFAULTATTR1 hat0.png
DEFAULTHEAD head19.gif
DEFAULTBODY body.png
COLOREFFECT 2 1 1 1 0.99
ZOOMEFFECT 2 2
SCRIPT
if (playerenters || timeout) {
if (playerdir==0) showimg 1,light2.png,playerx-31/16,playery-74/16;
if (playerdir==1) showimg 1,light2.png,playerx-52/16,playery-76/16;
if (playerdir==2) showimg 1,light2.png,playerx-56/16,playery-76/16;
if (playerdir==3) showimg 1,light2.png,playerx-32/16,playery-74/16;
changeimgvis 1,3;
changeimgcolors 1,1,0.5,0.5,0.99;
changeimgzoom 1,1.5;
timeout = 0.05;
}
SCRIPTEND
ANI
0 12 34, 248 8 14, 4 23 -4, 1 23 -46, 2 31 -72, 100 8 2, 40 0 -16
0 12 36, 217 10 16, 4 0 -6, 1 0 -48, 2 8 -74, 101 10 2, 41 -2 -16
0 12 34, 226 8 16, 102 8 2, 42 0 -16, 4 -4 -6, 1 -4 -48, 2 4 -74
0 12 36, 227 4 14, 103 4 2, 43 0 -16, 4 20 -4, 1 20 -46, 2 28 -72
ANIEND