#“Œ•û’e–‹•— #Title[SampleCode] #Text[SampleCode] #ScriptVersion[2] script_enemy_main { @Initialize{SetLife(1500);SetTimer(60);SetInvincibility(60);SetX(GetCenterX);SetY(GetCenterY);} let Count=-91; let Part=8; let A_Spd=0.3; let Put_Angle; let Range; @MainLoop{ if(Count==-91){GraphLaser;} if(Count>=0&&Count%6==0) { Range=((GetPlayerX-GetX)^2+(GetPlayerY-GetY)^2)^0.5; PutShot; } Count++; } @Finalize{}@DrawLoop{} function GraphLaser { ascent(i in 0..Part) { CreateLaserA(0,GetX,GetY,300,10,WHITE02,30); SetLaserDataA(0,0,360/Part*i+360/Part/2,0,0,0,0); SetLaserDataA(0,90,NULL,A_Spd,0,0,0); FireShot(0); } } function PutShot { ascent(i in 0..Part) { CreateShotA(0,GetX+Range*cos(360/Part*i+360/Part/2+Count*A_Spd),GetY+Range*sin(360/Part*i+360/Part/2+Count*A_Spd),0); SetShotDataA(0,0,0,0,0,0,0,RED01); SetShotKillTime(0,360/Part/A_Spd); FireShot(0); } } }//[EOF]