Canyon-A Platformer- [Fixed]

Instructions: You got Lost in a Canyon. Use Arrow Keys, ASDW and Mobile to Navigate out! Use R to reset.\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-----------------------------------------------------------------------------This is by far my best platformer. \nLOVED BY @Hobson-TV    mouth open\n

@Stage\n\nwhen flag clicked\nforever\n    play sound [kccIus5v-vexento-we-are-one-breakingcopyright v] until done\n    play sound [The Fat Rat Unity \[Xsongspk v] until done\nend\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\ngo to [back v] layer\nhide\nforever\n    go to (sprite1 v)\n    if <(level) = [8]> then\n        switch backdrop to (backdrop2 v)\n    end\n    if <(level) = [11]> then\n        switch backdrop to (backdrop1 v)\n    end\nend\n\n@Player\n\nwhen flag clicked\nshow\nset [level v] to [1]\ngo to x: (-168) y: (-54)\nset [x v] to [0]\nset [y v] to [0]\nswitch costume to (costume1 v)\nforever\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [x v] by (1)\n        switch costume to (costume1 v)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [x v] by (-1)\n        switch costume to (costume2 v)\n    end\n    set [x v] to ((x) * (.87))\n    change x by (x)\n    if <touching (sprite2 v)?> then\n        change y by ((1) + ((1) + ((1) + ((1) + (1)))))\n    end\n    if <touching (sprite2 v)?> then\n        change x by ((x) * (-1))\n        change y by (-5)\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> 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    if <touching (sprite3 v)?> then\n        go to x: (-168) y: (-54)\n    end\n    if <(x position) > [240]> then\n        change [level v] by (1)\n        go to x: (-168) y: (-54)\n    end\n    if <touching (sprite7 v)?> then\n        set [y v] to [20]\n    end\n    change [y v] by (-1)\n    change y by (y)\n    if <touching (sprite2 v)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n        change y by (-1)\n        if <touching (sprite2 v)?> then\n            set [y v] to [11]\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nswitch costume to (costume3 v)\nrepeat (10)\n    change size by (-5)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen [r v] key pressed\ngo to x: (-168) y: (-54)\n\nwhen I receive [message1 v]\ngo to x: (-168) y: (-54)\n\n@Sprite2\n\nwhen flag clicked\nswitch costume to (costume1 v)\nshow\nforever\n    go to x: (0) y: (0)\n    switch costume to (level)\n    go to [front v] layer\nend\n\n@Sprite3\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    switch costume to (level)\nend\n\n@Sprite4\n\nwhen flag clicked\nshow\npoint in direction (90)\nforever\n    go to x: (208) y: (160)\n    if <(lvl) = [12]> then\n        hide\n    end\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo [backward v] (1) layers\nturn right (15) degrees\nforever\n    go to [back v] layer\n    repeat (15)\n        turn left (1) degrees\n    end\n    repeat (15)\n        turn right (1) degrees\n    end\nend\n\nwhen this sprite clicked\nchange [level v] by (1)\nbroadcast (message1 v)\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (costume2 v)\n    else\n        switch costume to (costume1 v)\n    end\nend\n\n@Sprite5\n\nwhen flag clicked\ngo to [back v] layer\ngo to x: (-357) y: (28)\nforever\n    change x by (10)\n    if <(x position) > [440]> then\n        go to x: (-357) y: (28)\n    end\nend\n\nwhen flag clicked\nshow\ngo to [back v] layer\nforever\n    if <(level) = [8]> then\n        hide\n    end\n    if <(level) = [12]> then\n        show\n    end\nend\n\n@Sprite7\n\nwhen flag clicked\nadd (username) to [viewers v]\nhide\nforever\n    if <(level) = [4]> then\n        show\n        go to x: (60) y: (-100)\n    end\n    if <(level) = [5]> then\n        hide\n        go to x: (60) y: (-100)\n    end\n    if <touching (sprite1 v)?> then\n        switch costume to (costume2 v)\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen [s v] key pressed\nhide list [viewers v]\n\nwhen [h v] key pressed\nshow list [viewers v]\n\n@Thumbnail\n\nwhen flag clicked\nhide\n\nshow\n\n@Lvl 8-10 glow\n\nwhen flag clicked\ngo to [back v] layer\nhide\nforever\n    go to (player v)\n    if <(level) = [8]> then\n        show\n    end\n    if <(level) = [11]> then\n        hide\n    end\nend\n\n@cooltext355973431979334\n\nwhen flag clicked\nshow\nforever\n    switch costume to (level)\n    go to x: (-149) y: (-149)\n    go to [front v] layer\n    go [forward v] (1) layers\nend\n\n@detector\n\nwhen flag clicked\nhide\nset [faved___ v] to [0]\nset [loved__ v] to [0]\nset [clone id v] to [0]\ncreate clone of (_myself_ v)\nwait (0.2) seconds\nset [clone id v] to [1]\ncreate clone of (_myself_ v)\nwait until <<(LOVED__) = [1]> and <(FAVED___) = [1]>>\nwait (1) seconds\nshow\ngo to x: (0) y: (50)\nreset timer\nswitch costume to (pick random (1) to (4))\nset [ghost v] effect to (100)\nrepeat until <(timer) > [3.5]>\n    change y by ((y position) / (-15))\n    change [ghost v] effect by (-3)\nend\nreset timer\nrepeat until <(timer) > [3.5]>\n    change y by (((y position) - (-100)) / (-15))\n    change [ghost v] effect by (10)\nend\n\nwhen I start as a clone\nif <(clone id) = [0]> then\n    go to x: (-15) y: (0)\n    set [loved__ v] to [0]\n    switch costume to (love v)\n    forever\n        set [love? v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [loved__ v] to [1]\n        end\n    end\nend\nif <(clone id) = [1]> then\n    go to x: (0) y: (0)\n    switch costume to (fave v)\n    set [faved___ v] to [0]\n    forever\n        set [fav v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [faved___ v] to [1]\n        end\n    end\nend\n\n