Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- task fireA{
- while(ObjEnemy_GetInfo(objBoss, INFO_LIFE) > 0){
- wait(380);
- let lpcnt = 0;
- loop(4){
- let laser = CreateStraightLaserA1(ObjMove_GetX(objBoss),ObjMove_GetY(objBoss),90*lpcnt,300,20,150,7,200);
- lasercontrol(laser);
- bulletcontrol(laser);
- lpcnt++;
- }
- }
- }
- task bulletcontrol(laser){
- while(!Obj_IsDeleted(laser)){
- let x = ObjMove_GetX(laser);
- let y = ObjMove_GetY(laser);
- let a = ObjStLaser_GetAngle(laser);
- let len = ObjLaser_GetLength(laser);
- let num = 8;
- ascent(i in 0..num){
- let dist = i*len/num;
- let shot = CreateShotA1(x + cos(a)*dist, y + sin(a)*dist, 2, 90, 45, 10);
- }
- wait(10);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment