Cave | An easy platformer

Instructions:  Press green flag 2 times!                       \n                           | cαvε | α ρℓαтғσямεя |\n \nWelcome to Cave | a platformer ! In this game you need to explore dark cave and get out of it with help of torch and skills.\nEverything is completable.\n Computer: arrow keys or WASD Mobile: touchscreen\nEdit: 3156 views, 102 likes and71 favorites? TOO MUCH ATTENTION. STOP.\n                              | Credits |\nMyself for platformer\nYoutube for music\n@ElectricGalaxy , @-Imagineer- and @JWhandle for inspiration to make platformers!\n@ElectricGalaxy for mobile friendly script\nto play again, press green flag 2 times!\n\nHashtags: #mobile #platformer #cave #galaxy #world #game #friendly #flashlight\n

@Stage\n\nwhen flag clicked\nplay sound [Cave Music v] until done\n\nwhen I receive [nyps v]\nnext backdrop\n\nwhen I receive [ending2 v]\nstop [all v]\n\n@Sprite1\n\nwhen flag clicked\nhide\ngo to [back v] layer\n\nwhen I receive [play on v]\nset rotation style [all around v]\nshow\nforever\n    set [ghost v] effect to (30)\n    go to (y e e t v)\n    point towards (mouse-pointer v)\nend\n\n@Thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\ngo to [front v] layer\nhide\n\nwhen I receive [ending v]\nswitch costume to (costume3 v)\nshow\nstop [all v]\n\n@Y E E T\n\nwhen flag clicked\nswitch costume to (costume2 v)\nswitch backdrop to (backdrop1 v)\ngo to x: (-134) y: (-83)\nshow\nglide (3) secs to x: (250) y: (-83)\nbroadcast (play on v)\n\nwhen I receive [play on v]\ngo to x: (-127) y: (-65)\nswitch backdrop to (backdrop2 v)\nswitch costume to (costume1 v)\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 <<mouse down?> and <(x position) > (mouse x)>> then\n        change [xv v] by (-1)\n    end\n    if <<mouse down?> and <(x position) < (mouse x)>> then\n        change [xv v] by (1)\n    end\n    if <touching color (#0a0a0a)?> then\n        change y by (1)\n        if <touching color (#0a0a0a)?> then\n            change y by (1)\n            if <touching color (#0a0a0a)?> then\n                change y by (1)\n                if <touching color (#0a0a0a)?> then\n                    change y by (1)\n                    if <touching color (#0a0a0a)?> then\n                        change y by (1)\n                        if <touching color (#0a0a0a)?> 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?> or <key (w 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 [yv v] by (-1)\n    change y by (Yv)\n    if <touching color (#0a0a0a)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#0a0a0a)?> then\n        if <<<mouse down?> and <(y position) < (mouse y)>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n            set [yv v] to [17]\n        end\n    end\n    change y by (1)\n    if <(y position) < [-170]> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        go to x: (-127) y: (-65)\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n    end\n    if <(x position) > [240]> then\n        broadcast (nyps v)\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        go to x: (-127) y: (-65)\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n    end\nend\n\nwhen I receive [play on v]\nforever\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        switch costume to (costume2 v)\n    else\n        if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n            switch costume to (costume3 v)\n        else\n            switch costume to (costume1 v)\n        end\n    end\nend\n\nwhen I receive [ending v]\nstop [other scripts in sprite v]\n\n@Sprite2\n\nwhen flag clicked\ngo to x: (168) y: (-57)\nhide\nforever\n    if <(backdrop [number v]) = [12]> then\n        show\n    else\n        hide\n    end\n    if <touching (y e e t v)?> then\n        hide\n        broadcast (Ending v)\n    end\nend\n\nwhen I receive [ending v]\nhide\n\n