Advertisement
Guest User

Untitled

a guest
Apr 21st, 2014
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. task testfire{
  2. let dir = 90;
  3. loop(5){
  4. PlaySE(sfx1);
  5. objectbullet(bossX,bossY,5,8,dir,0.50,65,10);
  6. dir+=360/36;
  7. dir+= 15;
  8. wait(3);
  9. }
  10. }
  11.  
  12. task testfire2{
  13. let dir = 90;
  14. loop(5){
  15. PlaySE(sfx1);
  16. objectbullet2(bossX,bossY,5,8,dir,0.50,65,10);
  17. dir+=360/36;
  18. dir-= 30;
  19. wait(3);
  20. }
  21. }
  22.  
  23. task objectbullet(x,y,spd,maxspd,ang,acc,tex,delay){
  24. let obj = ObjShot_Create(OBJ_SHOT);
  25. ObjShot_Regist(obj);
  26.  
  27. ObjMove_SetPosition(obj,x,y);
  28. ObjMove_SetSpeed(obj,spd);
  29. ObjMove_SetMaxSpeed(obj,maxspd);
  30. ObjMove_SetAngle(obj,ang);
  31. ObjMove_SetAcceleration(obj,acc);
  32. ObjShot_SetGraphic(obj,tex);
  33. ObjShot_SetDelay(obj,delay);
  34.  
  35. while(!Obj_IsDeleted(obj)){
  36. wait(30);
  37. ObjMove_SetSpeed(obj,0);
  38. ObjMove_SetMaxSpeed(obj,0);
  39. wait(60);
  40. loop(1){
  41. let x = 0;
  42. let dir = 0;
  43. ascent(S in 1..9){
  44. while(x<5){
  45. CreateShotA1(ObjMove_GetX(obj),ObjMove_GetY(obj),S/1.5,dir,78,10);
  46. dir+=360/5;
  47. x++;
  48. }
  49. x = 0;
  50. dir += 10;
  51. wait(8);
  52. }}
  53. ObjShot_FadeDelete(obj);
  54. yield;
  55. }}
  56.  
  57. task objectbullet2(x,y,spd,maxspd,ang,acc,tex,delay){
  58. let obj = ObjShot_Create(OBJ_SHOT);
  59. ObjShot_Regist(obj);
  60.  
  61. ObjMove_SetPosition(obj,x,y);
  62. ObjMove_SetSpeed(obj,spd);
  63. ObjMove_SetMaxSpeed(obj,maxspd);
  64. ObjMove_SetAngle(obj,ang);
  65. ObjMove_SetAcceleration(obj,acc);
  66. ObjShot_SetGraphic(obj,tex);
  67. ObjShot_SetDelay(obj,delay);
  68.  
  69. while(!Obj_IsDeleted(obj)){
  70. wait(30);
  71. ObjMove_SetSpeed(obj,0);
  72. ObjMove_SetMaxSpeed(obj,0);
  73. wait(60);
  74. loop(1){
  75. let x = 0;
  76. let dir = 0;
  77. ascent(S in 1..9){
  78. while(x<5){
  79. CreateShotA1(ObjMove_GetX(obj),ObjMove_GetY(obj),S/1.5,dir,78,10);
  80. dir+=360/5;
  81. x++;
  82. }
  83. x = 0;
  84. dir -= 10;
  85. wait(8);
  86. }}
  87. ObjShot_FadeDelete(obj);
  88. yield;
  89. }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement