let img=GetCurrentScriptDirectory~"img\enemy.png";
LoadGraphic(img);
let count=0;
let anim=0;
let animb=0;

sub anim2{
	anim++;
	if(anim>=16){anim-=16;}
	animb++;
	if(GetKeyState(VK_SLOWMOVE)==KEY_PULL || GetKeyState(VK_SLOWMOVE)==KEY_FREE)
	{
	SetTexture(img);
	SetGraphicScale(1, 1);
	SetAlpha(255);
	SetGraphicRect(64, 224, 96, 256);
	SetGraphicAngle(0, 0, animb);
	DrawGraphic(GetX, GetY);
	SetGraphicRect(256+floor(anim/2)*32, 192, 256+floor(anim/2)*32+32, 224);
	SetGraphicAngle(0, 0, 0);
	DrawGraphic(GetX, GetY);
	}else{
	SetTexture(img);
	SetGraphicRect(0, 128, 64, 192);
	SetGraphicAngle(0, 0, animb/2);
	SetGraphicScale(0.75, 0.75);
	SetAlpha(255);
	DrawGraphic(GetX, GetY);
	}
}