Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- task BulletFormation {
- let angleS = angleToPlayer(Boss);
- //All values here are exemplary. Change them according to your need and at your will.
- while(!Obj_IsDeleted(Boss)){ //loop the task until the boss dies
- ShotA1(angleS,-1,6,4,3);
- angleS += 11; //the bullet formations are shot every 11 degrees
- wait(12); //the bullet formations are shot every 12 frames
- //DON'T YIELD
- }
- task ShotA1(angle,offset,num1,num2,shotID){
- ascent(a in 0..num1){ //sets how many BULLETS are in ONE formation
- loop(num2){ //sets how many BULLET FORMATIONS are fired
- let shot1A = CreateShotA1(BossX+48*cos(angle),BossY+48*sin(angle),3-a/num1,angle,shotID,12);
- angle += 360/num2; //sets how many COLUMNS of bullet formations are in a complete circle
- }
- angle += offset; //determines whether the bullet formation is CURVED (offset < 0 or offset > 0) or STRAIGHT (offset == 0)
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement