Siege- A Platformer (mobile)

Instructions: FOLLOW ME AN MIGHT CHECK OUT YOUR PROJECTS!\nFOLLOW ME AN MIGHT CHECK OUT YOUR PROJECTS!\n\nUse arrow keys, or mobile control space to attack\nEliminate everyone, and get to the ship\nLeave a luv and favorite and follow :P\nExpect my next platformer to surpass this ones quality by far :3

@Stage\n\n@ character\n\nwhen flag clicked\nforever\n    if <touching color (#3c889b)?> then\n        if <color (#ffae00) is touching (#3c889b)?> then\n            change [yv v] by (0.07)\n        else\n            set [yv v] to ((Yv) * (0.9))\n            set [yv v] to ((Yv) * (0.9))\n            set [yv v] to ((Yv) * (0.9))\n            set [yv v] to ((Yv) * (0.9))\n            if <key (up arrow v) pressed?> then\n                set [yv v] to [4]\n            end\n        end\n        if <key (up arrow v) pressed?> then\n            change [yv v] by (0.3)\n        end\n        if <key (down arrow v) pressed?> then\n            change [yv v] by (-0.3)\n        end\n        if <key (left arrow v) pressed?> then\n            change [xv v] by (-0.3)\n        end\n        if <key (right arrow v) pressed?> then\n            change [xv v] by (0.3)\n        end\n    end\nend\n\npoint in direction (-90)\n\npoint in direction (90)\n\ngo to x: (0) y: (200)\nshow\n\nset [ghost v] effect to (100)\n\nset [yv v] to [5]\n\nset [yv v] to [-1]\n\nset [yv v] to [-5]\n\nwhen I receive [next level v]\nset [yv v] to [0]\nset [xv v] to [0]\ngo to x: (-200) y: (0)\nset [ghost v] effect to (0)\n\nwhen flag clicked\ngo to [front v] layer\npoint in direction (90)\nset [xvel v] to [0]\nset [yvel v] to [0]\nforever\n    set size to (100) %\n    show\n    set rotation style [all around v]\n    if <<<mouse down?> and <(x position) > (mouse x)>> or <key (left arrow v) pressed?>> then\n        change [xv v] by (-1)\n    end\n    if <<<mouse down?> and <(x position) < (mouse x)>> or <key (right arrow v) pressed?>> then\n        change [xv v] by (1)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching (level v)?> then\n        change y by (1)\n        if <touching (level v)?> then\n            change y by (1)\n            if <touching (level v)?> then\n                change y by (1)\n                if <touching (level v)?> then\n                    change y by (1)\n                    if <touching (level v)?> then\n                        change y by (1)\n                        if <touching (level v)?> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <<<mouse down?> and <(y position) < (mouse y)>> or <key (up arrow v) pressed?>> then\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-7]\n                                else\n                                    set [xv v] to [7]\n                                end\n                                set [yv v] to [10]\n                            else\n                                set [xv v] to [ 0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (-1)\n    if <touching (level v)?> then\n        if <<<mouse down?> and <(y position) < (mouse y)>> or <key (up arrow v) pressed?>> then\n            set [yv v] to [14]\n        end\n    end\n    change y by (1)\n    change [yv v] by (-1)\n    set [yv v] to ((Yv) * (0.99))\n    change y by (Yv)\n    if <touching (level v)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    hide variable [xv v]\n    if <<(x position) > [230]> or <touching (sprite4 v)?>> then\n        broadcast (next level v)\n    end\n    if <(y position) < [-170]> then\n        go to x: (-200) y: (0)\n    end\n    if <<touching (spikes v)?> or <<touching (sprite3 v)?> or >> then\n        repeat (10)\n            change size by (-10)\n            turn right (5) degrees\n        end\n        set [yv v] to [0]\n        set [xv v] to [0]\n        set size to (100) %\n        set [ghost v] effect to (0)\n        go to x: (-200) y: (0)\n        point in direction (90)\n    end\n    if <touching (are  v)?> then\n        set [yv v] to [20]\n    end\n    if <touching ( move fast v)?> then\n        set [xv v] to [21]\n    end\nend\n\ngo to [front v] layer\n\nwhen flag clicked\nwait (1) seconds\ngo to x: (-200) y: (0)\n\nwhen flag clicked\nforever\n    if <<touching ( crocodile v)?> or <touching (kid! v)?>> then\n        go to x: (-200) y: (0)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (spikes v)?> then\n        change [yv v] by (1.3)\n    end\nend\n\nrepeat (10)\n    change size by (-10)\n    turn right (5) degrees\nend\nset [yv v] to [0]\nset [xv v] to [0]\nset size to (100) %\nset [ghost v] effect to (0)\ngo to x: (-200) y: (0)\npoint in direction (90)\n\nwhen flag clicked\n\nwhen I receive [endgame v]\nhide\n\ngo [backward v] (1) layers\n\n@level\n\nchange x by (10)\n\nwhen I receive [endgame v]\nhide\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\ngo [forward v] (6) layers\n\nwhen I receive [next level v]\nnext costume\nchange [level v] by (1)\n\ngo [forward v] (3) layers\n\nwhen flag clicked\n\ngo to [back v] layer\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [2]> then\n        broadcast (text 2 v)\n    end\nend\n\nwhen flag clicked\nset [level v] to [0]\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [2]> then\nend\n\nbroadcast (text 2 v)\n\n@Sprite2\n\nwhen I receive [endgame v]\nhide\n\nturn right (36) degrees\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nshow\nwait (0.01) seconds\ndelete this clone\n\nwhen flag clicked\nhide\nforever\n    if <key (space v) pressed?> then\n        set size to (100) %\n        show\n        point in direction ([direction v] of [spikes v])\n        go to ( character v)\n        turn left (180) degrees\n        repeat (10)\n            go to ( character v)\n            turn right (12) degrees\n            create clone of (_myself_ v)\n            turn right (12) degrees\n            create clone of (_myself_ v)\n            turn right (12) degrees\n            create clone of (_myself_ v)\n        end\n        hide\n        wait (0.5) seconds\n    end\nend\n\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\n@spikes\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to [back v] layer\n\ngo [backward v] (7) layers\n\nchange y by (-30)\n\nchange y by (30)\n\nwhen flag clicked\ngo to x: (29) y: (30)\nshow\n\ngo to x: (29) y: (-20)\n\ncreate clone of (pick random (1) to (5))\nset y to (pick random (-230) to (230))\n\nwait (0.5) seconds\nglide (0.8) secs to x: (29) y: (13)\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [4]> then\n        show\n        glide (0.7) secs to x: (29) y: (10)\n        wait (1) seconds\n        glide (0.5) secs to x: (29) y: (150)\n    end\nend\n\nrepeat (10)\n    change y by (-10)\nend\nwait (1) seconds\nhide\nchange y by (100)\n\nforever\n\ngo to x: (29) y: (13)\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [6]> then\n        show\n        glide (0.7) secs to x: (29) y: (150)\n        wait (0.4) seconds\n        glide (0.5) secs to x: (29) y: (150)\n    end\nend\n\nwhen flag clicked\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [7]> then\n        show\n        glide (0.9) secs to x: (230) y: (149)\n        wait (1) seconds\n        glide (0.4) secs to x: (120) y: (149)\n    end\nend\n\n@level2\n\nwhen I receive [endgame v]\nhide\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\ngo [backward v] (7) layers\n\nwhen I receive [next level v]\nnext costume\nchange [level v] by (1)\n\ngo [forward v] (3) layers\n\nwhen flag clicked\n\ngo to [back v] layer\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [2]> then\n        broadcast (text 2 v)\n    end\nend\n\nwhen flag clicked\nset [level v] to [0]\n\n@Sprite1\n\nwhen flag clicked\nswitch costume to (stand2 v)\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nshow\nforever\n    if <(costume [number v]) = [3]> then\n        show\n        glide (1) secs to x: (36) y: (28)\n        wait (1) seconds\n        glide (0.2) secs to x: (-120) y: (28)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (sprite2 v)?> then\n        hide\n    end\nend\n\nwhen flag clicked\nshow\nforever\n    if <(costume [number v]) = [8]> then\n        show\n        glide (1) secs to x: (36) y: (28)\n        glide (0.2) secs to x: (-120) y: (28)\n    end\nend\n\n@Sprite3\n\nwhen flag clicked\nswitch costume to (stand2 v)\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nshow\nforever\n    if <(costume [number v]) = [3]> then\n        show\n        glide (1) secs to x: (36) y: (28)\n        wait (1) seconds\n        glide (0.2) secs to x: (-120) y: (28)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (sprite2 v)?> then\n        hide\n    end\nend\n\nwhen flag clicked\nshow\nforever\n    if <(costume [number v]) = [5]> then\n        show\n        glide (1) secs to x: (36) y: (28)\n        glide (1) secs to x: (-120) y: (28)\n    end\nend\n\nwhen flag clicked\nshow\nforever\n    if <(costume [number v]) = [8]> then\n        show\n        glide (1) secs to x: (36) y: (28)\n        wait (1) seconds\n        glide (1) secs to x: (-120) y: (28)\n    end\nend\n\n@Sprite4\n\nwhen flag clicked\nswitch costume to (stand2 v)\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nshow\n\n@level3\n\nchange x by (10)\n\nwhen I receive [endgame v]\nhide\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\ngo [forward v] (6) layers\n\nwhen I receive [next level v]\nnext costume\nchange [level v] by (1)\n\ngo [forward v] (3) layers\n\ngo to [back v] layer\n\nwhen flag clicked\nset [level v] to [0]\n\nbroadcast (text 2 v)\n\n@level4\n\nchange x by (10)\n\nwhen I receive [endgame v]\nhide\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\ngo [forward v] (6) layers\n\nwhen I receive [next level v]\nnext costume\nchange [level v] by (1)\n\ngo [forward v] (3) layers\n\ngo to [back v] layer\n\nwhen flag clicked\nset [level v] to [0]\n\nbroadcast (text 2 v)\n\nwhen flag clicked\nforever\n    if <touching ( character v)?> then\n        broadcast (endgame v)\n    end\nend\n\n@Sprite5\n\nwhen flag clicked\nhide\n\nwhen I receive [endgame v]\nshow\n\n@thumb\n\nwhen flag clicked\nforever\n    show\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\nwhen flag clicked\nhide\n\n