The Adventures of Kaby
@Stage\n\nwhen I receive [trat v]\nswitch backdrop to (backdrop2 v)\n\nwhen I receive [dhsfgjkdgh v]\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [fallen v]\nswitch backdrop to (backdrop3 v)\n\nwhen flag clicked\nswitch backdrop to (backdrop4 v)\n\nwhen flag clicked\nbroadcast (Start v)\nbroadcast (Setup v)\nset [boss health v] to [3]\nset [lives v] to [3]\nhide variable [lives v]\nhide variable [boss health v]\n\n@Ground\n\nwhen I receive [startbegin v]\nshow\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\n\nwhen flag clicked\nhide\n\nwhen I receive [ttrtttr v]\nnext costume\n\nwhen I receive [fallen v]\nstop all sounds\nswitch costume to (costume16 v)\n\nwhen I receive [crackground v]\nstop all sounds\nstart sound [Ice Cracking Sound effect.mp3 v]\nswitch costume to (costume14 v)\nwait (1) seconds\nswitch costume to (costume15 v)\n\nwhen I receive [boss2 v]\nswitch costume to (costume11 v)\n\nwhen I receive [boss2beaten v]\nnext costume\nbroadcast (move v)\n\nwhen I receive [shake v]\nstart sound [Earth Rumble Sound Effect.mp3 v]\nwait (2) seconds\nbroadcast (crackground v)\n\nwhen I receive [begin v]\nswitch costume to (costume2 v)\nwait until <(Next stage) = [1]>\nswitch costume to (costume3 v)\nwait until <(Next stage) = [2]>\nswitch costume to (costume4 v)\nwait until <(Next stage) = [3]>\nswitch costume to (costume5 v)\nwait until <(Next stage) = [4]>\nnext costume\nwait until <(Next stage) = [5]>\nswitch costume to (costume7 v)\nwait until <(Next stage) = [6]>\nnext costume\nwait until <(Next stage) = [7]>\nnext costume\nwait until <(Next stage) = [8]>\nnext costume\nwait until <(Next stage) = [9]>\nnext costume\n\n@Sprite1\n\ndefine Jump Control\nif <<key (space v) pressed?> or <key (up arrow v) pressed?>> then\n    change y by (-1)\n    if <<touching (ground2 v)?> or <touching (ground v)?>> then\n        set [fallspeed v] to (TakeOffSpeed)\n    end\n    change y by (1)\nend\n\nwhen I receive [gameover v]\nstop [other scripts in sprite v]\n\nwhen I receive [begin v]\nset [next stage v] to [0]\nbroadcast (kk v)\ngo to x: (-200) y: (-58)\nforever\n    if <touching (sprite4 v)?> then\n        go to x: (-200) y: (-58)\n        change [next stage v] by (1)\n    end\n    if <touching (ground3 v)?> then\n        change x by (-10)\n    end\n    if <touching (sprite3 v)?> then\n        go to x: (-200) y: (-58)\n    end\n    if <touching (sprite9 v)?> then\n        go to x: (-200) y: (-58)\n    end\n    if <touching (sprite10 v)?> then\n        go to x: (-200) y: (-58)\n    end\n    if <touching (sprite11 v)?> then\n        go to x: (-200) y: (-58)\n    end\n    if <touching (sprite12 v)?> then\n        go to x: (-200) y: (-58)\n    end\n    if <touching (sprite23 v)?> then\n        broadcast (fallen v)\n        stop [other scripts in sprite v]\n        go to x: (-23) y: (-89)\n    end\n    if <touching (sprite8 v)?> then\n        go to x: (-200) y: (-58)\n    end\n    if <touching (sprite24 v)?> then\n        go to x: (-200) y: (-58)\n    end\nend\n\nwhen I receive [fire ball v]\npoint towards (ghost2 v)\nglide (1) secs to x: (83) y: (-42)\ngo to x: (-211) y: (-91)\n\nwhen I receive [setup v]\nset [ghost v] effect to (100)\n\nwhen I receive [start v]\nset [runspeed v] to [5]\nset [gravity v] to [-1]\nset [fallspeed v] to [0]\nset [takeoffspeed v] to [12]\n\nwhen I receive [startbegin v]\nforever\n    if <<(Boss Health) = [0]> or <(Boss Health) < [0]>> then\n        broadcast (cvbvc v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [move v]\ngo to x: (-200) y: (-58)\n\nwhen I receive [boss2 v]\nforever\n    if <<(Boss Health) = [0]> or <(Boss Health) < [0]>> then\n        broadcast (cvbvc v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [boss2beaten v]\ngo to x: (-211) y: (-91)\n\nwhen I receive [boss2beaten v]\ngo to x: (-200) y: (-58)\n\nwhen I receive [ttrtttr v]\nset [ghgjhgdjdfhjghd v] to [2]\n\nwhen I receive [middle v]\ngo to x: (0) y: (-100)\nforever\n    Run Controls\n    Jump Control\n    if <(ghgjhgdjdfhjghd) = [2]> then\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nhide\ngo to x: (-211) y: (-91)\n\nwhen I receive [startbegin v]\nshow\ngo to x: (-211) y: (-91)\nforever\n    Simulate Gravity\nend\n\nwhen flag clicked\nset [ghgjhgdjdfhjghd v] to [0]\n\ndefine Simulate Gravity\nchange y by (FallSpeed)\nif <<touching (ground2 v)?> or <touching (ground v)?>> then\n    if <(FallSpeed) < [0]> then\n        set [reversestep v] to [1]\n    else\n        set [reversestep v] to [-1]\n    end\n    repeat until <not <<touching (ground2 v)?> or <touching (ground v)?>>>\n        change y by (ReverseStep)\n    end\n    set [fallspeed v] to [0]\nelse\n    change [fallspeed v] by (Gravity)\nend\n\ndefine Run Controls\nif <key (right arrow v) pressed?> then\n    change x by (RunSpeed)\n    if <<touching (ground2 v)?> or <touching (ground v)?>> then\n        change x by ((0) - (RunSpeed))\n    end\nend\nif <key (left arrow v) pressed?> then\n    change x by ((0) - (RunSpeed))\n    if <<touching (ground2 v)?> or <touching (ground v)?>> then\n        change x by (RunSpeed)\n    end\nend\n\n@Abby\n\nwhen I receive [wait v]\nhide\n\nwhen I receive [fire ball v]\nwait until <(ggg) = [1]>\nhide\nwait (1) seconds\nshow\n\nwhen I receive [boss1 v]\nwait until <(ggg) = [1]>\nhide\nwait (6) seconds\nshow\n\nwhen I receive [continue v]\nwait until <(ggg) = [1]>\nshow\n\nwhen I receive [show v]\nshow\n\nwhen flag clicked\nset [rrr v] to [0]\nset [kll v] to [0]\nset [ggg v] to [0]\nset [hhh v] to [0]\n\nwhen I receive [startbegin v]\nhide\ngo to (sprite1 v)\nswitch costume to (idle v)\nset [walking v] to [1]\nset size to (150) %\nwait until <(ggg) = [1]>\nshow\nforever\n    set rotation style [left-right v]\n    if <key (left arrow v) pressed?> then\n        point in direction (90)\n        switch costume to (Walking)\n        change [walking v] by (1)\n    end\n    if <<key (space v) pressed?> or <key (up arrow v) pressed?>> then\n        switch costume to (jump v)\n    end\n    if <key (right arrow v) pressed?> then\n        point in direction (-90)\n        switch costume to (Walking)\n        change [walking v] by (1)\n    end\n    if <<(Walking) = [19]> or <(Walking) > [19]>> then\n        set [walking v] to [1]\n    end\n    if <<touching (ground v)?> and <not <<key (left arrow v) pressed?> or <key (right arrow v) pressed?>>>> then\n        switch costume to (idle v)\n    end\n    if <<(Lives) = [0]> or <(Lives) < [0]>> then\n        broadcast (GameOver v)\n        hide\n    end\n    if <(ghgjhgdjdfhjghd) = [2]> then\n        switch costume to (idle v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    go to (sprite1 v)\nend\n\nwhen I receive [go v]\nhide\n\n@Sprite2\n\nwhen I receive [yellow v]\nswitch costume to (costume4 v)\nwait (3) seconds\nbroadcast (egg v)\nswitch costume to (costume8 v)\nwait (3) seconds\nbroadcast (break v)\nnext costume\nwait (3) seconds\nnext costume\nwait (3) seconds\nbroadcast (middle v)\nnext costume\nwait (3) seconds\nnext costume\nwait (3) seconds\nnext costume\nwait (3) seconds\nnext costume\nwait (3) seconds\nbroadcast (name v)\nnext costume\nwait (3) seconds\nnext costume\nwait (3) seconds\nbroadcast (begin v)\nforever\n    play sound [Upbeat Ukulele Background Music - That Positive Feeling by Alumo.mp3 v] until done\n    if <(ghgjhgdjdfhjghd) = [2]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [pink v]\nswitch costume to (costume5 v)\nwait (3) seconds\nbroadcast (egg v)\nswitch costume to (costume8 v)\nwait (3) seconds\nbroadcast (break v)\nnext costume\nwait (3) seconds\nnext costume\nwait (3) seconds\nbroadcast (middle v)\nnext costume\nwait (3) seconds\nnext costume\nwait (3) seconds\nnext costume\nwait (3) seconds\nnext costume\nwait (3) seconds\nbroadcast (name v)\nnext costume\nwait (3) seconds\nnext costume\nwait (3) seconds\nbroadcast (begin v)\nforever\n    play sound [Upbeat Ukulele Background Music - That Positive Feeling by Alumo.mp3 v] until done\n    if <(ghgjhgdjdfhjghd) = [2]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [kk v]\nnext costume\nwait until <(Next stage) = [1]>\nnext costume\nwait until <(Next stage) = [2]>\nnext costume\nwait until <(Next stage) = [3]>\nnext costume\nwait until <(Next stage) = [4]>\nnext costume\nwait until <(Next stage) = [5]>\nnext costume\nwait until <(Next stage) = [6]>\nnext costume\nwait until <(Next stage) = [7]>\nnext costume\nwait until <(Next stage) = [8]>\nnext costume\nwait until <(Next stage) = [9]>\nnext costume\nwait until <(Next stage) = [10]>\nnext costume\nbroadcast (sfdghafd v)\nwait (3) seconds\nnext costume\nbroadcast (boss2 v)\n\nwhen flag clicked\nhide\n\nwhen I receive [startbegin v]\nshow\ngo to [front v] layer\ngo to x: (0) y: (20)\nswitch costume to (costume1 v)\nwait (3) seconds\nnext costume\nwait (3) seconds\nbroadcast (k v)\nnext costume\n\nwhen I receive [blue v]\nswitch costume to (costume6 v)\nwait (3) seconds\nbroadcast (egg v)\nswitch costume to (costume8 v)\nwait (3) seconds\nbroadcast (break v)\nnext costume\nwait (3) seconds\nnext costume\nwait (3) seconds\nbroadcast (middle v)\nnext costume\nwait (3) seconds\nnext costume\nwait (3) seconds\nnext costume\nwait (3) seconds\nnext costume\nwait (3) seconds\nbroadcast (name v)\nnext costume\nwait (3) seconds\nnext costume\nwait (3) seconds\nbroadcast (begin v)\nforever\n    play sound [Upbeat Ukulele Background Music - That Positive Feeling by Alumo.mp3 v] until done\n    if <(ghgjhgdjdfhjghd) = [2]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [boss2beaten v]\nhide variable [boss health v]\nhide variable [lives v]\nnext costume\nwait (3) seconds\nset [ghgjhgdjdfhjghd v] to [2]\nnext costume\nbroadcast (ttrtttr v)\nwait (3) seconds\nnext costume\nbroadcast (shake v)\n\nwhen I receive [fallen v]\nforever\n    set volume to (1) %\n    play sound [cave v] until done\nend\n\nwhen I receive [fallen v]\nrepeat until <(ghgjhgdjdfhjghd) = [0]>\n    next costume\n    wait (3) seconds\n    next costume\n    wait (3) seconds\n    set [ghgjhgdjdfhjghd v] to [0]\nend\nbroadcast (go v)\n\nwhen I receive [go v]\nstop [other scripts in sprite v]\nforever\n    set volume to (1) %\n    play sound [Upbeat Ukulele Background Music - That Positive Feeling by Alumo.mp3 v] until done\nend\n\n@Button2\n\nwhen I receive [k v]\nshow\nset [w v] to [1]\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (200) %\n        if <(w) = [1]> then\n            start sound [Untitled7 v]\n            change [w v] by (1)\n        end\n    else\n        set size to (190) %\n        set [w v] to [1]\n    end\nend\n\nwhen this sprite clicked\nbroadcast (Pink v)\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [blue v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [yellow v]\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\nhide\n\nwhen I receive [startbegin v]\ngo to x: (-156) y: (-11)\nhide\n\n@Button3\n\nwhen I receive [k v]\nshow\nset [g v] to [1]\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (200) %\n        if <(g) = [1]> then\n            start sound [Untitled7 v]\n            change [g v] by (1)\n        end\n    else\n        set size to (190) %\n        set [g v] to [1]\n    end\nend\n\nwhen this sprite clicked\nbroadcast (Blue v)\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [pink v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [yellow v]\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\nhide\n\nwhen I receive [startbegin v]\ngo to x: (1) y: (-11)\nhide\n\n@Button4\n\nwhen I receive [k v]\nshow\nset [l v] to [1]\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (200) %\n        if <(l) = [1]> then\n            start sound [Untitled7 v]\n            change [l v] by (1)\n        end\n    else\n        set size to (190) %\n        set [l v] to [1]\n    end\nend\n\nwhen this sprite clicked\nbroadcast (Yellow v)\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [blue v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [pink v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [startbegin v]\ngo to x: (156) y: (-11)\nhide\n\nwhen flag clicked\nhide\n\n@Ball-Soccer\n\nwhen I receive [egg v]\nshow\n\nwhen I receive [pink v]\nswitch costume to (ball-soccer2 v)\nwait (6) seconds\nswitch costume to (ball-soccer6 v)\nstart sound [Egg cracking sound effect.mp3 v]\nwait (1) seconds\nswitch costume to (ball-soccer11 v)\nwait (1) seconds\nhide\nchange [ggg v] by (1)\nbroadcast (show v)\n\nwhen I receive [blue v]\nswitch costume to (ball-soccer3 v)\nwait (6) seconds\nswitch costume to (ball-soccer7 v)\nstart sound [Egg cracking sound effect.mp3 v]\nwait (1) seconds\nswitch costume to (ball-soccer9 v)\nwait (1) seconds\nhide\nchange [hhh v] by (1)\n\nwhen flag clicked\nhide\n\nwhen I receive [startbegin v]\ngo to x: (-211) y: (-104)\nhide\n\nwhen I receive [yellow v]\nswitch costume to (ball-soccer13 v)\nwait (6) seconds\nswitch costume to (ball-soccer14 v)\nstart sound [Egg cracking sound effect.mp3 v]\nwait (1) seconds\nswitch costume to (ball-soccer15 v)\nwait (1) seconds\nhide\nchange [rrr v] by (1)\n\n@Ball-Soccer4\n\nwhen flag clicked\nhide\n\nwhen I receive [egg v]\nshow\n\nwhen I receive [break v]\nswitch costume to (ball-soccer5 v)\nwait (1) seconds\nswitch costume to (ball-soccer12 v)\nwait (1) seconds\nswitch costume to (dinosaur1-c v)\nset size to (40) %\n\nwhen I receive [middle v]\nhide\n\nwhen I receive [startbegin v]\nset size to (100) %\ngo to x: (89) y: (-104)\nhide\nswitch costume to (ball-soccer v)\n\n@Ball-Soccer3\n\nwhen I receive [egg v]\nshow\n\nwhen I receive [break v]\nswitch costume to (ball-soccer5 v)\nwait (1) seconds\nswitch costume to (ball-soccer12 v)\nwait (1) seconds\nswitch costume to (dinosaur1-c v)\nset size to (40) %\n\nwhen I receive [middle v]\nhide\n\nwhen I receive [startbegin v]\nset size to (100) %\ngo to x: (-11) y: (-104)\nhide\nswitch costume to (ball-soccer v)\n\nwhen flag clicked\nhide\n\n@Ball-Soccer5\n\nwhen I receive [egg v]\nshow\n\nwhen I receive [break v]\nswitch costume to (ball-soccer5 v)\nwait (1) seconds\nswitch costume to (ball-soccer12 v)\nwait (1) seconds\nswitch costume to (dinosaur1-c v)\nset size to (40) %\n\nwhen I receive [middle v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [startbegin v]\nset size to (100) %\ngo to x: (189) y: (-104)\nhide\nswitch costume to (ball-soccer v)\n\n@Ball-Soccer2\n\nwhen I receive [break v]\nswitch costume to (ball-soccer5 v)\nwait (1) seconds\nswitch costume to (ball-soccer12 v)\nwait (1) seconds\nswitch costume to (dinosaur1-c2 v)\nset size to (40) %\n\nwhen I receive [egg v]\nshow\n\nwhen I receive [middle v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [startbegin v]\nset size to (100) %\ngo to x: (-111) y: (-104)\nhide\nswitch costume to (ball-soccer v)\n\n@Abby4\n\nwhen I receive [boss1 v]\nwait until <(hhh) = [1]>\nhide\nwait (9) seconds\nshow\n\nwhen I receive [continue v]\nwait until <(hhh) = [1]>\nshow\n\nwhen I receive [wait v]\nhide\n\nwhen I receive [fire ball v]\nwait until <(hhh) = [1]>\nhide\nwait (1) seconds\nshow\n\nwhen flag clicked\nhide\n\nwhen I receive [startbegin v]\nhide\nwait until <(hhh) = [1]>\nshow\nswitch costume to (idle v)\nset [walking v] to [1]\nset size to (150) %\nforever\n    set rotation style [left-right v]\n    if <key (left arrow v) pressed?> then\n        point in direction (90)\n        switch costume to (Walking)\n        change [walking v] by (1)\n    end\n    if <<(Lives) = [0]> or <(Lives) < [0]>> then\n        broadcast (GameOver v)\n        hide\n    end\n    if <<key (space v) pressed?> or <key (up arrow v) pressed?>> then\n        switch costume to (jump v)\n    end\n    if <key (right arrow v) pressed?> then\n        point in direction (-90)\n        switch costume to (Walking)\n        change [walking v] by (1)\n    end\n    if <<(Walking) = [19]> or <(Walking) > [19]>> then\n        set [walking v] to [1]\n    end\n    if <<touching (ground v)?> and <not <<key (left arrow v) pressed?> or <key (right arrow v) pressed?>>>> then\n        switch costume to (idle v)\n    end\n    if <(ghgjhgdjdfhjghd) = [2]> then\n        switch costume to (idle v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [boss1 v]\nwait until <(hhh) = [1]>\nhide\nwait (3) seconds\nshow\n\nwhen flag clicked\nforever\n    go to (sprite1 v)\nend\n\nwhen I receive [go v]\nhide\n\n@Sprite3\n\nwhen I receive [begin v]\nshow\nset [ghost v] effect to (100)\n\nwhen flag clicked\nhide\n\nwhen I receive [startbegin v]\nshow\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [boss2beaten v]\nhide\n\n@Sprite4\n\nwhen I receive [begin v]\nshow\nset [ghost v] effect to (100)\n\nwhen I receive [boss2 v]\nhide\n\nwhen I receive [boss2beaten v]\nshow\nset [ghost v] effect to (100)\n\nwhen flag clicked\nhide\n\nwhen I receive [startbegin v]\nshow\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [boss2beaten v]\nhide\n\n@Ground2\n\nwhen I receive [startbegin v]\nset [next stage v] to [0]\ngo to x: (56) y: (-105)\nhide\nwait until <(Next stage) = [2]>\nshow\nrepeat until <(Next stage) = [3]>\n    glide (1) secs to x: (66) y: (-105)\n    glide (1) secs to x: (190) y: (-105)\nend\nhide\n\nwhen flag clicked\nhide\n\n@Ground3\n\nwhen this sprite clicked\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [startbegin v]\ngo to x: (0) y: (0)\nhide\nwait until <(Next stage) = [3]>\nswitch costume to (costume1 v)\nshow\nwait until <(Next stage) = [4]>\nswitch costume to (costume2 v)\nshow\nwait until <(Next stage) = [5]>\nswitch costume to (costume3 v)\nshow\n\n@Sprite5\n\nwhen this sprite clicked\nbroadcast (continue v)\nhide\n\nwhen I receive [startbegin v]\ngo to x: (0) y: (0)\nhide\nwait until <(Next stage) = [3]>\ngo to [front v] layer\nbroadcast (wait v)\nshow\n\nwhen flag clicked\nhide\n\n@Abby2\n\nwhen I receive [wait v]\nhide\n\nwhen I receive [boss1 v]\nwait until <(rrr) = [1]>\nhide\nwait (9) seconds\nshow\n\nwhen I receive [fire ball v]\nwait until <(rrr) = [1]>\nhide\nwait (1) seconds\nshow\n\nwhen I receive [continue v]\nwait until <(rrr) = [1]>\nshow\n\nwhen I receive [boss1 v]\nwait until <(rrr) = [1]>\nhide\nwait (3) seconds\nshow\n\nwhen flag clicked\nhide\n\nwhen I receive [startbegin v]\nhide\ngo to (sprite1 v)\nswitch costume to (idle v)\nwait until <(rrr) = [1]>\nshow\nset [walking v] to [1]\nset size to (150) %\nforever\n    set rotation style [left-right v]\n    if <key (left arrow v) pressed?> then\n        point in direction (90)\n        switch costume to (Walking)\n        change [walking v] by (1)\n    end\n    if <<(Lives) = [0]> or <(Lives) < [0]>> then\n        broadcast (GameOver v)\n        hide\n    end\n    if <<key (space v) pressed?> or <key (up arrow v) pressed?>> then\n        switch costume to (jump v)\n    end\n    if <key (right arrow v) pressed?> then\n        point in direction (-90)\n        switch costume to (Walking)\n        change [walking v] by (1)\n    end\n    if <<(Walking) = [19]> or <(Walking) > [19]>> then\n        set [walking v] to [1]\n    end\n    if <<touching (ground v)?> and <not <<key (left arrow v) pressed?> or <key (right arrow v) pressed?>>>> then\n        switch costume to (idle v)\n    end\n    if <(ghgjhgdjdfhjghd) = [2]> then\n        switch costume to (idle v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nset [rrr v] to [0]\nset [kll v] to [0]\nset [ggg v] to [0]\nset [hhh v] to [0]\n\nwhen flag clicked\nforever\n    go to (sprite1 v)\nend\n\nwhen I receive [go v]\nhide\n\n@Fire Ball\n\nwhen I receive [blue v]\nswitch costume to (boost2 v)\n\nwhen I receive [yellow v]\nswitch costume to (boost3 v)\n\nwhen I receive [fire ball v]\nshow\nwait (1) seconds\nhide\n\nwhen I receive [clone v]\nshow\nforever\n    set rotation style [left-right v]\n    go to (sprite1 v)\n    point in direction (-90)\n    if <touching (ghost2 v)?> then\n        hide\n        change [boss health v] by (-1)\n    end\nend\n\nwhen I receive [boss1beaten v]\nhide\n\nwhen flag clicked\nhide\nforever\n    if <touching (ghost2 v)?> then\n        change [boss health v] by (-1)\n        hide\n    end\nend\n\nwhen I receive [startbegin v]\nset size to (150) %\nhide\nforever\n    set rotation style [left-right v]\n    go to (sprite1 v)\n    point in direction (-90)\n    if <touching (ghost2 v)?> then\n        change [boss health v] by (-1)\n        hide\n    end\nend\n\nwhen I receive [pink v]\nswitch costume to (boost v)\n\n@Sprite6\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\n\nwhen I receive [gameover v]\nshow\ngo to [front v] layer\nstart sound [bell toll v]\nstop [all v]\n\nwhen I receive [ttrtttr v]\nstop [other scripts in sprite v]\n\n@Sprite7\n\nwhen flag clicked\nhide\n\nwhen I receive [startbegin v]\nshow\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\n\nwhen I receive [boss2beaten v]\nhide\n\nwhen I receive [boss2beaten v]\nhide\n\n@Sprite9\n\nwhen I receive [sfdghafd v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [startbegin v]\nhide\nwait until <(Next stage) = [9]>\nshow\n\n@Sprite10\n\nwhen I receive [sfdghafd v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [startbegin v]\nhide\nwait until <(Next stage) = [9]>\nshow\n\n@Sprite11\n\nwhen I receive [sfdghafd v]\nhide\n\nwhen I receive [startbegin v]\nhide\nwait until <(Next stage) = [9]>\nshow\n\nwhen flag clicked\nhide\n\n@Sprite12\n\nwhen I receive [sfdghafd v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [startbegin v]\nhide\nwait until <(Next stage) = [9]>\nshow\n\n@Parrot2\n\nwhen I receive [boss2 v]\nshow variable [boss health v]\nshow variable [lives v]\nset rotation style [left-right v]\ngo to [front v] layer\nforever\n    show\n    point in direction (90)\n    glide (3) secs to x: (199) y: (106)\n    start sound [squawk v]\n    point in direction (-90)\n    set [sdfg v] to [3]\n    broadcast (fall v)\n    wait until <(sdfg) = [1]>\n    glide (3) secs to x: (-125) y: (106)\n    start sound [squawk v]\n    point in direction (90)\n    broadcast (fall2 v)\n    wait until <(sdfg) = [2]>\nend\n\nwhen I receive [boss2beaten v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [fall2 v]\nbroadcast (fall v)\n\nwhen flag clicked\nhide\n\nwhen I receive [startbegin v]\nset [sdfg v] to [0]\nhide\ngo to x: (-125) y: (106)\nforever\n    next costume\n    wait (0.1) seconds\nend\n\nwhen flag clicked\nforever\n    set [x v] to (x position)\n    set [y v] to (y position)\nend\n\nwhen I receive [cvbvc v]\nstart sound [squawk v]\nglide (1) secs to x: (199) y: (106)\nhide\nbroadcast (boss2beaten v)\n\n@Sprite13\n\ndefine Simulate Gravity\nchange y by (FallSpeed)\nif <<touching (ground2 v)?> or <touching (ground v)?>> then\n    if <(FallSpeed) < [0]> then\n        set [reversestep v] to [1]\n    else\n        set [reversestep v] to [-1]\n    end\n    repeat until <not <<touching (ground2 v)?> or <touching (ground v)?>>>\n        change y by (ReverseStep)\n    end\n    set [fallspeed v] to [0]\nelse\n    change [fallspeed v] by (Gravity)\nend\n\nwhen I receive [start v]\nset [gravity v] to [-1]\nset [fallspeed v] to [0]\n\nwhen I receive [fall v]\nset [gravity v] to [-1]\nshow\nforever\n    Simulate Gravity\n    if <touching (sprite18 v)?> then\n        go to x: (pick random (87) to (20)) y: (150)\n        hide\n        set [gravity v] to [0]\n    end\n    if <touching (sprite1 v)?> then\n        change [lives v] by (-1)\n        hide\n        go to x: (pick random (87) to (20)) y: (150)\n        set [gravity v] to [0]\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [startbegin v]\ngo to x: (pick random (87) to (20)) y: (150)\n\n@Sprite14\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nset [gravity v] to [-1]\nset [fallspeed v] to [0]\n\nwhen I receive [fall v]\nset [gravity v] to [-1]\nshow\nforever\n    Simulate Gravity\n    if <touching (sprite18 v)?> then\n        go to x: (pick random (-87) to (-20)) y: (150)\n        hide\n        set [gravity v] to [0]\n    end\n    if <touching (sprite1 v)?> then\n        change [lives v] by (-1)\n        hide\n        go to x: (pick random (-87) to (-20)) y: (150)\n        set [gravity v] to [0]\n    end\nend\n\ndefine Simulate Gravity\nchange y by (FallSpeed)\nif <<touching (ground2 v)?> or <touching (ground v)?>> then\n    if <(FallSpeed) < [0]> then\n        set [reversestep v] to [1]\n    else\n        set [reversestep v] to [-1]\n    end\n    repeat until <not <<touching (ground2 v)?> or <touching (ground v)?>>>\n        change y by (ReverseStep)\n    end\n    set [fallspeed v] to [0]\nelse\n    change [fallspeed v] by (Gravity)\nend\n\nwhen I receive [startbegin v]\ngo to x: (pick random (-87) to (-20)) y: (150)\n\n@Sprite16\n\nwhen flag clicked\nhide\n\ndefine Simulate Gravity\nchange y by (FallSpeed)\nif <<touching (ground2 v)?> or <touching (ground v)?>> then\n    if <(FallSpeed) < [0]> then\n        set [reversestep v] to [1]\n    else\n        set [reversestep v] to [-1]\n    end\n    repeat until <not <<touching (ground2 v)?> or <touching (ground v)?>>>\n        change y by (ReverseStep)\n    end\n    set [fallspeed v] to [0]\nelse\n    change [fallspeed v] by (Gravity)\nend\n\nwhen I receive [start v]\nset [gravity v] to [-1]\nset [fallspeed v] to [0]\n\nwhen I receive [fall v]\nset [gravity v] to [-1]\nshow\nforever\n    Simulate Gravity\n    if <touching (sprite18 v)?> then\n        go to x: (pick random (213) to (131)) y: (150)\n        hide\n        set [gravity v] to [0]\n    end\n    if <touching (sprite1 v)?> then\n        change [lives v] by (-1)\n        hide\n        go to x: (pick random (213) to (131)) y: (150)\n        set [gravity v] to [0]\n    end\nend\n\nwhen I receive [startbegin v]\ngo to x: (pick random (213) to (131)) y: (150)\n\n@Sprite17\n\nwhen I receive [start v]\nset [gravity v] to [-1]\nset [fallspeed v] to [0]\n\nwhen I receive [fall v]\nset [gravity v] to [-1]\nshow\nforever\n    Simulate Gravity\n    if <touching (sprite18 v)?> then\n        go to x: (pick random (-213) to (-131)) y: (150)\n        hide\n        set [gravity v] to [0]\n    end\n    if <touching (sprite1 v)?> then\n        change [lives v] by (-1)\n        hide\n        go to x: (pick random (-213) to (-131)) y: (150)\n        set [gravity v] to [0]\n    end\nend\n\nwhen flag clicked\nhide\n\ndefine Simulate Gravity\nchange y by (FallSpeed)\nif <<touching (ground2 v)?> or <touching (ground v)?>> then\n    if <(FallSpeed) < [0]> then\n        set [reversestep v] to [1]\n    else\n        set [reversestep v] to [-1]\n    end\n    repeat until <not <<touching (ground2 v)?> or <touching (ground v)?>>>\n        change y by (ReverseStep)\n    end\n    set [fallspeed v] to [0]\nelse\n    change [fallspeed v] by (Gravity)\nend\n\nwhen I receive [startbegin v]\ngo to x: (pick random (-213) to (-131)) y: (150)\n\n@Sprite8\n\nwhen I receive [sfdghafd v]\nhide\n\nwhen I receive [startbegin v]\nhide\nwait until <(Next stage) = [9]>\nshow\n\nwhen flag clicked\nhide\n\n@Sprite18\n\nwhen I receive [startbegin v]\nshow\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\n\nwhen flag clicked\nhide\n\nwhen I receive [boss2beaten v]\nhide\n\n@Sprite15\n\nwhen flag clicked\nhide\n\nwhen I receive [fall2 v]\nset [gravity v] to [-1]\nshow\nforever\n    Simulate Gravity\n    if <touching (sprite18 v)?> then\n        go to x: (pick random (218) to (-146)) y: (150)\n        hide\n        set [gravity v] to [0]\n    end\n    if <touching (sprite1 v)?> then\n        glide (1) secs to x: (x) y: (y)\n        change [boss health v] by (-1)\n        hide\n        go to x: (pick random (218) to (-146)) y: (150)\n    end\nend\n\ndefine Simulate Gravity\nchange y by (FallSpeed)\nif <<touching (ground2 v)?> or <touching (ground v)?>> then\n    if <(FallSpeed) < [0]> then\n        set [reversestep v] to [1]\n    else\n        set [reversestep v] to [-1]\n    end\n    repeat until <not <<touching (ground2 v)?> or <touching (ground v)?>>>\n        change y by (ReverseStep)\n    end\n    set [fallspeed v] to [0]\nelse\n    change [fallspeed v] by (Gravity)\nend\n\nwhen I receive [startbegin v]\ngo to x: (pick random (218) to (-146)) y: (150)\n\nwhen I receive [start v]\nset [gravity v] to [-1]\nset [fallspeed v] to [0]\n\n@Baseball\n\nwhen flag clicked\nhide\n\nwhen I receive [sdfg1 v]\nset [sdfg v] to [1]\n\nwhen I receive [fall v]\nwait (1) seconds\nbroadcast (sdfg1 v)\n\n@Sprite20\n\nwhen I receive [rewtw v]\nhide\n\nwhen I receive [dhsfgjkdgh v]\ngo to x: (0) y: (75)\nshow\nset size to (100) %\nset [c v] to [0]\nforever\n    change [c v] by (8)\n    change size by ([cos v] of (c) )\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    set volume to (1) %\n    play sound [Upbeat and Happy Background Music For Videos.mp3 v] until done\nend\n\nwhen I receive [begin v]\nstop all sounds\nstop [other scripts in sprite v]\n\n@Sprite21\n\nwhen I receive [dhsfgjkdgh v]\ngo to x: (0) y: (-150)\nhide\nwait (1) seconds\nshow\nforever\n    if <key (space v) pressed?> then\n        broadcast (rewtw v)\n        hide\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [rewtw v]\nstop [other scripts in sprite v]\n\n@Sprite22\n\nwhen flag clicked\nhide\nforever\n    go to [front v] layer\nend\n\nwhen I receive [starttttt v]\nbroadcast (trat v)\nshow\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\nwait (0.1) seconds\nset [ghost v] effect to (90)\nwait (0.1) seconds\nset [ghost v] effect to (80)\nwait (0.1) seconds\nset [ghost v] effect to (70)\nwait (0.1) seconds\nset [ghost v] effect to (60)\nwait (0.1) seconds\nset [ghost v] effect to (50)\nwait (0.1) seconds\nset [ghost v] effect to (40)\nwait (0.1) seconds\nset [ghost v] effect to (30)\nwait (0.1) seconds\nset [ghost v] effect to (20)\nwait (0.1) seconds\nset [ghost v] effect to (10)\nwait (0.1) seconds\nset [ghost v] effect to (0)\nwait (3) seconds\nset [ghost v] effect to (10)\nwait (0.1) seconds\nset [ghost v] effect to (20)\nwait (0.1) seconds\nset [ghost v] effect to (30)\nwait (0.1) seconds\nset [ghost v] effect to (40)\nwait (0.1) seconds\nset [ghost v] effect to (50)\nwait (0.1) seconds\nset [ghost v] effect to (60)\nwait (0.1) seconds\nset [ghost v] effect to (70)\nwait (0.1) seconds\nset [ghost v] effect to (80)\nwait (0.1) seconds\nset [ghost v] effect to (90)\nwait (0.1) seconds\nset [ghost v] effect to (100)\nhide\nbroadcast (dhsfgjkdgh v)\n\n@Baseball2\n\nwhen flag clicked\nhide\n\nwhen I receive [fall v]\nif <(sdfg) = [1]> then\n    set [sdfg v] to [2]\nend\n\n@Sprite19\n\nwhen I receive [rewtw v]\nbroadcast (startbegin v)\nhide\n\nwhen I receive [dhsfgjkdgh v]\nset size to (90) %\ngo to x: (0) y: (-60)\nshow\npoint in direction (90)\nset [d v] to [0]\nforever\n    change [d v] by (8)\n    turn right ([cos v] of (d) ) degrees\nend\n\nwhen flag clicked\nhide\n\n@Sprite23\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [boss2beaten v]\nshow\nset [ghost v] effect to (100)\n\n@Sprite24\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\n\nwhen I receive [boss2beaten v]\nshow\nset [ghost v] effect to (100)\n\nwhen I receive [fallen v]\nhide\n\n@Sprite25\n\nwhen I receive [go v]\nset [ghost v] effect to (0)\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@andre2\n\nwhen flag clicked\nset volume to (100) %\nset [dis v] to [0]\nset [costume v] to [0]\ngo to x: (0) y: (0)\npoint in direction (90)\nswitch costume to (andre v)\nset size to (1) %\nhide\nwait (0.1) seconds\nshow\nrepeat (22)\n    change size by (3)\n    turn left (16.36) degrees\nend\nset [dis v] to [1]\nwait (0.25) seconds\nrepeat (22)\n    change size by (-5)\n    turn left (-16.36) degrees\nend\nhide\nwait (0.25) seconds\nbroadcast (starttttt v)\n\n
Part 2 is officially out to play! https://scratch.mit.edu/projects/209120155/\n\nPress the Right and Left arrow keys to move.\n\nPress Space or Up Arrow to jump.\n\nThe original project was made in my ALT account called 0407299.