SUCCEED: a Platformer (V.1.5)

Instructions: Use the keys to move. Press S to skip. (Cool time:30 secs)\nFinish to play playground!\n

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [message1 v]\nnext backdrop\n\nwhen flag clicked\nset [time v] to [0]\nforever\n    wait (1) seconds\n    change [time v] by (1)\n    if <(backdrop [number v]) = [14]> then\n        stop [this script v]\n    end\nend\n\n@Q\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (-193) y: (-102)\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (0.9)\n    end\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-0.9)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching color (#7f7f7f)?> then\n        change y by (1)\n        if <touching color (#7f7f7f)?> then\n            change y by (1)\n            if <touching color (#7f7f7f)?> then\n                change y by (1)\n                if <touching color (#7f7f7f)?> then\n                    change y by (1)\n                    if <touching color (#7f7f7f)?> then\n                        change y by (1)\n                        if <touching color (#7f7f7f)?> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <key (up arrow 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 [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 (#7f7f7f)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#7f7f7f)?> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [15]\n        end\n    end\n    change y by (1)\nend\n\nwhen flag clicked\nset size to (50) %\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-195) y: (-116)\n        broadcast (dead v)\n    end\n    if <color (#000000) is touching (#00fffd)?> then\n        broadcast (message1 v)\n        go to x: (-195) y: (-116)\n    end\nend\n\nwhen [s v] key pressed\nbroadcast (message1 v)\nwait (30) seconds\n\nwhen flag clicked\nforever\n    if <touching color (#003178)?> then\n        broadcast (Playground v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#0068ff)?> then\n        broadcast (Next v)\n        go to x: (-195) y: (-116)\n    end\nend\n\nwhen flag clicked\nset volume to (100) %\nforever\n    play sound [Josh A - No Chill \(Ft. MrTLexify\).mp3 v] until done\nend\n\n@Sprite2\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\n@Sprite3\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [front v] layer\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.3)\ngo to [front v] layer\nshow\nstop [all v]\n\n@Sprite1\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [playground v]\ngo to x: (0) y: (0)\nshow\n\nwhen I receive [next v]\nnext costume\n\n