//---------------------------------------------------------------------------------------------
//
//	Chromatic Wing Mod
//	
//	Boss animation frame drawing
//
//---------------------------------------------------------------------------------------------

	if (GetCommonDataDefault("CD_BossFight",0) == 1)	{	DrawText(BossName, 40, 36, 12, 255);	}

	if(int(GetSpeedX())==0)
	{

		ascent (i in 0 .. BSA_total)
		{
			if((ng_mframe >= (ng_mframefac*i)-1) && (ng_mframe <= (ng_mframefac*(i+1))))
			{	SetGraphicRect((BSR_sizex*i)+1, 1, (BSR_sizex*(i+1)), BSR_sizey);	}
		}

	}
	else if(GetSpeedX()>0)
	{
		ascent (i in 0 .. BSA_total)
		{
			if((ng_mframe >= (ng_mframefac*i)-1) && (ng_mframe <= (ng_mframefac*(i+1))))
			{	SetGraphicRect((BSR_sizex*i)+1, BSR_sizey+1, (BSR_sizex*(i+1)), BSR_sizey*2);	}
		}

	}

	else if(GetSpeedX()<0)
	{
		ascent (i in 0 .. BSA_total)
		{
			if((ng_mframe >= (ng_mframefac*i)-1) && (ng_mframe <= (ng_mframefac*(i+1))))
			{	SetGraphicRect((BSR_sizex*i)+1, (BSR_sizey*2)+1, (BSR_sizex*(i+1)), BSR_sizey*3);	}
		}

	}

	DrawGraphic(GetX, GetY);
	if(ng_mframe == (ng_mframefac*BSA_total))
	{	ng_mframe = 0;	}

