Cave Jumper | A Platformer 

Instructions: -Arrows or WASD to move(you can wall jump too!)\n-Don´t touch red\n-Yellow makes you jump high\n-You can swim in blue\n-There are currently 13 levels (more coming soon)\n\nwow 1k views.\n\n

@Stage\n\nrepeat (10)\n    change [ghost v] effect by (25)\n    wait (0.1) seconds\nend\nset [ghost v] effect to (0)\n\nwhen [space v] key pressed\nbroadcast (start v)\n\n@Player\n\nwhen [space v] key pressed\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-200) y: (15)\n    end\nend\n\nwhen flag clicked\n\nforever\n    if <(backdrop [name v]) = [win]> then\n        hide\n        stop [all v]\n    end\nend\n\nforever\n    if <touching color (#009999)?> then\n        if <key (up arrow v) pressed?> then\n            change [yv v] by (-1)\n        else\n            change [yv v] by (1)\n        end\n    end\nend\n\nwhen I receive [start v]\nswitch backdrop to (1 v)\nshow\ngo to x: (-202) y: (44)\nforever\n    change [yv v] by (-0.5)\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 <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                            change x by (1)\n                            if <<key (up arrow v) pressed?> or <key (w 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    change y by (-1)\n    if <touching color (#000008)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n        change y by (-2)\n        if <touching color (#000000)?> then\n            set [yv v] to [10]\n        end\n        change y by (2)\n    end\nend\n\nchange y by (1)\n\nwhen flag clicked\nforever\n    if <touching color (#00cccc)?> then\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            set [yv v] to [5]\n        else\n            set [yv v] to [-1]\n        end\n        if <<key (down arrow v) pressed?> or <key (s v) pressed?>> then\n            set [yv v] to [-5]\n        end\n    end\nend\n\nwhen [space v] key pressed\nforever\n    if <touching color (#cccccc)?> then\n        switch backdrop to (next backdrop v)\n        go to x: (-210) y: (15)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ffff00)?> then\n        set [yv v] to [15]\n    end\nend\n\nwhen flag clicked\nforever\n\ngo to x: (87) y: (-184)\n\nwhen flag clicked\nhide\nswitch backdrop to (start v)\n\n@Sprite1\n\nwhen flag clicked\nhide\nwait until <(backdrop [name v]) = [4]>\n\nswitch costume to (2 v)\nswitch costume to (1 v)\nswitch costume to (2 v)\n\nwhen flag clicked\n\nforever\n    if <(backdrop [name v]) = [win]> then\n        hide\n        stop [other scripts in sprite v]\n    end\nend\n\nwhen I receive [start v]\n\nwhen flag clicked\n\ngo to x: (10) y: ([y position v] of [player v])\n\nshow\n\nset size to (100) %\ngo [backward v] (1) layers\nshow\nforever\n    go to (player v)\nend\n\nglide (1) secs to (random position v)\n\nforever\n    if <(pick random (1) to (10)) > (pick random (1) to (10))> then\nend\n\n@Sprite2\n\nwhen flag clicked\nhide\nforever\n    if <(backdrop [name v]) = [12]> then\n        point in direction (90)\n        show\n        forever\n            switch costume to (costume1 v)\n            wait (3) seconds\n            switch costume to (costume2 v)\n            wait (4) seconds\n        end\n    end\nend\n\nturn right (3) degrees\n\nwhen flag clicked\nforever\n    if <(backdrop [name v]) = [13]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    \nend\n\n@Sprite3\n\nwhen flag clicked\nhide\ngo to x: (18) y: (28)\n\nwhen flag clicked\nforever\n    if <(backdrop [name v]) = [13]> then\n        show\n    end\nend\n\nwhen I receive [tule lahti uks !!!1! v]\nhide\nstop [this script v]\n\nwhen I receive [tule lahti uks !!!1! v]\nhide\nstop [other scripts in sprite v]\n\n@Sprite4\n\nwhen flag clicked\nforever\n    if <(backdrop [name v]) = [13]> then\n        show\n    end\nend\n\nwhen flag clicked\nhide\ngo to x: (-328) y: (85)\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        broadcast (tUle lAhtI Uks !!!1! v)\n        go to x: (543) y: (0)\n    end\nend\n\nhide\nstop [this script v]\n\n