Advertisement
Guest User

jackk

a guest
Feb 25th, 2020
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.94 KB | None | 0 0
  1. task red{
  2.     if(ObjEnemy_GetInfo(objBoss, INFO_LIFE) <= 0){return;} //Default kill to prevent (0,0) spawning
  3.     //{
  4.         let a;
  5.             let r = 0;
  6.     //}
  7.    
  8.     while(ObjEnemy_GetInfo(objBoss, INFO_LIFE) > 0){
  9.         if(ObjEnemy_GetInfo(objBoss, INFO_LIFE) <= 0){return;}
  10.          
  11.         ascent(i in 0..8){
  12.             a = r + 360/8*i;
  13.            
  14.             //main bullet
  15.             let f = CreateShotA1(bx, by, 4, a, 549, 3);
  16.             if(i % 2 == 0){setsp(f, 2); ObjShot_SetGraphic(f, 547);}
  17.            
  18.             rings(f, 20);
  19.         }
  20.        
  21.         r += 360/5 + 5;
  22.         wait(60*2);
  23.     }
  24.    
  25.     task rings(eu, n){ //make falling rings
  26.         wait(30);
  27.         //{
  28.             let a; let r = geta(eu);
  29.         //}
  30.        
  31.         if(ObjEnemy_GetInfo(objBoss, INFO_LIFE) <= 0){return;}
  32.         if(Obj_IsDeleted(eu)){return;}
  33.         ascent(i in 0..n){
  34.             a = r + 360/n*i;
  35.            
  36.             let B = CreateShotA1(getx(eu), gety(eu), 2, a, 128, 3);
  37.                 let g = angtoP(B);
  38.             ObjMove_AddPatternB2(B, 40, NO_CHANGE, NO_CHANGE, 1/5, 1/5, 6*cos(g), 6*sin(g));
  39.         }
  40.        
  41.         Obj_Delete(eu);
  42.     }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement