-Save yourself-  A platformer

Instructions: A Blue cube is going for a walk when he gets trapped!\nHow will he escape?\n=================Instructions================\nArrow keys to move the player.\nBlue makes you jump high.\nPress down arrow on blue to jump lower.\nYellow arrows shoot you right.\npress/hold up arrow on orange dots.\nDon't touch spikes.

@Stage\n\n@Player\n\nwhen flag clicked\nset [color v] effect to (0)\ngo to [front v] layer\ngo to x: (-198) y: (-109)\nshow\ngo to [front v] layer\nforever\n    change [y v] by (-0.5)\n    if <key (left arrow v) pressed?> then\n        switch costume to (left v)\n        change [x v] by (-0.6)\n    end\n    if <key (right arrow v) pressed?> then\n        switch costume to (right v)\n        change [x v] by (0.6)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    change y by (y)\n    if <touching color (#009a33)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-0.5)\n    if <<touching color (#009a33)?> and <key (up arrow v) pressed?>> then\n        broadcast (jump v)\n        set [y v] to [9]\n    end\n    change y by (0.5)\n    if <touching color (#009a33)?> then\n        change y by (0.5)\n        if <touching color (#009a33)?> then\n            change y by (0.5)\n            if <touching color (#009a33)?> then\n                change y by (0.5)\n                if <touching color (#009a33)?> then\n                    change y by (0.5)\n                    if <touching color (#009a33)?> then\n                        change y by (0.5)\n                        if <touching color (#009a33)?> then\n                            change y by (0.5)\n                            if <touching color (#009a33)?> then\n                                change y by (-3)\n                                if <key (up arrow v) pressed?> then\n                                    broadcast (jump v)\n                                    set [y v] to [9]\n                                    if <(x) > [0]> then\n                                        set [x v] to [-10]\n                                    else\n                                        set [x v] to [10]\n                                    end\n                                else\n                                    change x by ((x) * (-1))\n                                    set [x v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(x position) > [240]> then\n        broadcast (next v)\n        set x to (-247)\n    end\nend\n\nwhen [r v] key pressed\ngo to x: (-191) y: (-113)\n\nwhen flag clicked\nset [deaths: v] to [0]\nforever\n    if <touching color (#ff0000)?> then\n        change [deaths: v] by (1)\n        set x to (-229)\n        set y to (-107)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#fff800)?> then\n        set [x v] to [20]\n    end\nend\n\nwhen I receive [water v]\ngo to x: (-187) y: (60)\n\nwhen flag clicked\nforever\n    if <<touching color (#003aff)?> and <key (down arrow v) pressed?>> then\n        set [y v] to [7]\n    else\n        if <<touching color (#003aff)?> and <not <key (down arrow v) pressed?>>> then\n            set [y v] to [11]\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#00ffe8)?> then\n        broadcast (gotcha v)\n    end\nend\n\nwhen I receive [ghost affect v]\nset [ghost v] effect to (0)\nrepeat (50)\n    change [ghost v] effect by (5)\nend\n\nwhen I receive [end v]\nset [color v] effect to (110)\nset [ghost v] effect to (0)\ngo to x: (-191) y: (-113)\n\nwhen flag clicked\nforever\n    if <<touching color (#ffa100)?> and <key (up arrow v) pressed?>> then\n        set [y v] to [8]\n    end\nend\n\nwhen I receive [movie end v]\nhide\n\nwhen I receive [movie end v]\nstop [other scripts in sprite v]\n\n@levels\n\nwhen flag clicked\nshow\ngo to [front v] layer\nswitch costume to (level 1 v)\ngo [backward v] (1) layers\ngo to x: (0) y: (0)\n\nwhen I receive [next v]\nnext costume\n\nwhen I receive [gotcha v]\nswitch costume to (level 16 v)\nwait (5) seconds\nbroadcast (ghost affect v)\nset [ghost v] effect to (0)\nrepeat (50)\n    change [ghost v] effect by (5)\nend\nwait (1) seconds\nswitch costume to (level 17 v)\nbroadcast (movie v)\n\nwhen I receive [end v]\nset [ghost v] effect to (0)\nswitch costume to (level 17 v)\n\nwhen flag clicked\nforever\n    if <(costume [name v]) = [Level 30]> then\n        wait (1) seconds\n        broadcast (movie end v)\n        hide\n        stop [this script v]\n    end\nend\n\n@Cloud\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nset [ghost v] effect to (10)\nshow\nset x to (240)\nset y to (pick random (40) to (180))\nset [speed v] to (pick random (-2) to (-5))\nrepeat until <(x position) < [-230]>\n    change x by (speed)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    repeat (pick random (1) to (10))\n        next costume\n    end\n    create clone of (_myself_ v)\n    wait (pick random (2) to (4)) seconds\nend\n\n@sky\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to [back v] layer\ngo to x: (0) y: (0)\n\nwhen I receive [ghost affect v]\nswitch costume to (costume2 v)\n\n@thumbnal\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\n@Sprite1\n\nwhen flag clicked\nhide\n\nwhen I receive [movie v]\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\nset [ghost v] effect to (100)\nshow\nrepeat (50)\n    change [ghost v] effect by (-5)\nend\nwait (1) seconds\nrepeat (9)\n    next costume\nend\nwait (1) seconds\nrepeat (4)\n    next costume\nend\nwait (1) seconds\nrepeat (11)\n    next costume\nend\nwait (1) seconds\nrepeat (3)\n    next costume\nend\nwait (1) seconds\nrepeat (10)\n    next costume\nend\nset [ghost v] effect to (0)\nrepeat (50)\n    change [ghost v] effect by (5)\nend\nbroadcast (end v)\n\nwhen I receive [movie end v]\nswitch costume to (costume39 v)\nwait (1) seconds\ngo to [front v] layer\nset [ghost v] effect to (0)\nshow\nrepeat (3)\n    next costume\nend\nwait (1) seconds\nrepeat (14)\n    next costume\nend\nwait (1) seconds\nrepeat (3)\n    next costume\nend\nwait (1) seconds\nrepeat (7)\n    next costume\nend\nwait (1) seconds\nrepeat (3)\n    next costume\nend\nrepeat (50)\n    change [ghost v] effect by (5)\nend\nswitch costume to (won v)\nrepeat (50)\n    change [ghost v] effect by (-5)\nend\nshow variable [deaths: v]\nshow variable [☁ username v]\nshow variable [☁ world record deaths: v]\nshow variable [☁ most amount of deaths v]\nshow variable [☁ username v]\n\nwhen flag clicked\nset [☁ username v] to (☁ Username)\nset [☁ username v] to (☁ username)\nhide variable [☁ username v]\nhide variable [deaths: v]\nhide variable [☁ world record deaths: v]\nhide variable [☁ most amount of deaths v]\nhide variable [☁ username v]\n\nwhen I receive [movie end v]\nforever\n    if <(Deaths:) < (☁ World record deaths:)> then\n        set [☁ world record deaths: v] to (Deaths:)\n        set [☁ username v] to (username)\n    end\n    if <(Deaths:) > (☁ Most amount of deaths)> then\n        set [☁ most amount of deaths v] to (Deaths:)\n        set [☁ username v] to (username)\n    end\nend\n\n