Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- task testfire{
- let dir = 90;
- loop(5){
- PlaySE(sfx1);
- objectbullet(bossX,bossY,5,8,dir,0.50,65,10);
- dir+=360/36;
- dir+= 15;
- wait(3);
- }
- }
- task testfire2{
- let dir = 90;
- loop(5){
- PlaySE(sfx1);
- objectbullet2(bossX,bossY,5,8,dir,0.50,65,10);
- dir+=360/36;
- dir-= 30;
- wait(3);
- }
- }
- task objectbullet(x,y,spd,maxspd,ang,acc,tex,delay){
- let obj = ObjShot_Create(OBJ_SHOT);
- ObjShot_Regist(obj);
- ObjMove_SetPosition(obj,x,y);
- ObjMove_SetSpeed(obj,spd);
- ObjMove_SetMaxSpeed(obj,maxspd);
- ObjMove_SetAngle(obj,ang);
- ObjMove_SetAcceleration(obj,acc);
- ObjShot_SetGraphic(obj,tex);
- ObjShot_SetDelay(obj,delay);
- while(!Obj_IsDeleted(obj)){
- wait(30);
- ObjMove_SetSpeed(obj,0);
- ObjMove_SetMaxSpeed(obj,0);
- wait(60);
- loop(1){
- let x = 0;
- let dir = 0;
- ascent(S in 1..9){
- while(x<5){
- CreateShotA1(ObjMove_GetX(obj),ObjMove_GetY(obj),S/1.5,dir,78,10);
- dir+=360/5;
- x++;
- }
- x = 0;
- dir += 10;
- wait(8);
- }}
- ObjShot_FadeDelete(obj);
- yield;
- }}
- task objectbullet2(x,y,spd,maxspd,ang,acc,tex,delay){
- let obj = ObjShot_Create(OBJ_SHOT);
- ObjShot_Regist(obj);
- ObjMove_SetPosition(obj,x,y);
- ObjMove_SetSpeed(obj,spd);
- ObjMove_SetMaxSpeed(obj,maxspd);
- ObjMove_SetAngle(obj,ang);
- ObjMove_SetAcceleration(obj,acc);
- ObjShot_SetGraphic(obj,tex);
- ObjShot_SetDelay(obj,delay);
- while(!Obj_IsDeleted(obj)){
- wait(30);
- ObjMove_SetSpeed(obj,0);
- ObjMove_SetMaxSpeed(obj,0);
- wait(60);
- loop(1){
- let x = 0;
- let dir = 0;
- ascent(S in 1..9){
- while(x<5){
- CreateShotA1(ObjMove_GetX(obj),ObjMove_GetY(obj),S/1.5,dir,78,10);
- dir+=360/5;
- x++;
- }
- x = 0;
- dir -= 10;
- wait(8);
- }}
- ObjShot_FadeDelete(obj);
- yield;
- }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement