Cool Blue (Platformer)

Instructions: This is a basic platformer that I made.  I spent lots of time on it, and tried my best to make the graphics clean and crisp.  I hope you enjoy!!!  :D\n\nArrow keys to move on a computer. \nTap if you are on mobile to move. \n

@Stage\n\nwhen flag clicked\nforever\n    switch backdrop to (backdrop2 v)\nend\n\n@Player\n\nwhen flag clicked\npoint in direction (90)\ngo to x: (-200) y: (0)\nforever\n    switch costume to (Selection)\n    show\n    set size to (100) %\n    create clone of (_myself_ v)\n    wait (0.02) seconds\n    if <(x position) > [210]> then\n        broadcast (Next v)\n        point in direction (90)\n        wait (1.4) seconds\n        point in direction (90)\n        switch backdrop to (backdrop2 v)\n    end\n    if <touching (spikes v)?> then\n        go to x: (-200) y: (-124)\n    end\n    if <(Level) = [6]> then\n        if <touching (portal v)?> then\n            go to x: (-102) y: (-120)\n        end\n    end\n    if <(Level) = [7]> then\n        if <touching (portal v)?> then\n            go to x: (170) y: (118)\n        end\n    end\n    if <(Level) = [9]> then\n        if <touching (portal v)?> then\n            go to x: (22) y: (134)\n        end\n    end\nend\n\nwhen I start as a clone\nset size to (100) %\nrepeat (30)\n    change size by (-5)\n    change [ghost v] effect by (7)\nend\nhide\ndelete this clone\n\nwhen flag clicked\nforever\n    if <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > [50]>>> then\n        change [x v] by (0.9)\n        turn right (15) degrees\n    end\n    if <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < [-50]>>> then\n        change [x v] by (-0.9)\n        turn left (15) degrees\n    end\n    set [x v] to ((X) * (0.9))\n    change x by (X)\n    if <touching (ground v)?> then\n        change y by (1)\n        if <touching (ground v)?> then\n            change y by (1)\n            if <touching (ground v)?> then\n                change y by (1)\n                if <touching (ground v)?> then\n                    change y by (1)\n                    if <touching (ground v)?> then\n                        change y by (1)\n                        if <touching (ground v)?> then\n                            change x by ((X) * (-1))\n                            change y by (-5)\n                            if <key (up arrow v) pressed?> then\n                                if <(X) > [0]> then\n                                    set [x v] to [-5]\n                                else\n                                    set [x v] to [5]\n                                end\n                                set [y v] to [10]\n                            else\n                                set [x v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [y v] by (-1)\n    change y by (Y)\n    if <touching (ground v)?> then\n        change y by ((Y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<<touching (ground v)?> and <key (up arrow v) pressed?>> or <<touching (ground v)?> and <<mouse down?> and <(mouse y) > [50]>>>> then\n        set [y v] to [12]\n    end\n    if <touching (bouncy v)?> then\n        set [y v] to [20]\n    end\n    change y by (1)\nend\n\nwhen I receive [change v]\ngo to x: (-200) y: (-124)\n\nwhen flag clicked\nswitch backdrop to (backdrop2 v)\nforever\n    play sound [Iditarod - Soon Hee Newbold v] until done\nend\n\n@Ground\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\n\nwhen I receive [change v]\nnext costume\n\n@Next\n\nwhen I receive [next v]\nshow\nswitch costume to (costume1 v)\ngo to x: (0) y: (-370)\nrepeat (37)\n    change y by (10)\n    go to [front v] layer\nend\nbroadcast (Change v)\nchange [level v] by (1)\nrepeat (40)\n    change y by (10)\n    go to [front v] layer\nend\nhide\n\nwhen flag clicked\nhide\n\n@Intro\n\nwhen flag clicked\nshow\ngo to [front v] layer\n\nwhen I receive [play v]\nhide\n\n@Play\n\nwhen flag clicked\ngo to x: (0) y: (-30)\nshow\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\npoint in direction (90)\nwait (0.1) seconds\ngo to [front v] layer\nturn left (30) degrees\nforever\n    repeat (30)\n        turn right (2) degrees\n    end\n    repeat (30)\n        turn right (-2) degrees\n    end\nend\n\nwhen this sprite clicked\nchange [level v] by (1)\nbroadcast (Play v)\nhide\n\n@Spikes\n\nwhen flag clicked\nset [level v] to [1]\nforever\n    switch costume to (Level)\n    show\nend\n\n@Bouncy\n\nwhen flag clicked\nset [level v] to [1]\nforever\n    switch costume to (Level)\n    show\nend\n\n@Portal\n\nwhen flag clicked\nset [level v] to [1]\nforever\n    switch costume to (Level)\n    show\nend\n\n@End\n\nwhen flag clicked\nhide\nset [level v] to [0]\nforever\n    if <(Level) = [10]> then\n        show\n        go to [front v] layer\n    end\nend\n\n@Selection\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nset [selection v] to [1]\nwait (0.1) seconds\nset [level v] to [0]\nswitch costume to (costume1 v)\ncreate clone of (_myself_ v)\nhide\n\nwhen I start as a clone\nif <(costume [number v]) = [1]> then\n    go to x: (0) y: (0)\n    show\n    set [selection v] to [1]\n    wait (0.2) seconds\n    go to [front v] layer\n    repeat until <(Level) = [1]>\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            change [selection v] by (1)\n            if <(Selection) = [6]> then\n                set [selection v] to [1]\n            end\n            wait (0.2) seconds\n        end\n    end\n    delete this clone\nend\n\n@Selection Balls\n\nwhen flag clicked\nshow\ngo to x: (0) y: (23)\nwait (0.3) seconds\ngo to [front v] layer\nswitch costume to (costume1 v)\nrepeat until <(Level) = [1]>\n    switch costume to (Selection)\nend\nhide\n\n