 function CreateEnemy(TXT,Life,DIMX,DIMY,Scale,ShotRa,PlaRa)
    {   let TXT = GetCurrentScriptDirectory() ~ "sprite/familiar.png";
        let obj = ObjEnemy_Create(OBJ_ENEMY);
        ObjEnemy_Regist(obj);
        ObjEnemy_SetLife(obj,70);
        ObjPrim_SetTexture(obj,TXT);
        ObjSprite2D_SetSourceRect(obj, 0, 0, DIMX, DIMY);
        ObjSprite2D_SetDestCenter(obj);
        Obj_SetRenderPriorityI(obj,50);
        ObjRender_SetScaleXYZ(obj,1,1,0);
        HitBox(obj,ShotRa,PlaRa);
        return obj;
    }
     task HitBox(obj,ShotRa,PlaRa)
    {
        while(!Obj_IsDeleted(obj))
        {
            ObjEnemy_SetIntersectionCircleToShot(obj, ObjMove_GetX(obj), ObjMove_GetY(obj),32); 
            ObjEnemy_SetIntersectionCircleToPlayer(obj, ObjMove_GetX(obj), ObjMove_GetY(obj), 8);
            if(ObjEnemy_GetInfo(obj,INFO_LIFE)<=0)
            {

                AddScore(5000);
                Obj_Delete(obj);
                return;
            }
            if(ObjMove_GetX(obj)<=-32 ||ObjMove_GetX(obj)>= GetStgFrameWidth+32 || ObjMove_GetY(obj)<=-32 ||ObjMove_GetY(obj)>= GetStgFrameHeight+32 )
            {
                Obj_Delete(obj);
            }
            yield;
        }
    }

 if(Obj_IsDeleted(obj))
                {
                    return;
                }
                let Bullet=CreateShotA1(ObjMove_GetX(obj),ObjMove_GetY(obj),2,90,115,0);
				
				