Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- task attack1 {
- let a = 0;
- let b = 0;
- loop {
- loop(75) {
- ascent(i in 0..5) { ascent(j in 0..2) {
- CreateShotA(0, GetX, GetY, 15);
- SetShotDataA(0, 0, 5, a*(j*2-1)+i*360/5+b, 2*(j*2-1), -1/10, -3, RED21);
- SetShotDataA(0, 90, -3, NULL, 1*(j*2-1), 1/5, 7, YELLOW21);
- SetShotDataA(0, 150, 7, NULL, -3*(j*2-1), -1/5, 3/2, BLUE21);
- ascent(k in 0..4) {
- SetShotDataA(0, 240+k*60, 3/2, NULL, 3/4*(j*2-1), 0, 0, GREEN21);
- SetShotDataA(0, 270+k*60, 3/2, NULL, 0, 0, 0, GREEN21);
- }
- SetShotDataA(0, 270+3*60+1, 3/2, NULL, 0, 0, 0, PURPLE21);
- FireShot(0);
- } }
- wait(3); a+=7; a%=360; b+=1; b%=360;
- }
- ExMove_(rand(30, 60), GetCenterY-50, 7, 11, 30); wait(75);
- }
- }
- function ExMove_(length, height, weight, velocity, ud) {
- if(GetPlayerX < GetX) {
- if(GetX - length <= GetClipMinX) {
- SetMovePosition03(GetX + length, rand(height - ud, height + ud), weight, velocity);
- } else {
- SetMovePosition03(GetX - length, rand(height - ud, height + ud), weight, velocity);
- }
- } else {
- if(GetX + length >= GetClipMaxX) {
- SetMovePosition03(GetX - length, rand(height - ud, height + ud), weight, velocity);
- } else {
- SetMovePosition03(GetX + length, rand(height - ud, height + ud), weight, velocity);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment