#“Œ•û’e–‹•— #Title[‰Û‘è] #Text[’e–‹•—ƒXƒŒ8>>20] #Player[FREE] #ScriptVersion[2] script_enemy_main { let imgboss="script\img\ExRumia.png"; @Initialize { SetX(GetCenterX()); SetY(GetClipMinY() + 120); SetLife(2000); SetScore(100000); SetTimer(50); LoadGraphic(imgboss); SetTexture(imgboss); SetGraphicRect(0, 0, 63, 63); shot; } @MainLoop { SetCollisionA(GetX, GetY, 24); SetCollisionB(GetX, GetY, 24); yield; } @DrawLoop { DrawGraphic(GetX, GetY); } @Finalize { DeleteGraphic(imgboss); } task shot { yield; wait(60); let radius; let angle; let p; let x; let y; let ax = rand(152,296);//minx+120,maxx-120 let ay = rand(136,224);//miny+120,cy loop { p= rand(1,2^0.5); radius = (rand((60^2)*p, 120^2))^0.5; angle = rand(0,360); x = ax + cos(angle)*radius; y = ay + sin(angle)*radius; CreateShot01(x,y,rand(1,3),atan2(GetPlayerY-y,GetPlayerX-x),RED01,0); wait(10); } } function wait(w){loop(w){yield;}} }