Platformer

Instructions: Use the  Arrow Keys \nNo level is impossible!\nMore levels coming soon!\nThis game is pretty new so they can be a few bug in the script.\nHow many times did you "deads" - Write it in the comment section down below!\nMy record is 78 deads. Now 8! \nMilly runs away from home.\nShe has bad thoughts and feel bad.\nHelp her trough her journey!

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nforever\n    switch backdrop to (bakgrund 1 v)\n    wait (5) seconds\n    switch backdrop to (bakgrund 1 v)\nend\n\n@1\n\nwhen flag clicked\nset [your current level v] to [0]\nset [deads v] to [0]\n\nwhen I receive [nextlevel v]\nchange [your current level v] by (1)\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen flag clicked\nforever\n    if <touching color (#ff9400)?> then\n        change [yv v] by (10)\n    end\nend\n\nwhen flag clicked\nforever\n    change tempo by (100)\nend\n\nwhen flag clicked\nset size to (100) %\nshow\ngo to x: (-208) y: (-77)\npoint in direction (90)\nset [level v] to [1]\nset [yv v] to [0]\nforever\n    set [xv v] to [0]\n    forever\n        change [yv v] by (-0.5)\n        if <key (right arrow v) pressed?> then\n            change [xv v] by (0.7)\n        end\n        if <key (left arrow v) pressed?> then\n            change [xv v] by (-0.7)\n        end\n        set [xv v] to ((Xv) * (0.9))\n        change x by (Xv)\n        if <touching color (#000008)?> then\n            change y by (1)\n            if <touching color (#000008)?> then\n                change y by (1)\n                if <touching color (#000008)?> then\n                    change y by (1)\n                    if <touching color (#000008)?> then\n                        change y by (1)\n                        if <touching color (#000008)?> then\n                            change y by (1)\n                            if <touching color (#000008)?> then\n                                change x by ((Xv) * (-1))\n                                change x by (-1)\n                                change y by (-5)\n                                if <touching (none v)?> then\n                                    change x by (Change)\n                                end\n                                change x by (1)\n                                if <<key (up arrow v) pressed?> or <key (space v) pressed?>> then\n                                    if <(Xv) > [0]> then\n                                        set [xv v] to [-8]\n                                    else\n                                        set [xv v] to [8]\n                                    end\n                                    set [yv v] to [10]\n                                else\n                                    set [xv v] to [0]\n                                end\n                                if <key (space v) pressed?> then\n                                    if <(Xv) > [0]> then\n                                        set [xv v] to [-8]\n                                    else\n                                        set [xv v] to [8]\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 (Yv)\n        if <touching color (#000008)?> then\n            change y by ((Yv) * (-1))\n            set [yv v] to [0]\n        end\n        change y by (-1)\n        if <touching color (#000008)?> then\n            if <key (up arrow v) pressed?> then\n                set [yv v] to [10]\n            end\n        end\n        if <touching color (#ff0000)?> then\n            go to x: (-208) y: (-77)\n            set [xv v] to [0]\n            set [yv v] to [0]\n            point in direction (90)\n            change [deads v] by (1)\n        end\n        if <<(x position) > [221]> or <<(x position) > [202]> or <<(x position) > [203]> or >>> then\n            broadcast (nextlevel v)\n            go to x: (-208) y: (-77)\n        end\n        change y by (1)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ff00bf)?> then\n        change [xv v] by (-30)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#00ff55)?> then\n        change [xv v] by (30)\n    end\nend\n\nwhen flag clicked\nforever\n    play sound [168734_Jumper.mp3 v] until done\n    play sound [xylo1 v] until done\nend\n\ndefine say []\nset [say v] to []\nrepeat (length of (string1))\n    set [say v] to (join (say) (letter ((length of (say)) + (1)) of (string1)))\n    say (say)\nend\nbroadcast (message1 v) and wait\nchange [# v] by (1)\n\nwhen flag clicked\nswitch costume to (1 v)\n\nwhen this sprite clicked\nnext costume\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nsay (join [] [ OUCH])\n\nwhen flag clicked\nset [color v] effect to (0)\n\nwhen flag clicked\n\n@Sprajt1\n\nwhen flag clicked\nswitch costume to (klädsel1 v)\n\nwhen I receive [nextlevel v]\nnext costume\n\n