Mewkyuu

Untitled

Jun 15th, 2011
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. task attack1 {
  2. let a = 0;
  3. let b = 0;
  4. loop {
  5. loop(75) {
  6. ascent(i in 0..5) { ascent(j in 0..2) {
  7. CreateShotA(0, GetX, GetY, 15);
  8. SetShotDataA(0, 0, 5, a*(j*2-1)+i*360/5+b, 2*(j*2-1), -1/10, -3, RED21);
  9. SetShotDataA(0, 90, -3, NULL, 1*(j*2-1), 1/5, 7, YELLOW21);
  10. SetShotDataA(0, 150, 7, NULL, -3*(j*2-1), -1/5, 3/2, BLUE21);
  11. ascent(k in 0..4) {
  12. SetShotDataA(0, 240+k*60, 3/2, NULL, 3/4*(j*2-1), 0, 0, GREEN21);
  13. SetShotDataA(0, 270+k*60, 3/2, NULL, 0, 0, 0, GREEN21);
  14. }
  15. SetShotDataA(0, 270+3*60+1, 3/2, NULL, 0, 0, 0, PURPLE21);
  16. FireShot(0);
  17. } }
  18. wait(3); a+=7; a%=360; b+=1; b%=360;
  19. }
  20. ExMove_(rand(30, 60), GetCenterY-50, 7, 11, 30); wait(75);
  21. }
  22. }
  23. function ExMove_(length, height, weight, velocity, ud) {
  24. if(GetPlayerX < GetX) {
  25. if(GetX - length <= GetClipMinX) {
  26. SetMovePosition03(GetX + length, rand(height - ud, height + ud), weight, velocity);
  27. } else {
  28. SetMovePosition03(GetX - length, rand(height - ud, height + ud), weight, velocity);
  29. }
  30. } else {
  31. if(GetX + length >= GetClipMaxX) {
  32. SetMovePosition03(GetX - length, rand(height - ud, height + ud), weight, velocity);
  33. } else {
  34. SetMovePosition03(GetX + length, rand(height - ud, height + ud), weight, velocity);
  35. }
  36. }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment