Atari Adventures - A Retro Platformer by KettleClog
@Stage\n\n@Music\n\nwhen I receive [player start v]\nif < ([costume name v] of [ground v]) contains [1-]?> then\n    forever\n        set volume to (40) %\n        play sound [Level 1 v] until done\n    end\nend\nif < ([costume name v] of [ground v]) contains [3-]?> then\n    forever\n        set volume to (45) %\n        play sound [Level 2 v] until done\n    end\nend\nif < ([costume name v] of [ground v]) contains [4-]?> then\n    forever\n        set volume to (45) %\n        play sound [Level 3 v] until done\n    end\nend\n\nwhen I receive [gate v]\nrepeat (50)\n    change volume by (-2)\nend\nstop [other scripts in sprite v]\nwait (0.1) seconds\nset volume to (100) %\n\nwhen I receive [game over v]\nrepeat (50)\n    change volume by (-2)\nend\nstop [other scripts in sprite v]\n\n@Player Collsion\n\nwhen I receive [player start v]\nset [motion v] to [Y]\nset [spring v] to [N]\nset [ghost v] effect to (100)\ngo to [back v] layer\nswitch costume to (costume1 v)\ngo to x: (-132) y: (-116)\nset [gravity v] to [-2.5]\nset [jump force v] to [22]\nset size to (600) %\nforever\n    if <not <touching (gate v)?>> then\n        if <(Motion) = [Y]> then\n            if <key (d v) pressed?> then\n                set [speed x v] to [5]\n            end\n            if <key (a v) pressed?> then\n                set [speed x v] to [-5]\n            end\n            change [speed y v] by (gravity)\n            Move (([abs v] of (speed x) ) + ([abs v] of (speed y) ))\n        end\n    end\nend\n\ndefine Move (steps)\nchange [falling v] by (1)\nrepeat (steps)\n    if <(Motion) = [Y]> then\n        if <<key (a v) pressed?> or <key (d v) pressed?>> then\n            set [last value v] to (x position)\n            change x by ((speed x) / (steps))\n            if <<touching (ground v)?> or <touching (lift v)?>> then\n                set x to (last value)\n                set [speed x v] to [0]\n            end\n        end\n        set [last value v] to (y position)\n        change y by ((speed y) / (steps))\n        if <<touching (ground v)?> or <touching (lift v)?>> then\n            set [ground or air v] to [G]\n            set y to (last value)\n            set [falling v] to [0]\n            set [speed y v] to [0]\n        end\n        if <(speed y) < [0]> then\n            if <touching (jump through platform v)?> then\n                set [ground or air v] to [G]\n                set y to (last value)\n                set [falling v] to [0]\n                set [speed y v] to [0]\n            end\n        end\n    end\nend\n\nwhen I receive [player start v]\nforever\n    if <touching (_edge_ v)?> then\n        if <[239] < (x position)> then\n            if <not <([costume name v] of [ground v]) = [1-21]>> then\n                broadcast (Right v)\n                set x to (-238)\n                change y by (6)\n                wait (0.3) seconds\n            end\n        end\n        if <[180] < (y position)> then\n            broadcast (Up v)\n            set y to (-179)\n        end\n        if <(y position) < [-180]> then\n            broadcast (Down v)\n            set y to (178)\n        end\n    end\nend\n\nif <(x position) < [-239]> then\n    broadcast (Left v)\n    set x to (238)\n    change y by (6)\n    wait (0.3) seconds\nend\n\nwhen I receive [player start v]\nforever\n    if <(speed y) < [0]> then\n        if <touching (spring v)?> then\n            start sound [jump v]\n            Spring Align\n            if <<key (space v) pressed?> or <key (w v) pressed?>> then\n                set [speed y v] to [34]\n            else\n                repeat (2)\n                    set [speed y v] to [15]\n                end\n            end\n        end\n    end\n    if <(speed y) < [-20]> then\n        set [speed y v] to [-20]\n    end\nend\n\nwhen I receive [player start v]\nforever\n    if <(Ground or Air) = [A]> then\n        if <(speed y) > [0]> then\n            if <(Spring) = [N]> then\n                if <not <<key (space v) pressed?> or <key (w v) pressed?>>> then\n                    set [ground or air v] to [A]\n                    set [speed y v] to [6]\n                    wait until <(Ground or Air) = [G]>\n                end\n            end\n        end\n    end\nend\n\n\n\nwhen I receive [player start v]\nforever\n    if <not <<key (space v) pressed?> or <key (w v) pressed?>>> then\n        wait until <<key (space v) pressed?> or <key (w v) pressed?>>\n        if <(Ground or Air) = [G]> then\n            set [speed y v] to (jump force)\n        end\n    end\nend\n\nwhen flag clicked\nset [enemy i-frame v] to [0]\ngo to x: (-132) y: (-116)\nset [spring v] to [N]\n\nwhen I receive [player start v]\ngo to x: (-130) y: (-115)\nforever\n    if <touching (spring v)?> then\n        set [spring v] to [Y]\n        wait until <(Ground or Air) = [G]>\n        set [spring v] to [N]\n    end\nend\n\ndefine Spring Align\nrepeat until <not <touching (spring v)?>>\n    change y by (1)\nend\nchange y by (-1)\n\nset [pitch v] effect to (pick random (-6) to (6))\nstart sound [jump_01 v]\n\nwhen I receive [player start v]\nshow\nset [ghost v] effect to (100)\nforever\n    if <touching (gate v)?> then\n        glide (0.4) secs to x: (0) y: (-130)\n        set [speed y v] to [0]\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [level start v]\nset [speed y v] to [0]\nset [speed x v] to [0]\ngo to x: (-130) y: (-118)\n\nwhen I receive [game over v]\nstop [other scripts in sprite v]\nwait (1) seconds\nhide\n\n@Player\n\nwhen flag clicked\nhide\nset [motion v] to [Y]\n\nwhen I receive [player start v]\nforever\n    point in direction ([direction v] of [gun v])\n    go to (player collsion v)\nend\n\nwhen I receive [player start v]\nshow\nset [motion v] to [Y]\nforever\n    if <(speed y) = [0]> then\n        if <(Motion) = [Y]> then\n            if <not <touching (gate v)?>> then\n                if <<key (d v) pressed?> or <key (a v) pressed?>> then\n                    change [player frame v] by (0.4)\n                    if <(Ground or Air) = [G]> then\n                        switch costume to ((3) + (([floor v] of (player frame) ) mod (4)))\n                    end\n                else\n                    if <(Ground or Air) = [G]> then\n                        switch costume to (idle v)\n                    end\n                end\n            end\n        end\n    end\n    if <not <(speed y) = [0]>> then\n        switch costume to (walk2 v)\n    end\nend\n\nwhen I receive [player start v]\nforever\n    if <(Ground or Air) = [G]> then\n        Align Feet\n    end\nend\n\ndefine Align Feet\nif <(Ground or Air) = [G]> then\n    if <<(y position) > [-120]> and <[-110] > (y position)>> then\n        set y to (-114)\n    end\n    if <<(y position) > [-100]> and <[-85] > (y position)>> then\n        set y to (-90)\n    end\n    if <<(y position) > [-75]> and <[-60] > (y position)>> then\n        set y to (-66)\n    end\n    if <<(y position) > [-145]> and <[-130] > (y position)>> then\n        set y to (-138)\n    end\n    if <<(y position) > [40]> and <[60] > (y position)>> then\n        set y to (54)\n    end\n    if <<(y position) > [65]> and <[85] > (y position)>> then\n        set y to (78)\n    end\n    if <<(y position) > [90]> and <[110] > (y position)>> then\n        set y to (102)\n    end\n    if <<(y position) > [20]> and <[35] > (y position)>> then\n        set y to (30)\n    end\n    if <<(y position) > [-30]> and <[-15] > (y position)>> then\n        set y to (-18)\n    end\n    if <<(y position) > [-10]> and <[10] > (y position)>> then\n        set y to (6)\n    end\n    if <<(y position) > [-55]> and <[-35] > (y position)>> then\n        set y to (-42)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [player start v]\nclear graphic effects\nset [gun ghost v] to [0]\nforever\n    set [ghost v] effect to (Gun Ghost)\nend\n\nwhen I receive [hide v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [game over v]\nswitch costume to (death v)\nclear graphic effects\nstop [other scripts in sprite v]\nwait (1) seconds\nhide\nbroadcast (Player Explode v)\n\nwhen I receive [level start v]\nforever\n    if <(costume [name v]) = [Idle]> then\n        set [player costume v] to [D]\n    end\n    if <(costume [name v]) = [Walk1]> then\n        set [player costume v] to [D]\n    end\n    if <(costume [name v]) = [Walk3]> then\n        set [player costume v] to [U]\n    end\nend\n\nrepeat until <<(costume [name v]) = [Walk3]> or <(costume [name v]) = [Idle]>>\n\nrepeat until <<(costume [name v]) = [Walk1]> or <(costume [name v]) = [Idle]>>\n\nwhen flag clicked\nclear graphic effects\n\nwhen I receive [player hurt v]\nset [brightness v] effect to (100)\nrepeat (10)\n    change [brightness v] effect by (-10)\nend\n\nset x to ([backdrop # v] of [_stage_ v])\n\nwhen I receive [blob explode v]\n\n@Gun\n\nwhen I receive [player start v]\nforever\n    if <(Motion) = [Y]> then\n        if <(Ground or Air) = [G]> then\n            go to [front v] layer\n            point towards (mouse-pointer v)\n            set y to ([y position v] of [player v])\n            set x to ([x position v] of [player collsion v])\n            change y by (-3)\n        else\n            go to [front v] layer\n            point towards (mouse-pointer v)\n            go to (player collsion v)\n            change y by (2)\n        end\n    end\nend\n\nwhen I receive [hide v]\nstop [other scripts in sprite v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [player start v]\nshow\nforever\n    if <(direction) > [0]> then\n        if <(Player Costume) = [D]> then\n            switch costume to (right1 v)\n        end\n        if <(Player Costume) = [U]> then\n            switch costume to (right2 v)\n        end\n    end\n    if <[0] > (direction)> then\n        if <(Player Costume) = [D]> then\n            switch costume to (left1 v)\n        end\n        if <(Player Costume) = [U]> then\n            switch costume to (left2 v)\n        end\n    end\n    set [ghost v] effect to (Gun Ghost)\nend\n\ngo to [back v] layer\n\nwhen I receive [level start v]\ngo to x: (-130) y: (-117)\n\nwhen I receive [game over v]\nif <[0] > (x position)> then\n    set [gun direction v] to [4]\n    set [gun spin v] to [50]\nelse\n    set [gun direction v] to [-4]\n    set [gun spin v] to [-50]\nend\nclear graphic effects\nstop [other scripts in sprite v]\nrepeat (8)\n    change y by (10)\n    change x by (Gun direction)\n    turn right (Gun spin) degrees\nend\nrepeat (4)\n    change y by (5)\n    change x by (Gun direction)\n    turn right (Gun spin) degrees\nend\nrepeat (2)\n    change y by (2)\n    change x by (Gun direction)\n    turn right (Gun spin) degrees\nend\nrepeat (2)\n    change y by (1)\n    change x by (Gun direction)\n    turn right (Gun spin) degrees\nend\nrepeat (2)\n    change y by (-1)\n    change x by (Gun direction)\n    turn right (Gun spin) degrees\nend\nrepeat (2)\n    change y by (-2)\n    change x by (Gun direction)\n    turn right (Gun spin) degrees\nend\nrepeat (4)\n    change y by (-5)\n    change x by (Gun direction)\n    turn right (Gun spin) degrees\nend\nrepeat (8)\n    change y by (-10)\n    change x by (Gun direction)\n    turn right (Gun spin) degrees\nend\nrepeat until <touching (_edge_ v)?>\n    change y by (-10)\n    change x by (Gun direction)\n    turn right (Gun spin) degrees\nend\nhide\n\nwhen I receive [player hurt v]\nset [brightness v] effect to (100)\nrepeat (10)\n    change [brightness v] effect by (-10)\nend\n\nwhen I receive [blob explode v]\n\nwhen I receive [blob explode v]\n\nwhen I receive [level text v]\nhide\n\nhide\n\nwhen I receive [player start v]\ngo to x: (-130) y: (-117)\n\nwhen I receive [stop player v]\ngo to (player v)\n\nbroadcast (Game Over v)\n\n@BG\n\nwhen I receive [level start v]\nclear graphic effects\n\nwhen I receive [player died v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\ndelete this clone\n\nwhen I receive [hide v]\nstop [other scripts in sprite v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [level start v]\nswitch costume to (1-1 v)\nshow\ngo to [back v] layer\ngo to x: (0) y: (-12)\nforever\n    go to (ground v)\n    switch costume to ([costume name v] of [ground v])\n    go to [back v] layer\nend\n\nwhen I receive [right v]\n\nwhen I receive [left v]\n\nswitch costume to ((costume [number v]) - (1))\n\nnext costume\n\n@Ground\n\nwhen I receive [level start v]\nclear graphic effects\n\nwhen I receive [player died v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\nwait (0.1) seconds\nif < (costume [name v]) contains [1-]?> then\n    if <not <(costume [name v]) = [1-21]>> then\n        switch costume to (1-1 v)\n    end\n    if <(costume [name v]) = [1-21]> then\n        switch costume to (1-19 v)\n    end\nend\nif < (costume [name v]) contains [3-]?> then\n    if <not <(costume [name v]) = [3-24]>> then\n        switch costume to (3-1 v)\n    end\n    if <(costume [name v]) = [3-24]> then\n        switch costume to (3-22 v)\n    end\nend\nif < (costume [name v]) contains [4-]?> then\n    switch costume to (4-1 v)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [level start v]\nshow\ngo to [back v] layer\ngo to x: (0) y: (-12)\n\nwhen I receive [right v]\nif <not <<(costume [name v]) = [1-21]> or <(costume [name v]) = [3-24]>>> then\n    next costume\nend\n\nwhen I receive [left v]\nswitch costume to ((costume [number v]) - (1))\n\nwhen flag clicked\nswitch costume to (1-1 v)\nif <(username) = [KettleClog]> then\n    switch costume to (1-1 v)\nend\n\nswitch costume to (2-24 v)\n\nwhen I receive [up v]\nnext costume\n\nwhen I receive [down v]\nnext costume\n\nwhen I receive [level beat v]\nwait (1.5) seconds\nplay sound [Level Complete v] until done\nbroadcast (Hide v)\nhide\nchange [level v] by (1)\nset [motion v] to [N]\nwait (0.5) seconds\nnext costume\nbroadcast (Level Text v)\n\ndelete this clone\n\nwhen I start as a clone\nset size to (600) %\n\nwhen I receive [level start v]\nforever\n    if <(username) = [kettleClog]> then\n        if <key (1 v) pressed?> then\n            switch costume to (1-1 v)\n        end\n        if <key (2 v) pressed?> then\n            switch costume to (1-19 v)\n        end\n        if <key (3 v) pressed?> then\n            switch costume to (3-1 v)\n        end\n        if <key (4 v) pressed?> then\n            switch costume to (3-22 v)\n        end\n    end\nend\n\n@Bullet\n\nwhen I receive [level start v]\nclear graphic effects\n\nwhen I receive [player died v]\nstop [other scripts in sprite v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\ndelete this clone\n\nwhen flag clicked\nclear graphic effects\n\nwhen I start as a clone\nif <(direction) > [0]> then\n    switch costume to (costume1 v)\nend\nif <[0] > (direction)> then\n    switch costume to (costume2 v)\nend\ngo to [front v] layer\nstart sound [Fire Ball v]\nshow\nrepeat until <touching (bullet deleter v)?>\n    move (12) steps\nend\nmove (12) steps\ndelete this clone\n\nwhen flag clicked\n\nwhen I receive [right v]\nforever\n    delete this clone\nend\n\nwhen I receive [left v]\nforever\n    delete this clone\nend\n\nwhen I receive [delete bullet v]\nset size to (700) %\nif <<touching (blob v)?> or <<touching (spider v)?> or <<touching (chomper v)?> or <<touching (soldier v)?> or <<touching (space fly v)?> or <<touching (boss 1 v)?> or <<touching (shell head v)?> or <<touching (missile v)?> or <<touching (stomp-eye v)?> or <<touching (tank v)?> or <<touching (propellor v)?> or <<touching (boss 2 v)?> or >>>>>>>>>>>> then\n    start sound [enemy_gethit v]\n    set size to (600) %\n    clear graphic effects\n    switch costume to (costume1 v)\n    set [bullet x v] to (x position)\n    set [bullet y v] to (y position)\n    set x to (Enemy X)\n    set y to (Enemy Y)\n    set [ghost v] effect to (100)\n    switch costume to (costume3 v)\n    broadcast (Bullet Particle v)\n    broadcast (Enemy Flash v)\n    wait (0) seconds\n    delete this clone\nend\nset size to (600) %\n\nwhen I receive [down v]\nforever\n    delete this clone\nend\n\nwhen I receive [up v]\nforever\n    delete this clone\nend\n\nwhen I receive [player start v]\nset [bullet speed v] to [0.2]\nhide\nset rotation style [all around v]\nforever\n    if <not <(Player Health) = [0]>> then\n        if <mouse down?> then\n            if <(costume [name v]) = [Control]> then\n                if <(Motion) = [Y]> then\n                    create clone of (_myself_ v)\n                    wait (Bullet Speed) seconds\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [bullet ding v]\nif <touching (shell head v)?> then\n    start sound [coin_impact v]\n    delete this clone\nend\n\nwhen I receive [hide v]\ndelete this clone\n\nwhen I receive [player start v]\nswitch costume to (control v)\nforever\n    point towards (mouse-pointer v)\n    go to (gun v)\nend\n\nwhen I start as a clone\nforever\n\nif <touching (ground v)?> then\n    wait (0.02) seconds\n    set [bullet x v] to (x position)\n    set [bullet y v] to (y position)\n    broadcast (Bullet Particle v)\n    start sound [skating_end v]\n    delete this clone\nend\n\nwhen I start as a clone\nset size to (600) %\n\nwhen I receive [enlarge bullet v]\nset size to (600) %\nif <not <(costume [name v]) = [Control]>> then\n    set [ghost v] effect to (100)\n    if <(direction) > [0]> then\n        switch costume to (costume1.1 v)\n    end\n    if <[0] > (direction)> then\n        switch costume to (costume2.2 v)\n    end\n    wait (0.01) seconds\n    set [ghost v] effect to (0)\n    if <(direction) > [0]> then\n        switch costume to (costume1 v)\n    end\n    if <[0] > (direction)> then\n        switch costume to (costume2 v)\n    end\nend\n\nwhen I start as a clone\nclear graphic effects\n\n@Bullet Deleter\n\nwhen flag clicked\ngo to [back v] layer\nshow\nset [ghost v] effect to (100)\n\n@Blob\n\nwhen I receive [game over v]\ndelete this clone\n\nwhen I receive [level start v]\nclear graphic effects\n\nwhen flag clicked\nhide\n\nwhen I receive [level start v]\nforever\n    if <([costume name v] of [ground v]) = [1-2]> then\n        go to x: (100) y: (-117)\n        create clone of (_myself_ v)\n        go to x: (220) y: (-69)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [1-2]>>\n    end\n    if <([costume name v] of [ground v]) = [1-3]> then\n        go to x: (-16) y: (-93)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [1-3]>>\n    end\n    if <([costume name v] of [ground v]) = [1-4]> then\n        go to x: (40) y: (-141)\n        create clone of (_myself_ v)\n        go to x: (220) y: (-117)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [1-4]>>\n    end\n    if <([costume name v] of [ground v]) = [1-10]> then\n        go to x: (100) y: (-141)\n        create clone of (_myself_ v)\n        go to x: (0) y: (27)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [1-10]>>\n    end\n    if <([costume name v] of [ground v]) = [1-13]> then\n        go to x: (70) y: (27)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [1-13]>>\n    end\n    if <([costume name v] of [ground v]) = [1-16]> then\n        go to x: (100) y: (-117)\n        create clone of (_myself_ v)\n        go to x: (220) y: (-69)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [1-16]>>\n    end\n    if <([costume name v] of [ground v]) = [1-18]> then\n        go to x: (100) y: (-93)\n        create clone of (_myself_ v)\n        go to x: (-50) y: (-117)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [1-18]>>\n    end\nend\n\nwhen I start as a clone\nshow\nforever\n    repeat until <<touching (_edge_ v)?> or <touching (enemy stop v)?>>\n        if <not <(costume [number v]) > [2]>> then\n            change x by (-2)\n        end\n    end\n    if <not <(costume [number v]) > [2]>> then\n        change x by (2)\n    end\n    repeat until <<touching (_edge_ v)?> or <touching (enemy stop v)?>>\n        if <not <(costume [number v]) > [2]>> then\n            change x by (2)\n        end\n    end\n    if <not <(costume [number v]) > [2]>> then\n        change x by (-2)\n    end\nend\n\nwhen I receive [left v]\ndelete this clone\n\nwhen I receive [right v]\ndelete this clone\n\nwhen I start as a clone\nswitch costume to (costume1 v)\nforever\n    if <not <(costume [number v]) > [2]>> then\n        switch costume to (costume1 v)\n    end\n    wait (0.1) seconds\n    if <not <(costume [number v]) > [2]>> then\n        switch costume to (costume2 v)\n    end\n    wait (0.1) seconds\nend\n\nwhen I start as a clone\nrepeat (2)\n    wait until <touching (bullet v)?>\n    broadcast (Enlarge Bullet v)\n    set [enemy x v] to (x position)\n    set [enemy y v] to (y position)\n    broadcast (Blob Flash v)\n    broadcast (Delete Bullet v)\n    wait (Enemy I-Frame) seconds\nend\nwait until <touching (bullet v)?>\nstart sound [bomb_explode v]\nset [enemy x v] to (x position)\nset [enemy y v] to (y position)\nbroadcast (Enemy Explode v)\ndelete this clone\n\nwhen I receive [enemy flash v]\nif <touching (bullet v)?> then\n    set [brightness v] effect to (100)\n    repeat (5)\n        change [brightness v] effect by (-20)\n    end\nend\n\nif <not <(costume [number v]) > [2]>> then\n    repeat until <touching (bullet v)?>\nend\n\nwhen I receive [down v]\ndelete this clone\n\nwhen I receive [up v]\ndelete this clone\n\nwhen I receive [player died v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\ndelete this clone\n\nbroadcast (Delete Bullet v)\n\nrepeat (2)\n\n@Spider\n\nwhen I receive [game over v]\ndelete this clone\n\nwhen I receive [enemy flash v]\nif <touching (bullet v)?> then\n    set [brightness v] effect to (100)\n    repeat (5)\n        change [brightness v] effect by (-20)\n    end\nend\n\nwhen I receive [level start v]\nclear graphic effects\n\nwhen I receive [player died v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\ndelete this clone\n\nwhen I receive [spider flash v]\n\nwhen I start as a clone\nswitch costume to (costume1 v)\nrepeat (5)\n    wait until <touching (bullet v)?>\n    broadcast (Enlarge Bullet v)\n    set [enemy x v] to (x position)\n    set [enemy y v] to (y position)\n    broadcast (Delete Bullet v)\n    broadcast (Spider Flash v)\n    wait (Enemy I-Frame) seconds\nend\nwait until <touching (bullet v)?>\nstart sound [bomb_explode v]\nset [brightness v] effect to (100)\nbroadcast (Delete Spider Bullet v)\nset [enemy x v] to (x position)\nset [enemy y v] to (y position)\nbroadcast (Delete Bullet v)\nbroadcast (Enemy Explode v)\ndelete this clone\n\nwhen I receive [level start v]\nforever\n    if <([costume name v] of [ground v]) = [1-3]> then\n        go to x: (110) y: (201)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [1-3]>>\n    end\n    if <([costume name v] of [ground v]) = [1-4]> then\n        go to x: (20) y: (201)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [1-4]>>\n    end\n    if <([costume name v] of [ground v]) = [1-5]> then\n        go to x: (-60) y: (201)\n        create clone of (_myself_ v)\n        wait (1) seconds\n        go to x: (60) y: (201)\n        if <([costume name v] of [ground v]) = [1-5]> then\n            create clone of (_myself_ v)\n        end\n        wait until <not <([costume name v] of [ground v]) = [1-5]>>\n    end\n    if <([costume name v] of [ground v]) = [1-7]> then\n        go to x: (-40) y: (201)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [1-7]>>\n    end\n    if <([costume name v] of [ground v]) = [1-10]> then\n        go to x: (-145) y: (201)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [1-10]>>\n    end\n    if <([costume name v] of [ground v]) = [1-14]> then\n        go to x: (130) y: (201)\n        create clone of (_myself_ v)\n        wait (1) seconds\n        if <([costume name v] of [ground v]) = [1-14]> then\n            go to x: (0) y: (201)\n            create clone of (_myself_ v)\n        end\n        wait until <not <([costume name v] of [ground v]) = [1-14]>>\n    end\n    if <([costume name v] of [ground v]) = [1-18.6]> then\n        go to x: (-65) y: (201)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [1-18.6]>>\n    end\n    if <([costume name v] of [ground v]) = [1-18.7]> then\n        go to x: (0) y: (201)\n        create clone of (_myself_ v)\n        wait (1) seconds\n        go to x: (100) y: (201)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [1-18.7]>>\n    end\n    if <([costume name v] of [ground v]) = [1-18]> then\n        go to x: (185) y: (201)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [1-18]>>\n    end\n    if <([costume name v] of [ground v]) = [1-18.5]> then\n        go to x: (160) y: (201)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [1-18.5]>>\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nwait (0.5) seconds\nshow\nrepeat until <touching (enemy stop v)?>\n    if <not <(costume [number v]) > [2]>> then\n        change y by (-7)\n    end\nend\nrepeat (3)\n    if <not <(costume [number v]) > [2]>> then\n        change y by (-3)\n    end\nend\nrepeat (3)\n    if <not <(costume [number v]) > [2]>> then\n        change y by (-2)\n    end\nend\nrepeat (3)\n    if <not <(costume [number v]) > [2]>> then\n        change y by (-1)\n    end\nend\nforever\n    if <not <(costume [number v]) > [2]>> then\n        broadcast (Blob Explode v)\n        set [spider_x v] to (x position)\n        set [spider_y v] to (y position)\n    end\n    wait (0.2) seconds\n    repeat (3)\n        if <not <(costume [number v]) > [2]>> then\n            change y by (1)\n        end\n    end\n    repeat (20)\n        if <not <(costume [number v]) > [2]>> then\n            change y by (2)\n        end\n    end\n    repeat (3)\n        if <not <(costume [number v]) > [2]>> then\n            change y by (1)\n        end\n    end\n    if <not <(costume [number v]) > [2]>> then\n        broadcast (Blob Explode v)\n        set [spider_x v] to (x position)\n        set [spider_y v] to (y position)\n    end\n    wait (0.2) seconds\n    repeat (3)\n        if <not <(costume [number v]) > [2]>> then\n            change y by (-1)\n        end\n    end\n    repeat (20)\n        if <not <(costume [number v]) > [2]>> then\n            change y by (-2)\n        end\n    end\n    repeat (3)\n        if <not <(costume [number v]) > [2]>> then\n            change y by (-1)\n        end\n    end\nend\n\nwhen I start as a clone\nforever\n    if <not <(costume [name v]) > [2]>> then\n        switch costume to (costume1 v)\n    end\n    wait (0.3) seconds\n    if <not <(costume [name v]) > [2]>> then\n        switch costume to (costume2 v)\n    end\n    wait (0.3) seconds\nend\n\nwhen I start as a clone\nforever\n    if <not <(costume [number v]) > [2]>> then\n        switch costume to (costume1 v)\n    end\n    wait (0.2) seconds\n    if <not <(costume [number v]) > [2]>> then\n        switch costume to (costume2 v)\n    end\n    wait (0.2) seconds\nend\n\nwhen I receive [left v]\ndelete this clone\n\nwhen I receive [right v]\ndelete this clone\n\nwhen I receive [down v]\ndelete this clone\n\nwhen I receive [up v]\ndelete this clone\n\nif <touching (bullet v)?> then\n    set [brightness v] effect to (100)\n    wait (0.1) seconds\nend\nif <not <(costume [number v]) > [2]>> then\n    repeat until <touching (bullet v)?>\n        set [brightness v] effect to (0)\n        clear graphic effects\n    end\nend\n\n@Enemy Stop\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\nforever\n    switch costume to ([costume name v] of [ground v])\nend\n\n@Chomper\n\nwhen I receive [game over v]\ndelete this clone\n\ndelete this clone\n\nwhen I receive [enemy flash v]\nif <touching (bullet v)?> then\n    set [brightness v] effect to (100)\n    repeat (5)\n        change [brightness v] effect by (-20)\n    end\nend\n\nwhen I receive [level start v]\nclear graphic effects\n\nwhen I receive [player died v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I receive [left v]\ndelete this clone\n\nwhen I receive [right v]\ndelete this clone\n\nwhen I start as a clone\nshow\nrepeat (2)\n    wait until <touching (bullet v)?>\n    broadcast (Enlarge Bullet v)\n    set [enemy x v] to (x position)\n    set [enemy y v] to (y position)\n    broadcast (Delete Bullet v)\n    broadcast (Chomp Flash v)\n    wait (Enemy I-Frame) seconds\nend\nwait until <touching (bullet v)?>\nstart sound [bomb_explode v]\nset [brightness v] effect to (100)\nset [chomper x v] to (x position)\nset [chomper y v] to (y position)\nset [enemy x v] to (x position)\nset [enemy y v] to (y position)\nbroadcast (Delete Bullet v)\nbroadcast (Enemy Explode v)\nbroadcast (Chomper  v)\ndelete this clone\n\nwhen I receive [chomp flash v]\n\nwhen I start as a clone\nswitch costume to (costume1 v)\nforever\n    if <not <(costume [number v]) > [2]>> then\n        switch costume to (costume1 v)\n    end\n    wait (0.1) seconds\n    if <not <(costume [number v]) > [2]>> then\n        switch costume to (costume3 v)\n    end\n    wait (0.1) seconds\nend\n\nwhen I receive [level start v]\nforever\n    if <([costume name v] of [ground v]) = [1-6]> then\n        go to x: (60) y: (-117)\n        create clone of (_myself_ v)\n        go to x: (-40) y: (-117)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [1-6]>>\n    end\n    if <([costume name v] of [ground v]) = [1-7]> then\n        go to x: (80) y: (-93)\n        create clone of (_myself_ v)\n        go to x: (160) y: (-93)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [1-7]>>\n    end\n    if <([costume name v] of [ground v]) = [1-11]> then\n        go to x: (-40) y: (-117)\n        create clone of (_myself_ v)\n        go to x: (80) y: (-117)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [1-11]>>\n    end\n    if <([costume name v] of [ground v]) = [1-12]> then\n        go to x: (0) y: (-117)\n        create clone of (_myself_ v)\n        go to x: (40) y: (-117)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [1-12]>>\n    end\n    if <([costume name v] of [ground v]) = [1-17]> then\n        go to x: (60) y: (-141)\n        create clone of (_myself_ v)\n        go to x: (-20) y: (-141)\n        create clone of (_myself_ v)\n        go to x: (200) y: (-69)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [1-17]>>\n    end\n    if <([costume name v] of [ground v]) = [1-18.5]> then\n        go to x: (80) y: (-117)\n        create clone of (_myself_ v)\n        go to x: (0) y: (-117)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [1-18.5]>>\n    end\n    if <([costume name v] of [ground v]) = [1-18.8]> then\n        go to x: (-80) y: (-117)\n        create clone of (_myself_ v)\n        go to x: (0) y: (-117)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [1-18.8]>>\n    end\nend\n\nwhen I start as a clone\nforever\n    wait (pick random (0) to (1)) seconds\n    repeat (5)\n        if <not <(costume [number v]) > [2]>> then\n            change y by (10)\n        end\n    end\n    repeat (4)\n        if <not <(costume [number v]) > [2]>> then\n            change y by (4)\n        end\n    end\n    repeat (3)\n        if <not <(costume [number v]) > [2]>> then\n            change y by (2)\n        end\n    end\n    repeat (2)\n        if <not <(costume [number v]) > [2]>> then\n            change y by (1)\n        end\n    end\n    repeat (2)\n        if <not <(costume [number v]) > [2]>> then\n            change y by (-1)\n        end\n    end\n    repeat (3)\n        if <not <(costume [number v]) > [2]>> then\n            change y by (-2)\n        end\n    end\n    repeat (4)\n        if <not <(costume [number v]) > [2]>> then\n            change y by (-4)\n        end\n    end\n    repeat (5)\n        if <not <(costume [number v]) > [2]>> then\n            change y by (-10)\n        end\n    end\nend\n\nwhen I receive [down v]\ndelete this clone\n\nwhen I receive [up v]\ndelete this clone\n\nif <touching (bullet v)?> then\n    set [brightness v] effect to (100)\n    wait (0.1) seconds\nend\nif <not <(costume [number v]) > [2]>> then\n    repeat until <touching (bullet v)?>\n        clear graphic effects\n    end\nend\n\n@Space Fly\n\nwhen I receive [game over v]\ndelete this clone\n\nwhen I receive [enemy flash v]\nif <touching (bullet v)?> then\n    set [brightness v] effect to (100)\n    repeat (5)\n        change [brightness v] effect by (-20)\n    end\nend\n\nwhen I receive [level start v]\nclear graphic effects\n\nwhen I receive [player died v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nhide\ndelete this clone\n\nwhen I start as a clone\nshow\nrepeat (2)\n    wait until <touching (bullet v)?>\n    broadcast (Enlarge Bullet v)\n    set [enemy x v] to (x position)\n    set [enemy y v] to (y position)\n    broadcast (Delete Bullet v)\n    broadcast (Fly Flash v)\n    wait (Enemy I-Frame) seconds\nend\nwait until <touching (bullet v)?>\nstart sound [bomb_explode v]\nset [enemy x v] to (x position)\nset [enemy y v] to (y position)\nbroadcast (Delete Bullet v)\nbroadcast (Enemy Explode v)\ndelete this clone\n\nwhen I receive [fly flash v]\n\nwhen flag clicked\nhide\n\nwhen I receive [left v]\ndelete this clone\n\nwhen I receive [right v]\ndelete this clone\n\nwhen I start as a clone\nshow\nforever\n    if <not <(costume [number v]) > [2]>> then\n        switch costume to (costume1 v)\n    end\n    wait (0.01) seconds\n    if <not <(costume [number v]) > [2]>> then\n        switch costume to (costume2 v)\n    end\n    wait (0.01) seconds\nend\n\nwhen I start as a clone\nwait (0.3) seconds\nforever\n    wait (0.3) seconds\n    point towards (player collsion v)\n    repeat (4)\n        if <not <(costume [number v]) > [2]>> then\n            move (1) steps\n        end\n    end\n    repeat (8)\n        if <not <(costume [number v]) > [2]>> then\n            move (2) steps\n        end\n    end\n    repeat (20)\n        if <not <(costume [number v]) > [2]>> then\n            move (4) steps\n        end\n    end\n    repeat (8)\n        if <not <(costume [number v]) > [2]>> then\n            move (2) steps\n        end\n    end\n    repeat (4)\n        if <not <(costume [number v]) > [2]>> then\n            move (1) steps\n        end\n    end\nend\n\nmove (1) steps\n\nwhen I receive [down v]\ndelete this clone\n\nwhen I receive [up v]\ndelete this clone\n\nwhen I receive [level start v]\nforever\n    if <([costume name v] of [ground v]) = [1-15]> then\n        go to x: (180) y: (0)\n        create clone of (_myself_ v)\n        go to x: (90) y: (80)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [1-15]>>\n    end\n    if <([costume name v] of [ground v]) = [1-16]> then\n        go to x: (-120) y: (60)\n        create clone of (_myself_ v)\n        go to x: (-20) y: (-40)\n        create clone of (_myself_ v)\n        go to x: (160) y: (0)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [1-16]>>\n    end\n    if <([costume name v] of [ground v]) = [1-12]> then\n        go to x: (60) y: (80)\n        create clone of (_myself_ v)\n        go to x: (140) y: (0)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [1-12]>>\n    end\n    if <([costume name v] of [ground v]) = [1-17]> then\n        go to x: (60) y: (80)\n        create clone of (_myself_ v)\n        go to x: (140) y: (40)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [1-17]>>\n    end\n    if <([costume name v] of [ground v]) = [1-18]> then\n        go to x: (60) y: (80)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [1-18]>>\n    end\n    if <([costume name v] of [ground v]) = [1-18.5]> then\n        go to x: (60) y: (80)\n        create clone of (_myself_ v)\n        go to x: (-60) y: (-30)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [1-18.5]>>\n    end\n    if <([costume name v] of [ground v]) = [1-11.5]> then\n        go to x: (0) y: (80)\n        create clone of (_myself_ v)\n        go to x: (60) y: (-20)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [1-11.5]>>\n    end\n    if <([costume name v] of [ground v]) = [4-3]> then\n        go to x: (0) y: (80)\n        create clone of (_myself_ v)\n        go to x: (60) y: (-20)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [4-3]>>\n    end\n    if <([costume name v] of [ground v]) = [4-4]> then\n        go to x: (-150) y: (120)\n        create clone of (_myself_ v)\n        go to x: (0) y: (80)\n        create clone of (_myself_ v)\n        go to x: (150) y: (-40)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [4-4]>>\n    end\nend\n\nif <touching (bullet v)?> then\n    set [brightness v] effect to (100)\n    wait (0.1) seconds\nend\nif <not <(costume [number v]) > [2]>> then\n    repeat until <touching (bullet v)?>\n        clear graphic effects\n    end\nend\n\n@Spring\n\nwhen I receive [level start v]\nclear graphic effects\n\nwhen I receive [player died v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nhide\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I receive [level start v]\ngo to (ground v)\nforever\n    go to [back v] layer\n    hide\n    if <([costume name v] of [ground v]) = [1-8]> then\n        switch costume to (1-8 v)\n        show\n    end\n    if <([costume name v] of [ground v]) = [1-9]> then\n        switch costume to (1-9 v)\n        show\n    end\n    if <([costume name v] of [ground v]) = [1-10]> then\n        switch costume to (1-10 v)\n        show\n    end\n    if <([costume name v] of [ground v]) = [1-13]> then\n        switch costume to (1-13 v)\n        show\n    end\n    if <([costume name v] of [ground v]) = [1-16]> then\n        switch costume to (1-16 v)\n        show\n    end\n    if <([costume name v] of [ground v]) = [1-17]> then\n        switch costume to (1-17 v)\n        show\n    end\n    if <([costume name v] of [ground v]) = [1-18.5]> then\n        switch costume to (1-18.5 v)\n        show\n    end\n    if <([costume name v] of [ground v]) = [2-9]> then\n        switch costume to (2-9 v)\n        show\n    end\n    if <([costume name v] of [ground v]) = [2-16]> then\n        switch costume to (2-16 v)\n        show\n    end\n    if <([costume name v] of [ground v]) = [2-17]> then\n        switch costume to (2-17 v)\n        show\n    end\n    if <([costume name v] of [ground v]) = [1-18.7]> then\n        switch costume to (1-2 v)\n        show\n    end\n    if <([costume name v] of [ground v]) = [3-4]> then\n        switch costume to (3-4 v)\n        show\n    end\n    if <([costume name v] of [ground v]) = [3-15]> then\n        switch costume to (3-15 v)\n        show\n    end\n    if <([costume name v] of [ground v]) = [3-19]> then\n        switch costume to (3-19 v)\n        show\n    end\nend\n\n@Ground or Air\n\nwhen flag clicked\nhide\n\nwhen I receive [player start v]\nshow\nset [ghost v] effect to (100)\nforever\n    go to (player collsion v)\n    if <<<touching (ground v)?> or <<touching (jump through platform v)?> or <touching (lift v)?>>> and <(speed y) = [0]>> then\n        set [ground or air v] to [G]\n    else\n        set [ground or air v] to [A]\n    end\nend\n\nwhen I receive [level start v]\nset [ground or air v] to [G]\ngo to (player collsion v)\n\nwhen I receive [player start v]\nwait (0.1) seconds\nwait until <(Ground or Air) = [A]>\nforever\n    wait until <(Ground or Air) = [G]>\n    wait until <(speed y) = [0]>\n    if <not <touching (_edge_ v)?>> then\n        start sound [land v]\n    end\n    wait until <(Ground or Air) = [A]>\nend\n\n@Soldier\n\nwhen I receive [game over v]\ndelete this clone\n\nwhen I receive [enemy flash v]\nbroadcast (Gun Flash v)\nif <touching (bullet v)?> then\n    set [brightness v] effect to (100)\n    repeat (5)\n        change [brightness v] effect by (-20)\n    end\nend\n\nwhen I receive [level start v]\nclear graphic effects\n\nwhen I receive [player died v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nhide\ndelete this clone\n\nwhen I start as a clone\nswitch costume to (costume1 v)\nshow\nrepeat (9)\n    wait until <touching (bullet v)?>\n    broadcast (Enlarge Bullet v)\n    set [enemy x v] to (x position)\n    set [enemy y v] to (y position)\n    broadcast (Delete Bullet v)\n    broadcast (Soldier Flash v)\n    wait (Enemy I-Frame) seconds\nend\nwait until <touching (bullet v)?>\nbroadcast (Delete Soldier Gun v)\nstart sound [bomb_explode v]\nset [enemy x v] to (x position)\nset [enemy y v] to (y position)\nbroadcast (Delete Bullet v)\nbroadcast (Enemy Explode v)\ndelete this clone\n\nwhen I receive [soldier flash v]\n\nwhen I receive [level start v]\nforever\n    if <([costume name v] of [ground v]) = [1-8]> then\n        go to x: (120) y: (-114)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [1-8]>>\n    end\n    if <([costume name v] of [ground v]) = [1-9]> then\n        go to x: (-120) y: (30)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [1-9]>>\n    end\n    if <([costume name v] of [ground v]) = [1-11]> then\n        go to x: (200) y: (-66)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [1-11]>>\n    end\n    if <([costume name v] of [ground v]) = [1-13]> then\n        go to x: (-120) y: (-114)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [1-13]>>\n    end\n    if <([costume name v] of [ground v]) = [1-18.6]> then\n        go to x: (200) y: (-114)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [1-18.6]>>\n    end\n    if <([costume name v] of [ground v]) = [2-9]> then\n        go to x: (40) y: (54)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [2-9]>>\n    end\n    if <([costume name v] of [ground v]) = [3-7]> then\n        go to x: (-40) y: (-90)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [3-7]>>\n    end\n    if <([costume name v] of [ground v]) = [3-20]> then\n        go to x: (98) y: (-42)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [3-20]>>\n    end\nend\n\nwhen I start as a clone\nbroadcast (Equip  v)\nshow\nforever\n    point towards (player collsion v)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [left v]\ndelete this clone\n\nwhen I receive [right v]\ndelete this clone\n\nwhen I receive [down v]\ndelete this clone\n\nwhen I receive [up v]\ndelete this clone\n\nif <touching (bullet v)?> then\n    set [brightness v] effect to (100)\n    wait (0.1) seconds\nend\nif <not <(costume [number v]) > [1]>> then\n    repeat until <touching (bullet v)?>\n        clear graphic effects\n    end\nend\n\n@Soldier Gun\n\nwhen I receive [game over v]\ndelete this clone\n\nwhen I receive [gun flash v]\nif <touching (bullet v)?> then\n    set [brightness v] effect to (100)\n    repeat (5)\n        change [brightness v] effect by (-20)\n    end\nend\n\nwhen I receive [level start v]\nclear graphic effects\n\nwhen I receive [player died v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nhide\ndelete this clone\n\nwhen I receive [soldier flash v]\n\nwhen I receive [equip  v]\ngo to (soldier v)\ncreate clone of (_myself_ v)\n\ngo to x: (Shroom Soldier X) y: (Shroom Soldier Y)\n\nwhen I start as a clone\nshow\nforever\n    point towards (player collsion v)\n    if <(direction) > [0]> then\n        switch costume to (soldier gun v)\n    end\n    if <[0] > (direction)> then\n        switch costume to (soldier gun2 v)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [left v]\ndelete this clone\n\nwhen I receive [right v]\ndelete this clone\n\nwhen I receive [down v]\ndelete this clone\n\nwhen I receive [up v]\ndelete this clone\n\nwhen I start as a clone\nwait (0.5) seconds\nforever\n    repeat (30)\n        point towards (player collsion v)\n    end\n    repeat (2)\n        point towards (player collsion v)\n        broadcast (Soldier Bullet v)\n        wait (0.1) seconds\n    end\n    wait (0.5) seconds\n    repeat (2)\n        point towards (player collsion v)\n        broadcast (Soldier Bullet v)\n        wait (0.1) seconds\n    end\nend\n\nwhen I receive [delete soldier gun v]\ndelete this clone\n\nset [brightness v] effect to (100)\nwait (0.1) seconds\nif <not <(costume [number v]) > [2]>> then\n    clear graphic effects\nend\n\n@Soldier Bullet\n\nwhen I receive [level start v]\nclear graphic effects\n\nwhen I receive [player died v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nhide\ndelete this clone\n\nwhen I receive [soldier bullet v]\nif <(costume [name v]) = [Control]> then\n    point towards (player collsion v)\n    go to (soldier gun v)\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nswitch costume to (control v)\nhide\n\nwhen I receive [down v]\nforever\n    delete this clone\nend\n\nwhen I receive [left v]\nforever\n    delete this clone\nend\n\nwhen I receive [up v]\nforever\n    delete this clone\nend\n\nwhen I receive [right v]\nforever\n    delete this clone\nend\n\nwhen I start as a clone\npoint towards (player collsion v)\ngo to (soldier gun v)\nstart sound [Fire Ball v]\nif <(direction) > [0]> then\n    switch costume to (costume1 v)\nend\nif <[0] > (direction)> then\n    switch costume to (costume2 v)\nend\nshow\nrepeat until <touching (bullet deleter v)?>\n    move (7) steps\nend\nmove (7) steps\ndelete this clone\n\n@Jump through Platform\n\nwhen I receive [level start v]\nclear graphic effects\n\nwhen I receive [player died v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nhide\ndelete this clone\n\nwhen I receive [level start v]\ngo to (ground v)\nforever\n    go to (ground v)\n    hide\n    go to [back v] layer\n    if <([costume name v] of [ground v]) = [1-9]> then\n        switch costume to (1-9 v)\n        show\n    end\n    if <([costume name v] of [ground v]) = [1-8]> then\n        switch costume to (1-8 v)\n        show\n    end\n    if <([costume name v] of [ground v]) = [1-10]> then\n        switch costume to (1-10 v)\n        show\n    end\n    if <([costume name v] of [ground v]) = [1-11]> then\n        switch costume to (1-11 v)\n        show\n    end\n    if <([costume name v] of [ground v]) = [1-13]> then\n        switch costume to (1-13 v)\n        show\n    end\n    if <([costume name v] of [ground v]) = [1-18.6]> then\n        switch costume to (1-18.6 v)\n        show\n    end\n    if <([costume name v] of [ground v]) = [2-3]> then\n        switch costume to (2-3 v)\n        show\n    end\n    if <([costume name v] of [ground v]) = [2-4]> then\n        switch costume to (2-4 v)\n        show\n    end\n    if <([costume name v] of [ground v]) = [2-5]> then\n        switch costume to (2-5 v)\n        show\n    end\n    if <([costume name v] of [ground v]) = [2-10]> then\n        switch costume to (2-10 v)\n        show\n    end\n    if <([costume name v] of [ground v]) = [2-17]> then\n        switch costume to (2-17 v)\n        show\n    end\n    if <([costume name v] of [ground v]) = [2-21]> then\n        switch costume to (2-21 v)\n        show\n    end\n    if <([costume name v] of [ground v]) = [3-15]> then\n        switch costume to (3-15 v)\n        show\n    end\n    if <([costume name v] of [ground v]) = [3-16]> then\n        switch costume to (3-16 v)\n        show\n    end\nend\n\nwhen flag clicked\nhide\n\n@Spider Bullet\n\nwhen I receive [game over v]\ndelete this clone\n\nwhen I receive [level start v]\nclear graphic effects\n\nwhen I receive [player died v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nhide\ndelete this clone\n\nwhen I receive [blob explode v]\nif <(costume [name v]) = [Control]> then\n    set x to (Spider_X)\n    set y to (Spider_Y)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nswitch costume to (costume1 v)\nshow\nchange y by (-30)\nwait (0.1) seconds\npoint towards (player collsion v)\nstart sound [Fire Ball v]\nrepeat until <touching (bullet deleter v)?>\n    move (7) steps\nend\nmove (7) steps\ndelete this clone\n\nwhen flag clicked\nswitch costume to (control v)\nhide\n\nwhen I receive [left v]\ndelete this clone\n\nwhen I receive [down v]\ndelete this clone\n\nwhen I receive [right v]\ndelete this clone\n\nwhen I receive [up v]\ndelete this clone\n\nwhen I receive [delete spider bullet v]\nif <(x position) = [50]> then\n    delete this clone\nend\n\nset x to (36)\nset y to (28)\n\n@Gate\n\nwhen I receive [level start v]\nclear graphic effects\n\nwhen I receive [player died v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen I receive [level start v]\nhide\nswitch costume to (costume1 v)\nforever\n    if <touching (player v)?> then\n        broadcast (Gate v)\n        switch costume to (costume2 v)\n        start sound [alchemycoin_bounce v]\n        wait (0.2) seconds\n        switch costume to (costume3 v)\n        start sound [alchemycoin_bounce v]\n        wait (0.2) seconds\n        switch costume to (costume4 v)\n        start sound [alchemycoin_bounce v]\n        wait (0.2) seconds\n        start sound [alchemycoin_bounce v]\n        hide\n        wait until <not <touching (player v)?>>\n        switch costume to (costume1 v)\n    end\nend\n\nshow\n\nwhen I receive [player start v]\nhide\nswitch costume to (costume1 v)\nforever\n    if <([costume name v] of [ground v]) = [1-19]> then\n        show\n        wait until <not <([costume name v] of [ground v]) = [1-19]>>\n    end\n    if <([costume name v] of [ground v]) = [1-20]> then\n        show\n        wait until <not <([costume name v] of [ground v]) = [1-20]>>\n    end\n    if <([costume name v] of [ground v]) = [3-22]> then\n        show\n        wait until <not <([costume name v] of [ground v]) = [3-22]>>\n    end\n    if <([costume name v] of [ground v]) = [3-23]> then\n        show\n        wait until <not <([costume name v] of [ground v]) = [3-23]>>\n    end\nend\n\nwhen flag clicked\nhide\n\n@Title Screen\n\nwhen flag clicked\n\nwhen flag clicked\nclear graphic effects\nset [ghost v] effect to (100)\nshow\nswitch costume to (costume4 v)\nwait (0.1) seconds\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nwait (2) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nbroadcast (Stars v)\nwait (0.8) seconds\nswitch costume to (costume3 v)\nset [ghost v] effect to (100)\nshow\nwait (0.2) seconds\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nwait (0.3) seconds\nset [brightness v] effect to (100)\nstart sound [coin_impact v]\nrepeat (10)\n    change [brightness v] effect by (-10)\nend\nstart sound [3-51 - MM9 - Dr v]\ngo to x: (0) y: (0)\nforever\n    repeat until <key (space v) pressed?>\n        change [player frame v] by (0.1)\n        switch costume to ((1) + (([floor v] of (player frame) ) mod (2)))\n    end\n    switch costume to (costume1 v)\n    stop all sounds\n    start sound [gulper_mage_fire v]\n    set [brightness v] effect to (100)\n    repeat (10)\n        change [brightness v] effect by (-10)\n    end\n    hide\n    broadcast (Level Text v)\n    stop [other scripts in sprite v]\n    stop [this script v]\nend\n\n@Planet Text\n\nwhen I receive [level text v]\nif <(Level) = [1]> then\n    clear graphic effects\n    wait (1) seconds\n    hide\n    wait (0.05) seconds\n    start sound [sfxStrikeManBounce v]\n    switch costume to (level 1-1 v)\n    show\n    repeat until <(costume [name v]) = [Level 1-6]>\n        wait (0.05) seconds\n        start sound [sfxStrikeManBounce v]\n        next costume\n    end\n    wait (0.5) seconds\n    repeat until <(costume [name v]) = [Level 1-21]>\n        wait (0.05) seconds\n        start sound [sfxStrikeManBounce v]\n        next costume\n    end\n    wait (1.5) seconds\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    wait (0.5) seconds\n    hide\n    broadcast (level start v)\nend\n\nwhen flag clicked\nhide\nset [level v] to [1]\n\nwhen I receive [level text v]\nif <(Level) = [2]> then\n    clear graphic effects\n    wait (1) seconds\n    hide\n    wait (0.05) seconds\n    start sound [sfxStrikeManBounce v]\n    switch costume to (level 2-1 v)\n    show\n    repeat until <(costume [name v]) = [Level 2-6]>\n        wait (0.05) seconds\n        start sound [sfxStrikeManBounce v]\n        next costume\n    end\n    wait (0.5) seconds\n    repeat until <(costume [name v]) = [Level 2-21]>\n        wait (0.05) seconds\n        start sound [sfxStrikeManBounce v]\n        next costume\n    end\n    wait (1.5) seconds\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    wait (0.5) seconds\n    hide\n    broadcast (level start v)\nend\n\nwhen I receive [level text v]\nif <(username) = [KettleClog]> then\n    if <(Level) = [3]> then\n        clear graphic effects\n        wait (1) seconds\n        hide\n        wait (0.05) seconds\n        start sound [sfxStrikeManBounce v]\n        switch costume to (level 3-1 v)\n        show\n        repeat until <(costume [name v]) = [Level 3-6]>\n            wait (0.05) seconds\n            start sound [sfxStrikeManBounce v]\n            next costume\n        end\n        wait (0.5) seconds\n        repeat until <(costume [name v]) = [Level 3-21]>\n            wait (0.05) seconds\n            start sound [sfxStrikeManBounce v]\n            next costume\n        end\n        wait (1.5) seconds\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        wait (0.5) seconds\n        hide\n        broadcast (level start v)\n    end\nend\n\nset [level v] to [3]\n\n@Rocket\n\nwhen I receive [level start v]\nclear graphic effects\nwait (0.5) seconds\nstart sound [crowbomber_drop v]\nshow\ngo to x: (-132) y: (999)\nrepeat until <touching (ground v)?>\n    change y by (-6)\nend\nstart sound [Thwomp v]\nwait (0.5) seconds\nbroadcast (Player Start v)\nwait (1) seconds\nstart sound [crowbomber_drop v]\nrepeat (3)\n    change y by (5)\nend\nrepeat (10)\n    change y by (10)\nend\nrepeat until <touching (_edge_ v)?>\n    change y by (15)\nend\nrepeat (3)\n    change y by (15)\nend\nhide\n\nwhen flag clicked\ngo to x: (-132) y: (999)\nhide\n\n@Boss 1\n\nwhen I receive [game over v]\ndelete this clone\n\nwhen I receive [enemy flash v]\nif <touching (bullet v)?> then\n    set [brightness v] effect to (100)\n    repeat (5)\n        change [brightness v] effect by (-20)\n    end\nend\n\nwhen I receive [game over v]\nrepeat (50)\n    change volume by (-2)\nend\nstop [other scripts in sprite v]\n\nwhen I receive [level start v]\nclear graphic effects\n\nwhen I receive [player died v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nhide\ndelete this clone\n\nwhen I receive [boss 1 flash v]\n\nwhen I start as a clone\nset volume to (100) %\nswitch costume to (costume1 v)\nrepeat (79)\n    wait until <touching (bullet v)?>\n    broadcast (Enlarge Bullet v)\n    set [enemy x v] to (x position)\n    set [enemy y v] to (y position)\n    broadcast (Delete Bullet v)\n    broadcast (Boss 1 Flash v)\n    wait (Enemy I-Frame) seconds\nend\nwait until <touching (bullet v)?>\nstop [other scripts in sprite v]\nstop all sounds\nclear graphic effects\nbroadcast (Stop Player v)\nhide\nstart sound [sfxStrikeManBounce v]\nbroadcast (Boss Explode v)\nset [boss 1 x v] to (x position)\nset [boss 1 y v] to (y position)\nwait (3) seconds\nbroadcast (Level Beat v)\ndelete this clone\n\nwhen flag clicked\nset volume to (100) %\nhide\n\nwhen I receive [level start v]\nhide\nforever\n    if <([costume name v] of [ground v]) = [1-21]> then\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [1-21]>>\n    end\nend\n\nwhen I start as a clone\nif <([x position v] of [player collsion v]) > (x position)> then\n    point in direction (90)\nelse\n    point in direction (-90)\nend\nhide\nswitch costume to (up v)\npoint in direction (-90)\nwait (1) seconds\ngo to x: (180) y: (999)\nshow\nrepeat (5)\n    change y by (-5)\nend\nrepeat (10)\n    change y by (-10)\nend\nrepeat (11)\n    change y by (-15)\nend\nchange y by (-7)\nstart sound [Thwomp v]\nbroadcast (Shockwave v)\nforever\n    repeat (pick random (1) to (2))\n        if <([x position v] of [player collsion v]) > (x position)> then\n            point in direction (90)\n        else\n            point in direction (-90)\n        end\n        repeat (1)\n            switch costume to (down v)\n            wait (0.5) seconds\n            switch costume to (up v)\n            wait (0.5) seconds\n        end\n        switch costume to (shoot v)\n        repeat (3)\n            if <not <(costume [number v]) > [3]>> then\n                broadcast (Boss 1 Bullet v)\n                wait (0.55) seconds\n            end\n        end\n        switch costume to (up v)\n        wait (0.5) seconds\n    end\n    repeat (pick random (2) to (3))\n        if <([x position v] of [player collsion v]) > (x position)> then\n            point in direction (90)\n        else\n            point in direction (-90)\n        end\n        switch costume to (shoot v)\n        repeat (6)\n            change y by (6)\n        end\n        repeat (2)\n            change y by (3)\n        end\n        repeat (2)\n            change y by (1)\n        end\n        repeat (2)\n            change y by (-1)\n        end\n        repeat (2)\n            change y by (-3)\n        end\n        repeat (6)\n            change y by (-6)\n        end\n        start sound [Thwomp v]\n        broadcast (Shockwave v)\n        wait (0.2) seconds\n    end\n    switch costume to (down v)\n    wait (0.3) seconds\n    repeat (pick random (1) to (3))\n        if <([x position v] of [player collsion v]) > (x position)> then\n            point in direction (90)\n        else\n            point in direction (-90)\n        end\n        switch costume to (down v)\n        wait (0.2) seconds\n        repeat (8)\n            change y by (10)\n            move (3) steps\n            if <touching (_edge_ v)?> then\n                turn right (180) degrees\n            end\n        end\n        repeat (6)\n            change y by (6)\n            move (3) steps\n            if <touching (_edge_ v)?> then\n                turn right (180) degrees\n            end\n        end\n        repeat (3)\n            change y by (3)\n            move (3) steps\n            if <touching (_edge_ v)?> then\n                turn right (180) degrees\n            end\n        end\n        repeat (2)\n            change y by (1)\n            move (3) steps\n            if <touching (_edge_ v)?> then\n                turn right (180) degrees\n            end\n        end\n        repeat (2)\n            change y by (-1)\n            move (3) steps\n            if <touching (_edge_ v)?> then\n                turn right (180) degrees\n            end\n        end\n        repeat (3)\n            change y by (-3)\n            move (3) steps\n            if <touching (_edge_ v)?> then\n                turn right (180) degrees\n            end\n        end\n        repeat (6)\n            change y by (-6)\n            move (3) steps\n            if <touching (_edge_ v)?> then\n                turn right (180) degrees\n            end\n        end\n        repeat (8)\n            change y by (-10)\n            move (3) steps\n            if <touching (_edge_ v)?> then\n                turn right (180) degrees\n            end\n        end\n        start sound [Thwomp v]\n        broadcast (Shockwave v)\n    end\nend\n\nwhen I start as a clone\n\nwhen I start as a clone\nforever\n    set [boss 1 x v] to (x position)\n    set [boss 1 y v] to (y position)\nend\n\nwhen I start as a clone\nwait (2) seconds\nif <([costume name v] of [ground v]) = [1-21]> then\n    forever\n        play sound [4-20 - Wily Battle \(Mega Man 10\) v] until done\n    end\nend\n\nstart sound [bomb_explode v]\n\nwhen I receive [stop player v]\n\nrepeat (10)\n    set [motion v] to [N]\nend\nwait (3) seconds\nset [motion v] to [Y]\n\nforever\n    point towards (player collsion v)\nend\n\nif <touching (bullet v)?> then\n    set [brightness v] effect to (100)\n    wait (0.1) seconds\nend\nif <not <(costume [number v]) > [3]>> then\n    repeat until <touching (bullet v)?>\n        clear graphic effects\n    end\nend\n\n@Boss 1 Bullet\n\nwhen I receive [game over v]\ndelete this clone\n\nwhen I receive [level start v]\nclear graphic effects\n\nwhen I receive [player died v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nhide\ndelete this clone\n\nwhen I receive [game over v]\ndelete this clone\n\nwhen I receive [boss 1 bullet v]\nif <(costume [name v]) = [Control]> then\n    go to (boss 1 v)\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nswitch costume to (control v)\nset [ghost v] effect to (100)\nhide\n\nwhen I start as a clone\nswitch costume to (costume1 v)\ngo to (boss 1 v)\nset [ghost v] effect to (100)\nshow\nclear graphic effects\nstart sound [sfxStrikeManBounce2 v]\nset rotation style [left-right v]\ngo to x: (Boss 1 X) y: (Boss 1 Y)\nshow\nif <([x position v] of [player v]) > (x position)> then\n    point in direction (90)\nelse\n    point in direction (-90)\nend\nrepeat (15)\n    move (3) steps\nend\nrepeat (3)\n    move (3) steps\n    change y by (-2)\nend\nrepeat (3)\n    move (4) steps\n    change y by (-4)\nend\nrepeat (3)\n    move (8) steps\n    change y by (-8)\nend\nrepeat (2)\n    move (12) steps\n    change y by (-12)\nend\nrepeat until <touching (bullet deleter v)?>\n    move (12) steps\nend\ndelete this clone\n\npoint in direction (90)\n\nmove (16) steps\n\nrepeat (10)\n\n@Shockwave\n\nwhen I receive [game over v]\ndelete this clone\n\nwhen I receive [level start v]\nclear graphic effects\n\nwhen I receive [player died v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nhide\ndelete this clone\n\nwhen I receive [game over v]\ndelete this clone\n\nwhen I receive [shockwave v]\nif <(costume [name v]) = [Control]> then\n    go to (boss 1 v)\n    change y by (0)\n    point in direction (90)\n    create clone of (_myself_ v)\n    point in direction (-90)\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nswitch costume to (control v)\nhide\n\nwhen I start as a clone\ngo to x: (Boss 1 X) y: (Boss 1 Y)\nchange y by (0)\nshow\nswitch costume to (costume1 v)\nrepeat until <touching (_edge_ v)?>\n    move (8) steps\nend\nrepeat (1)\n    move (8) steps\nend\ndelete this clone\n\nwhen I start as a clone\nforever\n    switch costume to (costume1 v)\n    wait (0.04) seconds\n    switch costume to (costume2 v)\n    wait (0.04) seconds\nend\n\n@Health Bar\n\nwhen I receive [level start v]\nclear graphic effects\n\nwhen I receive [player died v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nhide\ndelete this clone\n\nwhen I receive [level start v]\nclear graphic effects\nset [player health v] to [6]\nswitch costume to (6 v)\nshow\n\nwhen I receive [player hurt v]\nif <not <(Player Health) = [0]>> then\n    change [player health v] by (-1)\n    next costume\nend\n\nwhen flag clicked\nclear graphic effects\nhide\n\nwhen I receive [hide v]\nhide\n\nwhen I receive [insta-death v]\nset [player health v] to [0]\nswitch costume to (0 v)\n\nwhen I receive [level start v]\nforever\n    if <(Player Health) = [0]> then\n        stop [other scripts in sprite v]\n        broadcast (Game Over v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [hp up v]\nif <not <(Player Health) = [6]>> then\n    change [player health v] by (1)\n    switch costume to ((costume [number v]) - (1))\nend\nset [brightness v] effect to (100)\nrepeat (10)\n    change [brightness v] effect by (-10)\nend\n\n@P hitbox\n\nwhen I receive [player start v]\nforever\n    go to (player collsion v)\n    if <not <(Player Health) = [0]>> then\n        if <<touching (blob v)?> or <<touching (spider v)?> or <<touching (chomper v)?> or <<touching (space fly v)?> or <<touching (soldier v)?> or <<touching (soldier bullet v)?> or <<touching (spider bullet v)?> or <<touching (shockwave v)?> or <<touching (boss 1 bullet v)?> or <<touching (boss 1 v)?> or <<touching (shell head v)?> or <<touching (shell bullet v)?> or <<touching (fireball v)?> or <<touching (stomp-eye bullet v)?> or <<touching (missile v)?> or <<touching (stomp-eye v)?> or <<touching (laser v)?> or <<touching (chomper spore v)?> or <<touching (tank v)?> or <<touching (tank bullet v)?> or <<touching (tank bomb v)?> or <<touching (propellor v)?> or <<touching (propellor bullet v)?> or <<touching (boss 2 v)?> or <<touching (fishman v)?> or >>>>>>>>>>>>>>>>>>>>>>>>> then\n            if <(Motion) = [Y]> then\n                broadcast (Player Hurt v)\n                start sound [knight_hurt v]\n                set [speed y v] to [0]\n                set [speed x v] to [0]\n                set [motion v] to [N]\n                set [gun ghost v] to [50]\n                wait (0.5) seconds\n                set [speed y v] to [0]\n                set [speed x v] to [0]\n                set [motion v] to [Y]\n                wait (1.3) seconds\n                set [gun ghost v] to [0]\n            end\n        end\n    end\nend\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\n\nwhen I receive [player start v]\nforever\n    go to (player collsion v)\n    if <not <touching (_edge_ v)?>> then\n        if  then\n            start sound [knight_hurt v]\n            set [motion v] to [N]\n            broadcast (Insta-Death v)\n            stop [this script v]\n        end\n    end\nend\n\n@Shell Head\n\nwhen I receive [game over v]\ndelete this clone\n\nwhen I receive [enemy flash v]\nif <touching (bullet v)?> then\n    set [brightness v] effect to (100)\n    repeat (5)\n        change [brightness v] effect by (-20)\n    end\nend\n\nwhen I receive [level start v]\nclear graphic effects\n\nwhen I receive [player died v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nhide\ndelete this clone\n\nwhen I start as a clone\nswitch costume to (closed v)\nshow\nrepeat (3)\n    wait until <touching (bullet v)?>\n    broadcast (Enlarge Bullet v)\n    set [enemy x v] to (x position)\n    set [enemy y v] to (y position)\n    broadcast (Delete Bullet v)\n    broadcast (Shell Flash v)\n    wait (Enemy I-Frame) seconds\nend\nwait until <touching (bullet v)?>\ngo to [front v] layer\nstart sound [bomb_explode v]\nset [enemy x v] to (x position)\nset [enemy y v] to (y position)\nbroadcast (Delete Bullet v)\nbroadcast (Enemy Explode v)\ndelete this clone\n\nwhen I receive [shell flash v]\n\nwhen flag clicked\nhide\n\nwhen I receive [level start v]\nforever\n    if <([costume name v] of [ground v]) = [3-2]> then\n        go to x: (120) y: (-96)\n        create clone of (_myself_ v)\n        go to x: (-20) y: (-120)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [3-2]>>\n    end\n    if <([costume name v] of [ground v]) = [3-3]> then\n        go to x: (-20) y: (-120)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [3-3]>>\n    end\n    if <([costume name v] of [ground v]) = [3-5]> then\n        go to x: (130) y: (-120)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [3-5]>>\n    end\n    if <([costume name v] of [ground v]) = [3-10]> then\n        go to x: (82) y: (-24)\n        create clone of (_myself_ v)\n        go to x: (12) y: (-72)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [3-10]>>\n    end\n    if <([costume name v] of [ground v]) = [3-18]> then\n        go to x: (-35) y: (-96)\n        create clone of (_myself_ v)\n        go to x: (190) y: (-120)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [3-18]>>\n    end\n    if <([costume name v] of [ground v]) = [3-21]> then\n        go to x: (82) y: (-24)\n        create clone of (_myself_ v)\n        go to x: (12) y: (-72)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [3-21]>>\n    end\nend\n\nwhen I start as a clone\ngo to [back v] layer\nshow\nforever\n    if <not <(costume [number v]) > [2]>> then\n        switch costume to (closed v)\n    end\n    wait (pick random (0.2) to (2)) seconds\n    if <not <(costume [number v]) > [2]>> then\n        switch costume to (open v)\n    end\n    repeat (6)\n        if <not <(costume [number v]) > [2]>> then\n            change y by (8)\n        end\n    end\n    repeat (3)\n        if <not <(costume [number v]) > [2]>> then\n            change y by (4)\n        end\n    end\n    repeat (2)\n        if <not <(costume [number v]) > [2]>> then\n            change y by (2)\n        end\n    end\n    repeat (2)\n        if <not <(costume [number v]) > [2]>> then\n            change y by (1)\n        end\n    end\n    set [shell x v] to (x position)\n    set [shell y v] to (y position)\n    if <not <(costume [number v]) > [2]>> then\n        broadcast (Shell Bullet v)\n    end\n    repeat (2)\n        if <not <(costume [number v]) > [2]>> then\n            change y by (-1)\n        end\n    end\n    repeat (2)\n        if <not <(costume [number v]) > [2]>> then\n            change y by (-2)\n        end\n    end\n    repeat (3)\n        if <not <(costume [number v]) > [2]>> then\n            change y by (-4)\n        end\n    end\n    repeat (6)\n        if <not <(costume [number v]) > [2]>> then\n            change y by (-8)\n        end\n    end\nend\n\nwhen I receive [down v]\ndelete this clone\n\nwhen I receive [left v]\ndelete this clone\n\nwhen I receive [right v]\ndelete this clone\n\nwhen I receive [up v]\ndelete this clone\n\nwhen I start as a clone\nset rotation style [left-right v]\nforever\n    point towards (player collsion v)\nend\n\nif <touching (bullet v)?> then\n    set [brightness v] effect to (100)\n    wait (0.1) seconds\n    clear graphic effects\nend\nif <not <(costume [number v]) > [1]>> then\n    repeat until <touching (bullet v)?>\n        clear graphic effects\n    end\nend\n\nwhen I start as a clone\nwait until <touching (boss 2 v)?>\ngo to [front v] layer\nstart sound [bomb_explode v]\nset [enemy x v] to (x position)\nset [enemy y v] to (y position)\nbroadcast (Delete Bullet v)\nbroadcast (Enemy Explode v)\ndelete this clone\n\nwhen I receive [create shell head v]\nif <(costume [name v]) = [Control]> then\n    set x to (Shell Egg X)\n    set y to (Shell Egg Y)\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nswitch costume to (control v)\n\nwhen I receive [boss explode v]\ndelete this clone\n\nwhen I start as a clone\nif <touching (_edge_ v)?> then\n    repeat until <not <touching (_edge_ v)?>>\n        change x by (1)\n        change x by (-1)\n        change x by (2)\n        change x by (-2)\n        change x by (3)\n        change x by (-3)\n        change x by (4)\n        change x by (-4)\n        change x by (5)\n        change x by (-5)\n        change x by (6)\n        change x by (-6)\n        change x by (7)\n        change x by (-7)\n        change x by (10)\n        change x by (-10)\n        change x by (20)\n        change x by (-20)\n        change x by (30)\n        change x by (-30)\n    end\nend\n\n@Shell Bullet\n\nwhen I receive [game over v]\ndelete this clone\n\nwhen I receive [level start v]\nclear graphic effects\n\nwhen I receive [player died v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nhide\nrepeat (10)\n    delete this clone\nend\n\nwhen flag clicked\nswitch costume to (control v)\nhide\n\nwhen I receive [shell bullet v]\nif <(costume [name v]) = [Control]> then\n    go to x: (Shell X) y: (Shell Y)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nswitch costume to (costume1 v)\nstart sound [Fire Ball v]\nshow\npoint towards (player collsion v)\nrepeat until <touching (bullet deleter v)?>\n    move (6) steps\nend\ndelete this clone\n\nwhen I receive [up v]\ndelete this clone\n\nwhen I receive [right v]\ndelete this clone\n\nwhen I receive [down v]\ndelete this clone\n\n@Lava\n\nwhen I receive [level start v]\nclear graphic effects\n\nwhen I receive [player died v]\nrepeat (5)\n    change [ghost v] effect by (-20)\nend\nhide\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I receive [level start v]\nforever\n    hide\n    if <([costume name v] of [ground v]) = [2-3]> then\n        show\n    end\n    if <([costume name v] of [ground v]) = [2-4]> then\n        show\n    end\n    if <([costume name v] of [ground v]) = [2-5]> then\n        show\n    end\n    if <([costume name v] of [ground v]) = [2-8]> then\n        show\n    end\n    if <([costume name v] of [ground v]) = [2-9]> then\n        show\n    end\n    if <([costume name v] of [ground v]) = [2-21]> then\n        show\n    end\n    if <([costume name v] of [ground v]) = [3-3]> then\n        show\n    end\n    if <([costume name v] of [ground v]) = [3-4]> then\n        show\n    end\n    if <([costume name v] of [ground v]) = [3-5]> then\n        show\n    end\n    if <([costume name v] of [ground v]) = [3-6]> then\n        show\n    end\n    if <([costume name v] of [ground v]) = [3-7]> then\n        show\n    end\n    if <([costume name v] of [ground v]) = [3-8]> then\n        show\n    end\n    if <([costume name v] of [ground v]) = [3-14]> then\n        show\n    end\n    if <([costume name v] of [ground v]) = [3-15]> then\n        show\n    end\n    if <([costume name v] of [ground v]) = [3-17]> then\n        show\n    end\n    if <([costume name v] of [ground v]) = [3-19]> then\n        show\n    end\n    if <([costume name v] of [ground v]) = [3-20]> then\n        show\n    end\nend\n\nwhen I receive [level start v]\ngo to x: (0) y: (-20)\nclear graphic effects\nforever\n    repeat (5)\n        change y by (1)\n    end\n    wait (0.1) seconds\n    repeat (5)\n        change y by (-1)\n    end\n    wait (0.1) seconds\nend\n\nwhen I receive [level start v]\nforever\n    next costume\n    wait (0.4) seconds\nend\n\nwhen I receive [player start v]\ngo to [back v] layer\n\nwhen I receive [level start v]\nclear graphic effects\nforever\n    repeat (20)\n        change [brightness v] effect by (5)\n    end\n    repeat (20)\n        change [brightness v] effect by (-5)\n    end\n    wait (0.1) seconds\nend\n\nwhen I receive [game over v]\nstop [other scripts in sprite v]\n\n@FireBall\n\nwhen I receive [game over v]\ndelete this clone\n\nwhen I receive [level start v]\nclear graphic effects\n\nwhen I receive [player died v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nhide\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nforever\n    if <touching (lava v)?> then\n        go to [back v] layer\n    else\n        go to [front v] layer\n    end\nend\n\nwhen I receive [level start v]\nforever\n    if <([costume name v] of [ground v]) = [3-6]> then\n        go to x: (-50) y: (-999)\n        create clone of (_myself_ v)\n        go to x: (50) y: (-999)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [3-6]>>\n    end\n    if <([costume name v] of [ground v]) = [3-7]> then\n        go to x: (180) y: (-999)\n        create clone of (_myself_ v)\n        go to x: (50) y: (-999)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [3-7]>>\n    end\n    if <([costume name v] of [ground v]) = [3-8]> then\n        go to x: (85) y: (-999)\n        create clone of (_myself_ v)\n        go to x: (-85) y: (-999)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [3-8]>>\n    end\n    if <([costume name v] of [ground v]) = [3-19]> then\n        go to x: (80) y: (-999)\n        create clone of (_myself_ v)\n        go to x: (-60) y: (-999)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [3-19]>>\n    end\n    if <([costume name v] of [ground v]) = [3-20]> then\n        go to x: (-70) y: (-999)\n        create clone of (_myself_ v)\n        go to x: (50) y: (-999)\n        create clone of (_myself_ v)\n        go to x: (148) y: (-999)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [3-20]>>\n    end\nend\n\nwhen I start as a clone\ngo to [back v] layer\nshow\nforever\n    wait (pick random (0.1) to (1)) seconds\n    switch costume to (up v)\n    start sound [sfxStrikeManBounce v]\n    repeat (8)\n        change y by (12)\n    end\n    repeat (8)\n        change y by (8)\n    end\n    repeat (4)\n        change y by (4)\n    end\n    repeat (3)\n        change y by (2)\n    end\n    repeat (2)\n        change y by (1)\n    end\n    switch costume to (down v)\n    repeat (2)\n        change y by (-1)\n    end\n    repeat (3)\n        change y by (-2)\n    end\n    repeat (4)\n        change y by (-4)\n    end\n    repeat (8)\n        change y by (-8)\n    end\n    repeat (8)\n        change y by (-12)\n    end\n    wait (pick random (0.1) to (2)) seconds\nend\n\nwhen I start as a clone\ngo to [back v] layer\n\nwhen I receive [left v]\ndelete this clone\n\nwhen I receive [right v]\ndelete this clone\n\nwhen I receive [up v]\ndelete this clone\n\nwhen I receive [down v]\ndelete this clone\n\n@Laser\n\nwhen I receive [level start v]\nclear graphic effects\n\nwhen I receive [player died v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nhide\ndelete this clone\n\nwhen I receive [level start v]\n\nwhen flag clicked\nset [laser sync v] to [0]\nhide\nforever\n    repeat (10)\n        change [laser sync v] by (5)\n    end\n    repeat (10)\n        change [laser sync v] by (-5)\n    end\nend\n\nwhen I start as a clone\nswitch costume to (1 v)\nstart sound [gulper_mage_fire v]\nshow\n\nwhen I receive [level start v]\nforever\n    if <([costume name v] of [ground v]) = [2-12]> then\n        wait (0.3) seconds\n        go to x: (999) y: (117)\n        create clone of (_myself_ v)\n        wait (0.3) seconds\n        go to x: (-999) y: (51)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [2-12]>>\n    end\n    if <([costume name v] of [ground v]) = [2-13]> then\n        wait (0.8) seconds\n        go to x: (-999) y: (75)\n        create clone of (_myself_ v)\n        wait (0.3) seconds\n        go to x: (-999) y: (27)\n        create clone of (_myself_ v)\n        wait until <([y position v] of [player v]) < [-100]>\n        wait (0.3) seconds\n        go to x: (999) y: (-99)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [2-13]>>\n        wait until <not <([costume name v] of [ground v]) = [2-13]>>\n    end\n    if <([costume name v] of [ground v]) = [2-14]> then\n        wait (0.2) seconds\n        go to x: (999) y: (117)\n        create clone of (_myself_ v)\n        wait (0.6) seconds\n        go to x: (999) y: (45)\n        create clone of (_myself_ v)\n        wait (0.2) seconds\n        go to x: (-999) y: (-21)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [2-14]>>\n    end\n    if <([costume name v] of [ground v]) = [2-15]> then\n        wait (0.1) seconds\n        go to x: (-999) y: (147)\n        create clone of (_myself_ v)\n        wait (0.3) seconds\n        go to x: (-999) y: (27)\n        create clone of (_myself_ v)\n        wait (0.3) seconds\n        go to x: (-999) y: (-21)\n        create clone of (_myself_ v)\n        wait (0.3) seconds\n        go to x: (999) y: (-75)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [2-15]>>\n    end\n    if <([costume name v] of [ground v]) = [2-16]> then\n        wait (0.8) seconds\n        go to x: (-999) y: (51)\n        create clone of (_myself_ v)\n        wait (0.2) seconds\n        go to x: (-999) y: (-69)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [2-16]>>\n    end\n    if <([costume name v] of [ground v]) = [2-23]> then\n        wait (4.6) seconds\n        go to x: (-999) y: (123)\n        if <([costume name v] of [ground v]) = [2-23]> then\n            create clone of (_myself_ v)\n        end\n        wait (0.6) seconds\n        go to x: (-999) y: (51)\n        if <([costume name v] of [ground v]) = [2-23]> then\n            create clone of (_myself_ v)\n        end\n        wait (0.2) seconds\n        go to x: (999) y: (-27)\n        if <([costume name v] of [ground v]) = [2-23]> then\n            create clone of (_myself_ v)\n        end\n        wait until <not <([costume name v] of [ground v]) = [2-23]>>\n    end\nend\n\nwhen I start as a clone\nif <[0] > (x position)> then\n    repeat until <(x position) > [0]>\n        point in direction (90)\n        change x by (8)\n        set [brightness v] effect to (Laser Sync)\n    end\n    forever\n        repeat (27)\n            point in direction (90)\n            change x by (8)\n            set [brightness v] effect to (Laser Sync)\n        end\n        change x by (-186)\n    end\nelse\n    repeat until <[0] > (x position)>\n        point in direction (-90)\n        change x by (-8)\n        set [brightness v] effect to (Laser Sync)\n    end\n    forever\n        repeat (27)\n            point in direction (-90)\n            change x by (-8)\n            set [brightness v] effect to (Laser Sync)\n        end\n        change x by (186)\n    end\nend\n\nwhen I receive [left v]\ndelete this clone\n\nwhen I receive [down v]\ndelete this clone\n\nwhen I receive [right v]\ndelete this clone\n\nwhen I receive [up v]\ndelete this clone\n\nwhen I receive [delete bullet v]\n\nbroadcast (Delete Bullet v)\n\ngo to [front v] layer\n\nnext costume\n\n\n\nwhen flag clicked\n\nwhen I start as a clone\nset [brightness v] effect to (0)\n\ndelete this clone\n\n@Player Explode\n\nwhen flag clicked\nhide\n\nwhen I receive [level start v]\nhide\n\nwhen I receive [player explode v]\ngo to (player v)\nrepeat (3)\n    start sound [boom5 v]\n    point in direction (0)\n    create clone of (_myself_ v)\n    point in direction (45)\n    create clone of (_myself_ v)\n    point in direction (90)\n    create clone of (_myself_ v)\n    point in direction (135)\n    create clone of (_myself_ v)\n    point in direction (180)\n    create clone of (_myself_ v)\n    point in direction (-135)\n    create clone of (_myself_ v)\n    point in direction (-90)\n    create clone of (_myself_ v)\n    point in direction (-45)\n    create clone of (_myself_ v)\n    wait (0.2) seconds\nend\nwait (4) seconds\nbroadcast (Player Died v)\nwait (0.5) seconds\nbroadcast (Level Text v)\n\nwhen I start as a clone\nshow\nrepeat (2)\n    move (8) steps\nend\nrepeat until <touching (_edge_ v)?>\n    move (8) steps\nend\ndelete this clone\n\nwhen I start as a clone\nforever\n    wait (0.01) seconds\n    next costume\nend\n\n@missile\n\nwhen I receive [game over v]\ndelete this clone\n\nwhen I receive [enemy flash v]\nif <touching (bullet v)?> then\n    set [brightness v] effect to (100)\n    repeat (5)\n        change [brightness v] effect by (-20)\n    end\nend\n\nwhen I receive [level start v]\nclear graphic effects\n\nwhen I receive [player died v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nhide\ndelete this clone\n\nwhen I start as a clone\nswitch costume to (closed v)\nshow\nrepeat (1)\n    wait until <touching (bullet v)?>\n    broadcast (Enlarge Bullet v)\n    set [enemy x v] to (x position)\n    set [enemy y v] to (y position)\n    broadcast (Delete Bullet v)\n    broadcast (Star Flash v)\n    wait (Enemy I-Frame) seconds\nend\nwait until <touching (bullet v)?>\nstart sound [bomb_explode v]\nset [enemy x v] to (x position)\nset [enemy y v] to (y position)\nbroadcast (Delete Bullet v)\nbroadcast (Enemy Explode v)\ndelete this clone\n\nwhen I receive [star flash v]\n\nwhen I start as a clone\nset y to ([y position v] of [player collsion v])\nshow\nforever\n    repeat (2)\n        if <<(costume [name v]) = [middle]> or <(costume [name v]) = [middle2]>> then\n            change y by (1)\n        end\n    end\n    repeat (2)\n        if <<(costume [name v]) = [middle]> or <(costume [name v]) = [middle2]>> then\n            change y by (2)\n        end\n    end\n    repeat (3)\n        if <<(costume [name v]) = [middle]> or <(costume [name v]) = [middle2]>> then\n            change y by (3)\n        end\n    end\n    repeat (4)\n        if <<(costume [name v]) = [middle]> or <(costume [name v]) = [middle2]>> then\n            change y by (6)\n        end\n    end\n    repeat (3)\n        if <<(costume [name v]) = [middle]> or <(costume [name v]) = [middle2]>> then\n            change y by (3)\n        end\n    end\n    repeat (2)\n        if <<(costume [name v]) = [middle]> or <(costume [name v]) = [middle2]>> then\n            change y by (2)\n        end\n    end\n    repeat (2)\n        if <<(costume [name v]) = [middle]> or <(costume [name v]) = [middle2]>> then\n            change y by (1)\n        end\n    end\n    repeat (2)\n        if <<(costume [name v]) = [middle]> or <(costume [name v]) = [middle2]>> then\n            change y by (-1)\n        end\n    end\n    repeat (2)\n        if <<(costume [name v]) = [middle]> or <(costume [name v]) = [middle2]>> then\n            change y by (-2)\n        end\n    end\n    repeat (2)\n        if <<(costume [name v]) = [middle]> or <(costume [name v]) = [middle2]>> then\n            change y by (-3)\n        end\n    end\n    repeat (1)\n        if <<(costume [name v]) = [middle]> or <(costume [name v]) = [middle2]>> then\n            change y by (-8)\n        end\n    end\n    repeat (2)\n        if <<(costume [name v]) = [middle]> or <(costume [name v]) = [middle2]>> then\n            change y by (-6)\n        end\n    end\n    repeat (2)\n        if <<(costume [name v]) = [middle]> or <(costume [name v]) = [middle2]>> then\n            change y by (-3)\n        end\n    end\n    repeat (2)\n        if <<(costume [name v]) = [middle]> or <(costume [name v]) = [middle2]>> then\n            change y by (-2)\n        end\n    end\n    repeat (2)\n        if <<(costume [name v]) = [middle]> or <(costume [name v]) = [middle2]>> then\n            change y by (-1)\n        end\n    end\nend\n\nwhen I start as a clone\nswitch costume to (middle v)\nrepeat (10)\n    if <<(costume [name v]) = [middle]> or <(costume [name v]) = [middle2]>> then\n        move (4) steps\n    end\nend\nrepeat until <touching (_edge_ v)?>\n    if <<(costume [name v]) = [middle]> or <(costume [name v]) = [middle2]>> then\n        move (4) steps\n    end\nend\nrepeat (4)\n    if <<(costume [name v]) = [middle]> or <(costume [name v]) = [middle2]>> then\n        move (4) steps\n    end\nend\ndelete this clone\n\nwhen I receive [level start v]\nforever\n    if <([costume name v] of [ground v]) = [3-3]> then\n        set x to (250)\n        point in direction (-90)\n        wait (0.8) seconds\n        if <([costume name v] of [ground v]) = [3-3]> then\n            create clone of (_myself_ v)\n            wait (0.8) seconds\n            if <([costume name v] of [ground v]) = [3-3]> then\n                create clone of (_myself_ v)\n                wait (0.8) seconds\n                if <([costume name v] of [ground v]) = [3-3]> then\n                    create clone of (_myself_ v)\n                    wait until <not <([costume name v] of [ground v]) = [3-3]>>\n                end\n            end\n        end\n    end\n    if <([costume name v] of [ground v]) = [3-4]> then\n        set x to (250)\n        point in direction (-90)\n        wait (0) seconds\n        if <([costume name v] of [ground v]) = [3-4]> then\n            create clone of (_myself_ v)\n            wait (0.8) seconds\n            if <([costume name v] of [ground v]) = [3-4]> then\n                create clone of (_myself_ v)\n                wait (0.8) seconds\n                if <([costume name v] of [ground v]) = [3-4]> then\n                    create clone of (_myself_ v)\n                    wait until <([y position v] of [player v]) > [20]>\n                    if <([costume name v] of [ground v]) = [3-4]> then\n                        create clone of (_myself_ v)\n                        wait (0.8) seconds\n                        if <([costume name v] of [ground v]) = [3-4]> then\n                            create clone of (_myself_ v)\n                            wait (0.8) seconds\n                            if <([costume name v] of [ground v]) = [3-4]> then\n                                create clone of (_myself_ v)\n                                wait until <not <([costume name v] of [ground v]) = [3-4]>>\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    if <([costume name v] of [ground v]) = [3-5]> then\n        set x to (250)\n        point in direction (-90)\n        wait (0.8) seconds\n        if <([costume name v] of [ground v]) = [3-5]> then\n            create clone of (_myself_ v)\n            wait (0.8) seconds\n            if <([costume name v] of [ground v]) = [3-5]> then\n                create clone of (_myself_ v)\n                wait (0.8) seconds\n                if <([costume name v] of [ground v]) = [3-5]> then\n                    create clone of (_myself_ v)\n                    wait until <not <([costume name v] of [ground v]) = [3-5]>>\n                end\n            end\n        end\n    end\n    if <([costume name v] of [ground v]) = [3-8]> then\n        set x to (250)\n        point in direction (-90)\n        wait (0.4) seconds\n        if <([costume name v] of [ground v]) = [3-8]> then\n            create clone of (_myself_ v)\n            wait (0.8) seconds\n            if <([costume name v] of [ground v]) = [3-8]> then\n                create clone of (_myself_ v)\n                wait (0.8) seconds\n                if <([costume name v] of [ground v]) = [3-8]> then\n                    create clone of (_myself_ v)\n                    wait until <not <([costume name v] of [ground v]) = [3-8]>>\n                end\n            end\n        end\n    end\n    if <([costume name v] of [ground v]) = [3-15]> then\n        wait until <([y position v] of [player v]) > [50]>\n        set x to (-250)\n        point in direction (90)\n        wait (0.1) seconds\n        if <([costume name v] of [ground v]) = [3-15]> then\n            create clone of (_myself_ v)\n            wait (0.8) seconds\n            if <([costume name v] of [ground v]) = [3-15]> then\n                create clone of (_myself_ v)\n                wait (0.8) seconds\n                if <([costume name v] of [ground v]) = [3-15]> then\n                    create clone of (_myself_ v)\n                    wait until <not <([costume name v] of [ground v]) = [3-15]>>\n                end\n            end\n        end\n    end\n    if <([costume name v] of [ground v]) = [3-16]> then\n        wait until <([x position v] of [player v]) > [-20]>\n        set x to (-250)\n        point in direction (90)\n        wait (0.5) seconds\n        if <([costume name v] of [ground v]) = [3-16]> then\n            create clone of (_myself_ v)\n            wait (0.8) seconds\n            if <([costume name v] of [ground v]) = [3-16]> then\n                create clone of (_myself_ v)\n                wait (0.8) seconds\n                if <([costume name v] of [ground v]) = [3-16]> then\n                    create clone of (_myself_ v)\n                    wait until <not <([costume name v] of [ground v]) = [3-16]>>\n                end\n            end\n        end\n    end\n    if <([costume name v] of [ground v]) = [3-19]> then\n        wait until <([y position v] of [player v]) > [50]>\n        set x to (-250)\n        point in direction (90)\n        wait (0.5) seconds\n        if <([costume name v] of [ground v]) = [3-19]> then\n            create clone of (_myself_ v)\n            wait (0.8) seconds\n            if <([costume name v] of [ground v]) = [3-19]> then\n                create clone of (_myself_ v)\n                wait (0.8) seconds\n                if <([costume name v] of [ground v]) = [3-19]> then\n                    create clone of (_myself_ v)\n                    wait until <not <([costume name v] of [ground v]) = [3-19]>>\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nforever\n    wait (0.01) seconds\n    if <<(costume [name v]) = [middle]> or <(costume [name v]) = [middle2]>> then\n        switch costume to (middle v)\n    end\n    wait (0.01) seconds\n    if <<(costume [name v]) = [middle]> or <(costume [name v]) = [middle2]>> then\n        switch costume to (middle2 v)\n    end\nend\n\nwhen I receive [left v]\ndelete this clone\n\nwhen I receive [right v]\ndelete this clone\n\nwhen I receive [up v]\ndelete this clone\n\nwhen I receive [down v]\ndelete this clone\n\nif <touching (bullet v)?> then\n    set [brightness v] effect to (100)\n    wait (0.1) seconds\n    clear graphic effects\nend\nif <not <(costume [number v]) > [1]>> then\n    repeat until <touching (bullet v)?>\n        clear graphic effects\n    end\nend\n\n@Arrow\n\nwhen I receive [player died v]\nstop [other scripts in sprite v]\nhide\ndelete this clone\n\nwhen flag clicked\nclear graphic effects\nhide\n\nwhen I receive [player start v]\nset [ghost v] effect to (100)\nforever\n    hide\n    if <([costume name v] of [ground v]) = [1-1]> then\n        switch costume to (1-1 v)\n        show\n    end\n    if <([costume name v] of [ground v]) = [1-8]> then\n        switch costume to (1-8 v)\n        show\n    end\n    if <([costume name v] of [ground v]) = [1-12]> then\n        switch costume to (1-12 v)\n        show\n    end\nend\n\nwhen I receive [player start v]\ngo to x: (0) y: (0)\nforever\n    if <([costume name v] of [ground v]) = [1-1]> then\n        repeat (3)\n            change x by (1)\n        end\n        repeat (2)\n            change x by (2)\n        end\n        repeat (3)\n            change x by (1)\n        end\n        repeat (3)\n            change x by (-1)\n        end\n        repeat (2)\n            change x by (-2)\n        end\n        repeat (3)\n            change x by (-1)\n        end\n    end\n    if <<([costume name v] of [ground v]) = [1-8]> or <([costume name v] of [ground v]) = [1-12]>> then\n        repeat (3)\n            change y by (1)\n        end\n        repeat (2)\n            change y by (2)\n        end\n        repeat (3)\n            change y by (1)\n        end\n        repeat (3)\n            change y by (-1)\n        end\n        repeat (2)\n            change y by (-2)\n        end\n        repeat (3)\n            change y by (-1)\n        end\n    end\nend\n\nwhen I receive [right v]\nset [ghost v] effect to (100)\nwait (0.5) seconds\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [player start v]\nwait (0.5) seconds\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\n@Stomp-Eye\n\nwhen I receive [game over v]\ndelete this clone\n\nwhen I receive [enemy flash v]\nif <touching (bullet v)?> then\n    set [brightness v] effect to (100)\n    repeat (5)\n        change [brightness v] effect by (-20)\n    end\nend\n\nwhen I start as a clone\nshow\nrepeat (14)\n    wait until <touching (bullet v)?>\n    broadcast (Enlarge Bullet v)\n    set [enemy x v] to (x position)\n    set [enemy y v] to (y position)\n    broadcast (Delete Bullet v)\n    broadcast (Stomp Flash v)\n    wait (Enemy I-Frame) seconds\nend\nwait until <touching (bullet v)?>\nstart sound [bomb_explode v]\nset [enemy x v] to (x position)\nset [enemy y v] to (y position)\nbroadcast (Delete Bullet v)\nbroadcast (Enemy Explode v)\ndelete this clone\n\nwhen I receive [stomp flash v]\n\nwhen I receive [level start v]\nclear graphic effects\n\nwhen I receive [player died v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nhide\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nclear graphic effects\n\nwhen I receive [level start v]\nforever\n    if <([costume name v] of [ground v]) = [3-11]> then\n        go to x: (-120) y: (-111)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [3-11]>>\n    end\n    if <([costume name v] of [ground v]) = [3-13]> then\n        go to x: (120) y: (-111)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [3-13]>>\n    end\n    if <([costume name v] of [ground v]) = [3-17]> then\n        go to x: (170) y: (-111)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [3-17]>>\n    end\nend\n\nwhen I start as a clone\ngo to [back v] layer\nset rotation style [don't rotate v]\nshow\nforever\n    wait (0) seconds\n    if <(G or A Stomp-Eye) = [G]> then\n        if <not <(costume [number v]) > [3]>> then\n            switch costume to (3 v)\n        end\n        wait (0.4) seconds\n        if <not <(costume [number v]) > [3]>> then\n            switch costume to (2 v)\n        end\n    else\n        repeat until <touching (_edge_ v)?>\n            if <not <(costume [number v]) > [3]>> then\n                move (3) steps\n                change y by (-8)\n                if <touching (ground v)?> then\n                    turn right (180) degrees\n                end\n            end\n        end\n        repeat (5)\n            if <not <(costume [number v]) > [3]>> then\n                move (3) steps\n                change y by (-8)\n                if <touching (ground v)?> then\n                    turn right (180) degrees\n                end\n            end\n        end\n        delete this clone\n    end\n    if <([x position v] of [player collsion v]) > (x position)> then\n        point in direction (90)\n    else\n        point in direction (-90)\n    end\n    repeat (6)\n        if <not <(costume [number v]) > [3]>> then\n            move (3) steps\n            change y by (8)\n            if <touching (ground v)?> then\n                turn right (180) degrees\n            end\n        end\n    end\n    repeat (4)\n        if <not <(costume [number v]) > [3]>> then\n            move (3) steps\n            change y by (4)\n            if <touching (ground v)?> then\n                turn right (180) degrees\n            end\n        end\n    end\n    repeat (2)\n        if <not <(costume [number v]) > [3]>> then\n            move (3) steps\n            change y by (2)\n            if <touching (ground v)?> then\n                turn right (180) degrees\n            end\n        end\n    end\n    repeat (2)\n        if <not <(costume [number v]) > [3]>> then\n            move (3) steps\n            change y by (1)\n            if <touching (ground v)?> then\n                turn right (180) degrees\n            end\n        end\n    end\n    repeat (2)\n        if <not <(costume [number v]) > [3]>> then\n            move (3) steps\n            change y by (-1)\n            if <touching (ground v)?> then\n                turn right (180) degrees\n            end\n        end\n    end\n    repeat (2)\n        if <not <(costume [number v]) > [3]>> then\n            move (3) steps\n            change y by (-2)\n            if <touching (ground v)?> then\n                turn right (180) degrees\n            end\n        end\n    end\n    repeat (4)\n        if <not <(costume [number v]) > [3]>> then\n            move (3) steps\n            change y by (-4)\n            if <touching (ground v)?> then\n                turn right (180) degrees\n            end\n        end\n    end\n    repeat (6)\n        if <not <(costume [number v]) > [3]>> then\n            move (3) steps\n            change y by (-8)\n            if <touching (ground v)?> then\n                turn right (180) degrees\n            end\n        end\n    end\n    if <(G or A Stomp-Eye) = [G]> then\n        if <not <(costume [number v]) > [3]>> then\n            switch costume to (3 v)\n            start sound [Thwomp v]\n            if <not <(costume [number v]) > [3]>> then\n                broadcast (Stomp-Eye Bullet v)\n                set [stomp-eye x v] to (x position)\n                set [stomp-eye y v] to (y position)\n            end\n        end\n    end\nend\n\nwhen I receive [right v]\ndelete this clone\n\nwhen I receive [down v]\ndelete this clone\n\nwhen I receive [up v]\ndelete this clone\n\nwhen I start as a clone\nswitch costume to (3 v)\nforever\n    if <touching (ground v)?> then\n        set [g or a stomp-eye v] to [G]\n    else\n        set [g or a stomp-eye v] to [A]\n    end\nend\n\nif <touching (bullet v)?> then\n    set [brightness v] effect to (100)\n    wait (0.1) seconds\n    clear graphic effects\nend\nif <not <(costume [number v]) > [1]>> then\n    repeat until <touching (bullet v)?>\n        clear graphic effects\n    end\nend\n\n@Stomp-Eye bullet\n\nwhen I receive [game over v]\ndelete this clone\n\nwhen I receive [level start v]\nclear graphic effects\n\nwhen I receive [player died v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nhide\ndelete this clone\n\nwhen flag clicked\nswitch costume to (control v)\nhide\n\nwhen I receive [stomp-eye bullet v]\nif <(costume [name v]) = [Control]> then\n    set x to (Stomp-Eye X)\n    set y to (Stomp-Eye Y)\n    change y by (15)\n    change x by (-20)\n    point in direction (-90)\n    create clone of (_myself_ v)\n    change x by (40)\n    point in direction (90)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nstart sound [Fire Ball v]\nswitch costume to (1 v)\nshow\nrepeat until <touching (_edge_ v)?>\n    move (9) steps\nend\ndelete this clone\n\nchange y by (20)\n\nwhen I receive [up v]\ndelete this clone\n\nwhen I receive [down v]\ndelete this clone\n\nwhen I receive [right v]\ndelete this clone\n\n@HP Pickup\n\nwhen I receive [game over v]\ndelete this clone\n\nwhen I receive [level start v]\nclear graphic effects\n\nwhen I receive [player died v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nhide\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I receive [level start v]\nforever\n    if <([costume name v] of [ground v]) = [1-13]> then\n        go to x: (133) y: (-120)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [1-13]>>\n    end\n    if <([costume name v] of [ground v]) = [1-18.7]> then\n        go to x: (-120) y: (48)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [1-18.7]>>\n    end\n    if <([costume name v] of [ground v]) = [3-11]> then\n        go to x: (-95) y: (48)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [3-11]>>\n    end\n    if <([costume name v] of [ground v]) = [3-19]> then\n        go to x: (-119) y: (48)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [3-19]>>\n    end\nend\n\nwhen I start as a clone\nclear graphic effects\nshow\nforever\n    repeat (10)\n        change [brightness v] effect by (5)\n    end\n    repeat (10)\n        change [brightness v] effect by (-5)\n    end\nend\n\nwhen I receive [down v]\ndelete this clone\n\nwhen I receive [up v]\ndelete this clone\n\nwhen I receive [right v]\ndelete this clone\n\nclear graphic effects\n\nwhen I start as a clone\nforever\n    if <touching (player v)?> then\n        start sound [Contra SFX \(29\) v]\n        broadcast (Hp up v)\n        delete this clone\n    end\nend\n\n@Bullet Particle\n\nwhen I receive [bullet particle v]\nif <(costume [name v]) = [Control]> then\n    set x to (Bullet X)\n    set y to (Bullet Y)\n    point in direction (pick random (-180) to (180))\n    repeat (pick random (2) to (3))\n        turn right (135) degrees\n        create clone of (_myself_ v)\n    end\n    switch costume to (control v)\nend\n\nwhen flag clicked\nswitch costume to (control v)\nhide\n\nwhen I start as a clone\nswitch costume to (costume1 v)\ngo to [front v] layer\nshow\nrepeat (2)\n    move (4) steps\nend\nrepeat (2)\n    change [ghost v] effect by (0)\n    move (4) steps\n    change y by (-1)\nend\nrepeat (2)\n    change [ghost v] effect by (0)\n    move (4) steps\n    change y by (-3)\nend\nrepeat (2)\n    change [ghost v] effect by (0)\n    move (4) steps\n    change y by (-6)\nend\nrepeat (2)\n    change [ghost v] effect by (0)\n    move (4) steps\n    change y by (-8)\nend\nrepeat (2)\n    change [ghost v] effect by (0)\n    move (4) steps\n    change y by (-10)\nend\ndelete this clone\n\nwhen I receive [right v]\ndelete this clone\n\nwhen I receive [up v]\ndelete this clone\n\nwhen I receive [down v]\ndelete this clone\n\nwhen I start as a clone\nforever\n    if <touching (bullet deleter v)?> then\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nset size to (800) %\nrepeat (999)\n    change size by (-30)\nend\n\n@Chomper Spore\n\nwhen I receive [game over v]\ndelete this clone\n\nwhen I receive [chomper  v]\nif <(costume [name v]) = [Control]> then\n    set x to (Chomper X)\n    set y to (Chomper Y)\n    point in direction (90)\n    create clone of (_myself_ v)\n    point in direction (-90)\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nswitch costume to (control v)\nhide\nset rotation style [left-right v]\n\nwhen I start as a clone\nshow\nrepeat (6)\n    change y by (8)\nend\nrepeat (4)\n    change y by (4)\nend\nrepeat (2)\n    change y by (2)\nend\nrepeat (1)\n    change y by (1)\nend\nrepeat (1)\n    change y by (-1)\nend\nrepeat (2)\n    change y by (-2)\nend\nrepeat (4)\n    change y by (-4)\nend\nrepeat until <<touching (ground v)?> or <<touching (bullet deleter v)?> or <touching (jump through platform v)?>>>\n    change y by (-8)\nend\nstart sound [bomb_explode v]\nset [brightness v] effect to (100)\nswitch costume to (explode1 v)\nwait (0.05) seconds\nswitch costume to (explode2 v)\nwait (0.05) seconds\nswitch costume to (explode3 v)\nwait (0.05) seconds\ndelete this clone\n\nwhen I start as a clone\nswitch costume to (costume1 v)\nforever\n    if <(costume [name v]) = [Costume1]> then\n        move (3) steps\n    end\nend\n\nwhen I receive [right v]\ndelete this clone\n\nwhen I receive [up v]\ndelete this clone\n\nwhen I receive [down v]\ndelete this clone\n\n@Boss Explsosion\n\nwhen I receive [boss explode v]\nif << ([costume name v] of [ground v]) contains [1-]?> or < ([costume name v] of [ground v]) contains [3-24]?>> then\n    if <(costume [name v]) = [Control]> then\n        repeat (5)\n            start sound [boom5 v]\n            set x to (Boss 1 X)\n            set y to (Boss 1 Y)\n            point in direction (0)\n            create clone of (_myself_ v)\n            point in direction (45)\n            create clone of (_myself_ v)\n            point in direction (90)\n            create clone of (_myself_ v)\n            point in direction (135)\n            create clone of (_myself_ v)\n            point in direction (180)\n            create clone of (_myself_ v)\n            point in direction (-135)\n            create clone of (_myself_ v)\n            point in direction (-90)\n            create clone of (_myself_ v)\n            point in direction (-45)\n            create clone of (_myself_ v)\n            wait (0.25) seconds\n        end\n    end\nend\n\nwhen flag clicked\nswitch costume to (control v)\nhide\n\nwhen I start as a clone\nswitch costume to (costume1 v)\nshow\nrepeat (4)\n    move (8) steps\nend\nrepeat (4)\n    move (4) steps\nend\nrepeat (2)\n    move (2) steps\nend\nrepeat (5)\n    change [ghost v] effect by (20)\nend\ndelete this clone\n\nwhen I receive [boss explode v]\nif <<([costume name v] of [ground v]) = [3-9]> or <([costume name v] of [ground v]) = [3-21.6]>> then\n    if <(costume [name v]) = [Control]> then\n        repeat (3)\n            start sound [boom5 v]\n            set x to (Tank X)\n            set y to (-84)\n            point in direction (0)\n            create clone of (_myself_ v)\n            point in direction (45)\n            create clone of (_myself_ v)\n            point in direction (90)\n            create clone of (_myself_ v)\n            point in direction (135)\n            create clone of (_myself_ v)\n            point in direction (180)\n            create clone of (_myself_ v)\n            point in direction (-135)\n            create clone of (_myself_ v)\n            point in direction (-90)\n            create clone of (_myself_ v)\n            point in direction (-45)\n            create clone of (_myself_ v)\n            wait (0.25) seconds\n        end\n    end\nend\n\n@Tank\n\nwhen I receive [game over v]\ndelete this clone\n\nwhen I receive [enemy flash v]\nif <touching (bullet v)?> then\n    set [brightness v] effect to (100)\n    repeat (5)\n        change [brightness v] effect by (-20)\n    end\nend\n\nwhen I start as a clone\nshow\nrepeat (39)\n    wait until <touching (bullet v)?>\n    broadcast (Enlarge Bullet v)\n    set [enemy x v] to (x position)\n    set [enemy y v] to (y position)\n    broadcast (Delete Bullet v)\n    broadcast (Stomp Flash v)\n    wait (Enemy I-Frame) seconds\nend\nwait until <touching (bullet v)?>\nset [brightness v] effect to (100)\nswitch costume to (explode1 v)\ngo to [front v] layer\nbroadcast (Boss Explode v)\ndelete this clone\n\nwhen I receive [stomp flash v]\n\nwhen I receive [player died v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nhide\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I receive [level start v]\nforever\n    if <([costume name v] of [ground v]) = [3-9]> then\n        go to x: (120) y: (-84)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [3-9]>>\n    end\n    if <([costume name v] of [ground v]) = [3-21.6]> then\n        go to x: (120) y: (-84)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [3-21.6]>>\n    end\nend\n\nwhen I start as a clone\nset [tankanimation v] to [0]\nshow\nswitch costume to (1 v)\nwait (1) seconds\nforever\n    wait (0.1) seconds\n    start sound [sfxStrikeManBounce v]\n    switch costume to (shoot1 v)\n    wait (0.1) seconds\n    switch costume to (shoot2 v)\n    wait (0.1) seconds\n    switch costume to (shoot3 v)\n    wait (0.1) seconds\n    broadcast (Tank Laser v)\n    wait (1) seconds\n    broadcast (Tank Laser v)\n    wait (1) seconds\n    start sound [sfxStrikeManBounce2 v]\n    wait (0.05) seconds\n    switch costume to (shoot2 v)\n    wait (0.05) seconds\n    switch costume to (shoot1 v)\n    wait (0.05) seconds\n    set [tankanimation v] to [L]\n    repeat (30)\n        change x by (-3)\n    end\n    set [tankanimation v] to [0]\n    set [tankanimation v] to [0]\n    wait (0.01) seconds\n    switch costume to (throw v)\n    wait (0.2) seconds\n    switch costume to (throw v)\n    broadcast (Tank Bomb v)\n    wait (0.3) seconds\n    broadcast (Tank Bomb v)\n    wait (0.3) seconds\n    broadcast (Tank Bomb v)\n    wait (0.3) seconds\n    set [tankanimation v] to [R]\n    repeat (30)\n        change x by (3)\n    end\n    set [tankanimation v] to [0]\nend\n\nwhen I receive [right v]\ndelete this clone\n\nwhen I receive [up v]\ndelete this clone\n\nwhen I receive [down v]\ndelete this clone\n\nwhen I start as a clone\nforever\n    if <(TankAnimation) = [L]> then\n        switch costume to (1 v)\n        wait (0.06) seconds\n        switch costume to (2 v)\n        wait (0.06) seconds\n        switch costume to (3 v)\n        wait (0.06) seconds\n    end\n    if <(TankAnimation) = [R]> then\n        switch costume to (3 v)\n        wait (0.06) seconds\n        switch costume to (2 v)\n        wait (0.06) seconds\n        switch costume to (1 v)\n        wait (0.06) seconds\n    end\nend\n\nwhen I start as a clone\nforever\n    set [tank x v] to (x position)\nend\n\nif <touching (bullet v)?> then\n    set [brightness v] effect to (100)\n    wait (0.1) seconds\n    clear graphic effects\nend\nif <not <(costume [number v]) > [1]>> then\n    repeat until <touching (bullet v)?>\n        clear graphic effects\n    end\nend\n\nset [enemy i-frame v] to [0.01]\n\n@Tank Bullet\n\nwhen I receive [game over v]\ndelete this clone\n\nwhen I receive [player died v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nhide\ndelete this clone\n\nwhen I receive [tank laser v]\ngo to x: (Tank X) y: (-84)\ncreate clone of (_myself_ v)\nwait (0.1) seconds\ncreate clone of (_myself_ v)\n\nrepeat (2)\n\nwhen I start as a clone\nshow\nforever\n    switch costume to (1 v)\n    wait (0.06) seconds\n    switch costume to (2 v)\n    wait (0.06) seconds\nend\n\nwhen flag clicked\nswitch costume to (control v)\nhide\n\nwhen I start as a clone\nstart sound [Fire Ball v]\nrepeat until <touching (_edge_ v)?>\n    change x by (-10)\nend\ndelete this clone\n\n@Tank Bomb\n\nwhen I receive [game over v]\ndelete this clone\n\nwhen I start as a clone\nshow\nforever\n    if <not <(costume [number v]) > [5]>> then\n        switch costume to (1 v)\n    end\n    wait (0.05) seconds\n    if <not <(costume [number v]) > [5]>> then\n        switch costume to (2 v)\n    end\n    wait (0.05) seconds\n    if <not <(costume [number v]) > [5]>> then\n        switch costume to (3 v)\n    end\n    wait (0.05) seconds\n    if <not <(costume [number v]) > [5]>> then\n        switch costume to (4 v)\n    end\n    wait (0.05) seconds\nend\n\nwhen flag clicked\nswitch costume to (control v)\nhide\n\nwhen I receive [tank bomb v]\nif <(costume [name v]) = [Control]> then\n    set x to (Tank X)\n    change x by (10)\n    create clone of (_myself_ v)\n    wait (0.3) seconds\nend\n\nrepeat (3)\n\nwhen I start as a clone\nstart sound [sfxStrikeManBounce v]\nrepeat (4)\n    change y by (12)\nend\nrepeat (8)\n    change y by (8)\nend\nrepeat (4)\n    change y by (4)\nend\nrepeat (2)\n    change y by (2)\nend\nrepeat (2)\n    change y by (-2)\nend\nrepeat (4)\n    change y by (-4)\nend\nrepeat (8)\n    change y by (-8)\nend\nrepeat until <touching (ground v)?>\n    change y by (-12)\nend\n\nwhen I start as a clone\nrepeat until <touching (ground v)?>\n    change x by (-6)\nend\nstart sound [bomb_explode v]\nset [brightness v] effect to (100)\nswitch costume to (explode1 v)\nwait (0.05) seconds\nswitch costume to (explode2 v)\nwait (0.05) seconds\nswitch costume to (explode3 v)\nwait (0.05) seconds\ndelete this clone\n\n@Mini-Boss Wall\n\nwhen I receive [player died v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nhide\ndelete this clone\n\ngo to (ground v)\n\nwhen I receive [level start v]\nhide\nswitch costume to (13 v)\nforever\n    if <<([costume name v] of [ground v]) = [3-9]> or <([costume name v] of [ground v]) = [3-21.6]>> then\n        show\n        switch costume to (13 v)\n        wait until <not <<([costume name v] of [ground v]) = [3-9]> or <([costume name v] of [ground v]) = [3-21.6]>>>\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [boss explode v]\nif <<([costume name v] of [ground v]) = [3-9]> or <([costume name v] of [ground v]) = [3-21.6]>> then\n    wait (0.8) seconds\n    show\n    switch costume to (13 v)\n    repeat (13)\n        wait (0.02) seconds\n        next costume\n        start sound [alchemycoin_bounce v]\n    end\nend\n\nwhen I receive [right v]\nhide\n\n@Propellor\n\nwhen I receive [game over v]\ndelete this clone\n\nwhen I receive [player died v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nhide\ndelete this clone\n\nwhen I start as a clone\nshow\nrepeat (3)\n    wait until <touching (bullet v)?>\n    broadcast (Enlarge Bullet v)\n    set [enemy x v] to (x position)\n    set [enemy y v] to (y position)\n    broadcast (Delete Bullet v)\n    broadcast (Enemy Flash v)\n    wait (Enemy I-Frame) seconds\nend\nwait until <touching (bullet v)?>\nstart sound [bomb_explode v]\nset [enemy x v] to (x position)\nset [enemy y v] to (y position)\nbroadcast (Enemy Explode v)\ndelete this clone\n\nwhen I receive [enemy flash v]\nif <touching (bullet v)?> then\n    set [brightness v] effect to (100)\n    repeat (5)\n        change [brightness v] effect by (-20)\n    end\nend\n\nwhen I start as a clone\nshow\nset rotation style [left-right v]\nforever\n    if <not <(costume [number v]) > [2]>> then\n        switch costume to (1 v)\n    end\n    wait (0.01) seconds\n    if <not <(costume [number v]) > [2]>> then\n        switch costume to (2 v)\n    end\n    wait (0.01) seconds\nend\n\nwhen I start as a clone\nforever\n    repeat (2)\n        change y by (1)\n    end\n    repeat (2)\n        change y by (2)\n    end\n    repeat (6)\n        change y by (3)\n    end\n    repeat (2)\n        change y by (2)\n    end\n    repeat (2)\n        change y by (1)\n    end\n    set [propellor x v] to (x position)\n    set [propellor y v] to (y position)\n    broadcast (Propellor Bullet v)\n    wait (0.05) seconds\n    repeat (2)\n        change y by (-1)\n    end\n    repeat (2)\n        change y by (-2)\n    end\n    repeat (6)\n        change y by (-3)\n    end\n    repeat (2)\n        change y by (-2)\n    end\n    repeat (2)\n        change y by (-1)\n    end\n    wait (0.05) seconds\nend\n\nwhen I receive [right v]\ndelete this clone\n\nwhen I receive [down v]\ndelete this clone\n\nwhen I receive [up v]\ndelete this clone\n\nwhen I receive [level start v]\nforever\n    if <([costume name v] of [ground v]) = [3-14]> then\n        go to x: (0) y: (50)\n        create clone of (_myself_ v)\n        wait (0.01) seconds\n        go to x: (150) y: (-50)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [3-14]>>\n    end\n    if <([costume name v] of [ground v]) = [3-12]> then\n        go to x: (-150) y: (0)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [3-12]>>\n    end\n    if <([costume name v] of [ground v]) = [3-15]> then\n        go to x: (120) y: (-50)\n        create clone of (_myself_ v)\n        wait (0.01) seconds\n        go to x: (0) y: (80)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [3-15]>>\n    end\n    if <([costume name v] of [ground v]) = [3-16]> then\n        go to x: (100) y: (0)\n        create clone of (_myself_ v)\n        wait (0.01) seconds\n        go to x: (180) y: (-80)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [3-16]>>\n    end\n    if <([costume name v] of [ground v]) = [3-17]> then\n        go to x: (0) y: (60)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [3-17]>>\n    end\n    if <([costume name v] of [ground v]) = [3-18]> then\n        go to x: (90) y: (0)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [3-18]>>\n    end\n    if <([costume name v] of [ground v]) = [3-20]> then\n        go to x: (0) y: (60)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [3-20]>>\n    end\n    if <([costume name v] of [ground v]) = [3-21.3]> then\n        go to x: (-150) y: (-40)\n        create clone of (_myself_ v)\n        wait (0.01) seconds\n        go to x: (-150) y: (60)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [3-21.3]>>\n    end\n    if <([costume name v] of [ground v]) = [3-21]> then\n        go to x: (0) y: (60)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [3-21]>>\n    end\n    if <([costume name v] of [ground v]) = [3-19]> then\n        go to x: (180) y: (20)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [3-19]>>\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nforever\n    wait (pick random (0.1) to (2)) seconds\nend\n\nwhen I start as a clone\nforever\n    if <([x position v] of [player v]) > (x position)> then\n        point in direction (90)\n    end\n    if <(x position) > ([x position v] of [player v])> then\n        point in direction (-90)\n    end\nend\n\n@Bullet Particle2\n\nwhen flag clicked\nswitch costume to (control v)\nhide\n\nwhen I start as a clone\nswitch costume to (costume2 v)\ngo to [front v] layer\nshow\nrepeat (2)\n    move (4) steps\nend\nrepeat (2)\n    change [ghost v] effect by (0)\n    move (4) steps\n    change y by (-1)\nend\nrepeat (2)\n    change [ghost v] effect by (0)\n    move (4) steps\n    change y by (-3)\nend\nrepeat (2)\n    change [ghost v] effect by (0)\n    move (4) steps\n    change y by (-6)\nend\nrepeat (2)\n    change [ghost v] effect by (0)\n    move (4) steps\n    change y by (-8)\nend\nrepeat (2)\n    change [ghost v] effect by (0)\n    move (4) steps\n    change y by (-10)\nend\ndelete this clone\n\nwhen I receive [right v]\ndelete this clone\n\nwhen I receive [up v]\ndelete this clone\n\nwhen I receive [down v]\ndelete this clone\n\nwhen I start as a clone\nwait (0.1) seconds\nforever\n    if <touching (bullet deleter v)?> then\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nset size to (800) %\nrepeat (999)\n    change size by (-30)\nend\n\nwhen I receive [enemy explode v]\nif <(costume [name v]) = [Control]> then\n    set x to (Enemy X)\n    set y to (Enemy Y)\n    point in direction (45)\n    repeat (4)\n        turn right (90) degrees\n        create clone of (_myself_ v)\n    end\n    switch costume to (control v)\nend\n\n@Propellor bullet\n\nwhen I receive [game over v]\ndelete this clone\n\nwhen I receive [level start v]\nclear graphic effects\n\nwhen I receive [player died v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nhide\ndelete this clone\n\nwhen I receive [propellor bullet v]\nif <(costume [name v]) = [Control]> then\n    set x to (Propellor X)\n    set y to (Propellor Y)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\ngo to [front v] layer\nswitch costume to (costume1 v)\nshow\npoint towards (player collsion v)\nstart sound [Fire Ball v]\nrepeat until <touching (bullet deleter v)?>\n    move (7) steps\nend\nmove (7) steps\ndelete this clone\n\nwhen flag clicked\nswitch costume to (control v)\nhide\n\nwhen I receive [left v]\ndelete this clone\n\nwhen I receive [down v]\ndelete this clone\n\nwhen I receive [right v]\ndelete this clone\n\nwhen I receive [up v]\ndelete this clone\n\nset x to (36)\nset y to (28)\n\n@Boss 2\n\nwhen I receive [game over v]\ndelete this clone\n\nwhen I receive [enemy flash v]\nif <touching (bullet v)?> then\n    set [brightness v] effect to (100)\n    repeat (5)\n        change [brightness v] effect by (-20)\n    end\nend\n\nwhen I receive [player died v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nhide\ndelete this clone\n\nwhen I start as a clone\nwait (2) seconds\nif <([costume name v] of [ground v]) = [3-24]> then\n    forever\n        play sound [4-20 - Wily Battle \(Mega Man 10\) v] until done\n    end\nend\n\nwhen I start as a clone\nset volume to (100) %\nswitch costume to (costume1 v)\nrepeat (89)\n    wait until <touching (bullet v)?>\n    broadcast (Enlarge Bullet v)\n    set [enemy x v] to (x position)\n    set [enemy y v] to (y position)\n    broadcast (Delete Bullet v)\n    broadcast (Boss 1 Flash v)\n    wait (Enemy I-Frame) seconds\nend\nwait until <touching (bullet v)?>\nstop [other scripts in sprite v]\nstop all sounds\nclear graphic effects\nbroadcast (Stop Player v)\nhide\nstart sound [sfxStrikeManBounce v]\nbroadcast (Boss Explode v)\nset [boss 1 x v] to (x position)\nset [boss 1 y v] to (y position)\nwait (3) seconds\nbroadcast (Level Beat v)\ndelete this clone\n\nwhen I start as a clone\nif <([x position v] of [player collsion v]) > (x position)> then\n    point in direction (90)\nelse\n    point in direction (-90)\nend\nhide\nswitch costume to (upside down v)\npoint in direction (-90)\nwait (1) seconds\ngo to x: (180) y: (999)\nshow\nrepeat (5)\n    change y by (-5)\nend\nrepeat (10)\n    change y by (-10)\nend\nrepeat (11)\n    change y by (-15)\nend\nchange y by (-7)\nstart sound [Thwomp v]\nrepeat (6)\n    change y by (6)\nend\nrepeat (2)\n    change y by (3)\nend\nrepeat (2)\n    change y by (1)\nend\nswitch costume to (out v)\nrepeat (2)\n    change y by (-1)\nend\nrepeat (2)\n    change y by (-3)\nend\nrepeat (6)\n    change y by (-6)\nend\nstart sound [Thwomp v]\nforever\n    repeat (pick random (2) to (3))\n        if <([x position v] of [player collsion v]) > (x position)> then\n            point in direction (90)\n        else\n            point in direction (-90)\n        end\n        switch costume to (transition v)\n        wait (0.2) seconds\n        switch costume to (out v)\n        repeat (8)\n            change y by (10)\n            move (5) steps\n            if <touching (_edge_ v)?> then\n                turn right (180) degrees\n                move (5) steps\n            end\n        end\n        repeat (6)\n            change y by (6)\n            move (5) steps\n            if <touching (_edge_ v)?> then\n                turn right (180) degrees\n                move (5) steps\n            end\n        end\n        repeat (3)\n            change y by (3)\n            move (5) steps\n            if <touching (_edge_ v)?> then\n                turn right (180) degrees\n                move (5) steps\n            end\n        end\n        repeat (2)\n            change y by (1)\n            move (5) steps\n            if <touching (_edge_ v)?> then\n                turn right (180) degrees\n                move (5) steps\n            end\n        end\n        repeat (2)\n            change y by (-1)\n            move (5) steps\n            if <touching (_edge_ v)?> then\n                turn right (180) degrees\n                move (5) steps\n            end\n        end\n        repeat (3)\n            change y by (-3)\n            move (5) steps\n            if <touching (_edge_ v)?> then\n                turn right (180) degrees\n                move (5) steps\n            end\n        end\n        repeat (6)\n            change y by (-6)\n            move (5) steps\n            if <touching (_edge_ v)?> then\n                turn right (180) degrees\n                move (5) steps\n            end\n        end\n        repeat (8)\n            change y by (-10)\n            move (5) steps\n            if <touching (_edge_ v)?> then\n                turn right (180) degrees\n                move (5) steps\n            end\n        end\n        switch costume to (in v)\n        start sound [Thwomp v]\n        repeat (3)\n            move (5) steps\n            if <touching (_edge_ v)?> then\n                turn right (180) degrees\n                move (5) steps\n            end\n        end\n        repeat (4)\n            move (3) steps\n            if <touching (_edge_ v)?> then\n                turn right (180) degrees\n                move (3) steps\n            end\n        end\n        repeat (2)\n            move (2) steps\n            if <touching (_edge_ v)?> then\n                turn right (180) degrees\n                move (2) steps\n            end\n        end\n        repeat (2)\n            move (1) steps\n            if <touching (_edge_ v)?> then\n                turn right (180) degrees\n                move (1) steps\n            end\n        end\n    end\n    repeat (1)\n        switch costume to (transition v)\n        wait (0.2) seconds\n        switch costume to (out v)\n    end\n    repeat (3)\n        change y by (6)\n    end\n    repeat (2)\n        change y by (3)\n    end\n    repeat (2)\n        change y by (1)\n    end\n    switch costume to (upside down v)\n    repeat (2)\n        change y by (-1)\n    end\n    repeat (2)\n        change y by (-3)\n    end\n    repeat (4)\n        change y by (-6)\n    end\n    repeat (8)\n        change y by (-12)\n    end\n    repeat until <touching (_edge_ v)?>\n        change y by (-16)\n    end\n    change y by (-16)\n    if <([x position v] of [player collsion v]) > (x position)> then\n        point in direction (90)\n    else\n        point in direction (-90)\n    end\n    hide\n    switch costume to (upside down v)\n    point in direction (-90)\n    go to x: (pick random (-130) to (130)) y: (999)\n    show\n    repeat (5)\n        change y by (-5)\n    end\n    repeat (10)\n        change y by (-10)\n    end\n    repeat (11)\n        change y by (-15)\n    end\n    change y by (-7)\n    set [boss 1 x v] to (x position)\n    set [boss 1 y v] to (y position)\n    broadcast (Spawn Shells v)\n    start sound [Thwomp v]\n    repeat (6)\n        change y by (6)\n    end\n    repeat (2)\n        change y by (3)\n    end\n    repeat (2)\n        change y by (1)\n    end\n    switch costume to (out v)\n    repeat (2)\n        change y by (-1)\n    end\n    repeat (2)\n        change y by (-3)\n    end\n    repeat (6)\n        change y by (-6)\n    end\n    start sound [Thwomp v]\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [level start v]\nforever\n    if <([costume name v] of [ground v]) = [3-24]> then\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [3-24]>>\n    end\nend\n\nrepeat (6)\n    change y by (10)\nend\n\nswitch costume to (transition v)\n\n@Shell Head Egg\n\nwhen I receive [spawn shells v]\ngo to (boss 2 v)\nif <(costume [name v]) = [Control]> then\n    point in direction (90)\n    create clone of (_myself_ v)\n    wait (0.01) seconds\n    point in direction (-90)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nswitch costume to (1 v)\nforever\n    switch costume to (1 v)\n    wait (0.04) seconds\n    switch costume to (2 v)\n    wait (0.04) seconds\n    switch costume to (3 v)\n    wait (0.04) seconds\n    switch costume to (4 v)\n    wait (0.04) seconds\nend\n\nwhen I start as a clone\n\nwhen flag clicked\nswitch costume to (control v)\nhide\n\nwhen I start as a clone\nset x to (Boss 1 X)\nset y to (Boss 1 Y)\nchange y by (15)\nshow\nrepeat (4)\n    move (5) steps\n    change y by (12)\n    if <touching (_edge_ v)?> then\n        turn right (180) degrees\n        move (5) steps\n    end\nend\nrepeat (8)\n    move (5) steps\n    change y by (8)\n    if <touching (_edge_ v)?> then\n        turn right (180) degrees\n        move (5) steps\n    end\nend\nrepeat (4)\n    move (5) steps\n    change y by (4)\n    if <touching (_edge_ v)?> then\n        turn right (180) degrees\n        move (5) steps\n    end\nend\nrepeat (2)\n    move (5) steps\n    change y by (2)\n    if <touching (_edge_ v)?> then\n        turn right (180) degrees\n        move (5) steps\n    end\nend\nchange y by (1)\nwait (0) seconds\nchange y by (-1)\nrepeat (2)\n    move (5) steps\n    change y by (-2)\n    if <touching (_edge_ v)?> then\n        turn right (180) degrees\n        move (5) steps\n    end\nend\nrepeat (4)\n    move (5) steps\n    change y by (-4)\n    if <touching (_edge_ v)?> then\n        turn right (180) degrees\n        move (5) steps\n    end\nend\nrepeat (8)\n    move (5) steps\n    change y by (-8)\n    if <touching (_edge_ v)?> then\n        turn right (180) degrees\n        move (5) steps\n    end\nend\nrepeat (8)\n    move (5) steps\n    change y by (-12)\n    if <touching (_edge_ v)?> then\n        turn right (180) degrees\n        move (5) steps\n    end\nend\nchange y by (0)\nset [shell egg x v] to (x position)\nset [shell egg y v] to (y position)\nbroadcast (Create Shell Head v)\ndelete this clone\n\nwhen I receive [boss explode v]\ndelete this clone\n\nwhen I receive [game over v]\ndelete this clone\n\nmove (5) steps\n\n@Title Star\n\nwhen flag clicked\nhide\n\nwhen I receive [stars v]\nforever\n    create clone of (_myself_ v)\n    wait (0.3) seconds\nend\n\nwhen I start as a clone\nshow\nrepeat (4)\n    change y by (10)\nend\nrepeat until <touching (_edge_ v)?>\n    change y by (10)\nend\ndelete this clone\n\nwhen I receive [level text v]\nstop [other scripts in sprite v]\ndelete this clone\n\n@water\n\nwhen I receive [level start v]\nclear graphic effects\n\nwhen I receive [player died v]\nrepeat (5)\n    change [ghost v] effect by (-20)\nend\nhide\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I receive [level start v]\nforever\n    hide\n    if <([costume name v] of [ground v]) = [4-2]> then\n        show\n    end\n    if <([costume name v] of [ground v]) = [4-3]> then\n        show\n    end\n    if <([costume name v] of [ground v]) = [4-4]> then\n        show\n    end\n    if <([costume name v] of [ground v]) = [4-6]> then\n        show\n    end\nend\n\nwhen I receive [level start v]\ngo to x: (0) y: (-20)\nclear graphic effects\nforever\n    repeat (5)\n        change y by (1)\n    end\n    wait (0.1) seconds\n    repeat (5)\n        change y by (-1)\n    end\n    wait (0.1) seconds\nend\n\nwhen I receive [level start v]\nforever\n    next costume\n    wait (0.4) seconds\nend\n\nwhen I receive [player start v]\ngo to [back v] layer\n\nwhen I receive [level start v]\nclear graphic effects\n\nforever\n    repeat (20)\n        change [brightness v] effect by (5)\n    end\n    repeat (20)\n        change [brightness v] effect by (-5)\n    end\n    wait (0.1) seconds\nend\n\nwhen I receive [game over v]\nstop [other scripts in sprite v]\n\n@fishman\n\nwhen I start as a clone\nshow\nrepeat (5)\n    wait until <touching (bullet v)?>\n    broadcast (Enlarge Bullet v)\n    set [enemy x v] to (x position)\n    set [enemy y v] to (y position)\n    broadcast (Delete Bullet v)\n    broadcast (Enemy Flash v)\n    wait (Enemy I-Frame) seconds\nend\nwait until <touching (bullet v)?>\nstart sound [bomb_explode v]\nset [enemy x v] to (x position)\nset [enemy y v] to (y position)\nbroadcast (Enemy Explode v)\ndelete this clone\n\nwhen I receive [enemy flash v]\nif <touching (bullet v)?> then\n    set [brightness v] effect to (100)\n    repeat (5)\n        change [brightness v] effect by (-20)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [level start v]\nforever\n    if <([costume name v] of [ground v]) = [4-2]> then\n        wait (0.1) seconds\n        point in direction (-90)\n        go to x: (150) y: (-300)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [4-2]>>\n    end\n    if <([costume name v] of [ground v]) = [4-3]> then\n        wait (0.1) seconds\n        wait until <([x position v] of [player v]) > [0]>\n        point in direction (-90)\n        go to x: (200) y: (-300)\n        create clone of (_myself_ v)\n        point in direction (90)\n        go to x: (-200) y: (-300)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [4-3]>>\n    end\n    if <([costume name v] of [ground v]) = [4-4]> then\n        wait (0.1) seconds\n        wait until <([x position v] of [player v]) > [0]>\n        point in direction (90)\n        go to x: (-180) y: (-300)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [4-4]>>\n    end\n    if <([costume name v] of [ground v]) = [4-6]> then\n        wait (0.4) seconds\n        point in direction (-90)\n        go to x: (170) y: (-300)\n        create clone of (_myself_ v)\n        wait until <not <([costume name v] of [ground v]) = [4-6]>>\n    end\nend\n\nwhen I start as a clone\nstart sound [sfxStrikeManBounce v]\nswitch costume to (walk 2 v)\nshow\nrepeat (4)\n    change y by (24)\nend\nrepeat (4)\n    change y by (16)\nend\nrepeat (3)\n    change y by (8)\nend\nrepeat (2)\n    change y by (3)\nend\nrepeat (1)\n    change y by (2)\nend\nrepeat (1)\n    change y by (1)\nend\nrepeat (1)\n    change y by (-1)\nend\nrepeat (1)\n    change y by (-2)\nend\nrepeat (2)\n    change y by (-3)\nend\nrepeat (3)\n    change y by (-8)\nend\nrepeat until <touching (ground v)?>\n    change y by (-16)\nend\nswitch costume to (idle v)\nchange y by (7)\nwait (0.1) seconds\nforever\n    if <(x position) > ([x position v] of [player v])> then\n        point in direction (-90)\n        wait (0.3) seconds\n        repeat until <not <(x position) > ([x position v] of [player v])>>\n            move (6) steps\n        end\n        repeat (6)\n            move (6) steps\n        end\n        repeat (5)\n            move (3) steps\n        end\n        repeat (4)\n            move (1) steps\n        end\n    else\n        point in direction (90)\n        wait (0.3) seconds\n        repeat until <(x position) > ([x position v] of [player v])>\n            move (6) steps\n        end\n        repeat (6)\n            move (6) steps\n        end\n        repeat (5)\n            move (3) steps\n        end\n        repeat (4)\n            move (1) steps\n        end\n    end\nend\n\nwhen I start as a clone\nwait (0.5) seconds\nforever\n    switch costume to (walk 1 v)\n    wait (0.1) seconds\n    switch costume to (walk 2 v)\n    wait (0.1) seconds\nend\n\nwhen I start as a clone\nwait (0.6) seconds\nforever\n    if <<touching (_edge_ v)?> or <touching (fishman v)?>> then\n        turn left (180) degrees\n    end\nend\n\nwhen I receive [right v]\ndelete this clone\n\nwhen I receive [up v]\ndelete this clone\n\nwhen I receive [down v]\ndelete this clone\n\nwhen I receive [game over v]\ndelete this clone\n\n@BG BULLET\n\nwhen flag clicked\nswitch costume to (costume2 v)\nhide\nforever\n    if <not <touching (bg v)?>> then\n        hide\n    end\nend\n\nwhen I receive [up v]\nhide\ndelete this clone\n\nwhen I receive [right v]\nhide\ndelete this clone\n\nwhen I receive [down v]\nhide\ndelete this clone\n\nwhen I receive [game over v]\ndelete this clone\n\nwhen I receive [level start v]\nwait (0.5) seconds\nforever\n    hide\n    if <([costume name v] of [ground v]) = [4-5]> then\n        go to x: (144) y: (57)\n        repeat until <not <([costume name v] of [ground v]) = [4-5]>>\n            if <([costume name v] of [ground v]) = [4-5]> then\n                wait (0.5) seconds\n                show\n            end\n            if <([costume name v] of [ground v]) = [4-5]> then\n                go to x: (144) y: (57)\n            end\n            if <([costume name v] of [ground v]) = [4-5]> then\n                switch costume to (costume3 v)\n            end\n            if <([costume name v] of [ground v]) = [4-5]> then\n                wait (0.05) seconds\n            end\n            if <([costume name v] of [ground v]) = [4-5]> then\n                switch costume to (costume2 v)\n            end\n            if <([costume name v] of [ground v]) = [4-5]> then\n                wait (0.05) seconds\n            end\n            if <([costume name v] of [ground v]) = [4-5]> then\n                create clone of (_myself_ v)\n            end\n            if <([costume name v] of [ground v]) = [4-5]> then\n                wait (0.5) seconds\n            end\n            if <([costume name v] of [ground v]) = [4-5]> then\n                go to x: (24) y: (105)\n            end\n            if <([costume name v] of [ground v]) = [4-5]> then\n                switch costume to (costume3 v)\n            end\n            if <([costume name v] of [ground v]) = [4-5]> then\n                wait (0.05) seconds\n            end\n            if <([costume name v] of [ground v]) = [4-5]> then\n                switch costume to (costume2 v)\n            end\n            if <([costume name v] of [ground v]) = [4-5]> then\n                wait (0.05) seconds\n            end\n            if <([costume name v] of [ground v]) = [4-5]> then\n                create clone of (_myself_ v)\n            end\n        end\n    end\n    if <([costume name v] of [ground v]) = [4-6]> then\n        go to x: (-48) y: (57)\n        repeat until <not <([costume name v] of [ground v]) = [4-6]>>\n            if <([costume name v] of [ground v]) = [4-6]> then\n                wait (0.5) seconds\n                show\n            end\n            if <([costume name v] of [ground v]) = [4-6]> then\n                go to x: (-48) y: (57)\n            end\n            if <([costume name v] of [ground v]) = [4-6]> then\n                switch costume to (costume3 v)\n            end\n            if <([costume name v] of [ground v]) = [4-6]> then\n                wait (0.05) seconds\n            end\n            if <([costume name v] of [ground v]) = [4-6]> then\n                switch costume to (costume2 v)\n            end\n            if <([costume name v] of [ground v]) = [4-6]> then\n                wait (0.05) seconds\n            end\n            if <([costume name v] of [ground v]) = [4-6]> then\n                create clone of (_myself_ v)\n            end\n            if <([costume name v] of [ground v]) = [4-6]> then\n                wait (0.5) seconds\n            end\n            if <([costume name v] of [ground v]) = [4-6]> then\n                go to x: (96) y: (57)\n            end\n            if <([costume name v] of [ground v]) = [4-6]> then\n                switch costume to (costume3 v)\n            end\n            if <([costume name v] of [ground v]) = [4-6]> then\n                wait (0.05) seconds\n            end\n            if <([costume name v] of [ground v]) = [4-6]> then\n                switch costume to (costume2 v)\n            end\n            if <([costume name v] of [ground v]) = [4-6]> then\n                wait (0.05) seconds\n            end\n            if <([costume name v] of [ground v]) = [4-6]> then\n                create clone of (_myself_ v)\n            end\n        end\n    end\nend\n\nwhen I start as a clone\ngo to [front v] layer\nswitch costume to (costume1 v)\nshow\nwait (0.2) seconds\nstart sound [Fire Ball v]\npoint towards (player v)\nrepeat until <touching (bullet deleter v)?>\n    move (8) steps\nend\ndelete this clone\n\n
- - - - - - - - - - HOW TO PLAY / CONTROLS - - - - - - - - - - \nWASD - Move\nW / Space - Jump\nAim - Mouse Cursor (You will need a mouse!)\nShoot - Left Mouse Button (HOLD BUTTON DOWN)\n- - - - - - - - - - - - - - - - - - STORY - - - - - - - - - - - - - - - - - - -\nAtari Adventures is a retro Atari style platformer inspired by games like Mega Man and Contra. After the Hunters all but wiped out the human race, it is up to you to travel across space and conquer various planets in order to return peace to the galaxy. Think you've got what it takes? This game is not for the faint of heart!\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \nLevel 1 and 2 are complete.