Space - Platformer

Instructions: Use the arrow keys or WASD to move the player\n\n18 levels\n\nThere is usually at least 1 fact on each planet\n\nPress R to reset\n\nGEEZ GUYS 2 DAYS AND 20 LOVES AND 14 FAVORITES OMG THIS IS DOING WELL XP

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nforever\n    switch backdrop to (level)\nend\n\nwhen flag clicked\nforever\n    play sound [Vexento - Pixel Party  v] until done\nend\n\n@Player\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nrepeat (10)\n    change size by (-5)\n    change [ghost v] effect by (-5)\nend\ndelete this clone\n\nwhen flag clicked\ngo to x: (-200) y: (-100)\nset size to (45) %\nswitch costume to (player v)\nshow\nset [level v] to [1]\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [xv v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or <key (a 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 (platforms v)?> then\n        change y by (1)\n        if <touching (platforms v)?> then\n            change y by (1)\n            if <touching (platforms v)?> then\n                change y by (1)\n                if <touching (platforms v)?> then\n                    change y by (1)\n                    if <touching (platforms v)?> then\n                        change y by (1)\n                        if <touching (platforms v)?> then\n                            change y by (1)\n                            if <touching (platforms v)?> then\n                                change x by ((xv) * (-1))\n                                if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                                    if <(xv) > [0]> then\n                                        set [xv v] to [-5]\n                                    else\n                                        set [xv v] to [-5]\n                                    end\n                                    set [yv v] to [12]\n                                else\n                                    set [xv v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-1)\n    change y by (yv)\n    if <touching (platforms v)?> then\n        change y by ((yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching (platforms v)?> then\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            start sound [Jump13 v]\n            set [yv v] to [12]\n        end\n    end\n    if <touching (jumper v)?> then\n        start sound [Jump13 v]\n        set [yv v] to [20]\n    end\n    change y by (1)\n    if <key (r v) pressed?> then\n        reset\n    end\n    if <<(y position) < [-177]> or <touching (deathly stuff v)?>> then\n        death\n    end\n    if <(x position) > [230]> then\n        change [level v] by (1)\n        reset\n    end\n    if <(level) = [18]> then\n        broadcast (you won! v)\n    end\nend\n\ndefine death\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ngo to x: (-200) y: (-100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\n\n\ndefine reset\ngo to x: (-200) y: (-100)\n\n@Thumbnail\n\nwhen flag clicked\ngo to [front v] layer\nhide\n\n@platforms\n\nwhen flag clicked\nswitch costume to (costume1 v)\nforever\n    switch costume to (level)\nend\n\n@jumper\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <(level) = [3]> then\n        show\n        go to x: (0) y: (-80)\n    else\n        hide\n    end\n    if <(level) = [4]> then\n        show\n        go to x: (-101) y: (-150)\n    else\n        hide\n    end\nend\n\n@DEATHLY STUFF\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nforever\n    switch costume to (level)\nend\n\n@You arrived home!\n\nwhen flag clicked\nhide\n\nwhen I receive [you won! v]\nshow\n\n