platformer

Instructions: use the arrow keys\nblue is bouncy\ndon't touch gray or red\n\nFull screen recommended

@Stage\n\n@Nano\n\nwhen flag clicked\nshow\nset [level v] to [1]\nset [yv v] to [0]\nset [xv v] to [0]\nforever\n    change [yv v] by (-0.5)\n    if <key (right arrow v) pressed?> then\n        switch costume to (costume2 v)\n        change [xv v] by (0.7)\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (costume3 v)\n        change [xv v] by (-0.7)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <<touching color (#000008)?> and <not <touching (sprite3 v)?>>> 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                            if <touching (null v)?> then\n                                change x by (Change)\n                            end\n                            change x by (1)\n                            if <key (up arrow v) pressed?> then\n                                if <not <touching color (#00ff55)?>> 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                                end\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    if <touching color (#000008)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching (null v)?> then\n        change x by (Change)\n    end\n    if <touching color (#000008)?> then\n        if <key (up arrow v) pressed?> then\n            if <not <touching color (#00ff55)?>> then\n                set [yv v] to [10]\n            end\n        end\n    end\n    if <touching color (#003fff)?> then\n        set [yv v] to [15]\n    end\n    change y by (1)\nend\n\nwhen flag clicked\nswitch backdrop to (level 1 v)\nset size to (100) %\ngo to x: (-205) y: (-80)\n\nwhen I receive [starting position v]\nsay [oof] for (0.5) seconds\ngo to x: (-206) y: (-97)\nchange [fails v] by (1)\n\nwhen flag clicked\nswitch backdrop to (level 1 v)\n\nwhen backdrop switches to [level 2 v]\ngo to x: (-206) y: (-105)\n\nwhen backdrop switches to [level 4 v]\ngo to x: (-214) y: (-80)\n\nwhen backdrop switches to [level 1 v]\nforever\n    if <touching (sprite1 v)?> then\n        switch backdrop to (level 2 v)\n    end\nend\n\nwhen backdrop switches to [level 2 v]\nforever\n    if <touching color (#666666)?> then\n        say [oof] for (0.5) seconds\n        go to x: (-223) y: (-105)\n        change [fails v] by (1)\n    end\nend\n\nwhen flag clicked\nshow variable [fails v]\nset [fails v] to [0]\n\nwhen backdrop switches to [level 2 v]\nforever\n    if <touching (sprite5 v)?> then\n        switch backdrop to (level 3 v)\n    end\nend\n\nwhen backdrop switches to [level 3 v]\ngo to x: (-219) y: (-97)\n\nwhen backdrop switches to [level 3 v]\nforever\n    if <touching (sprite6 v)?> then\n        switch backdrop to (level 4 v)\n    end\nend\n\nwhen backdrop switches to [level 4 v]\nforever\n    if <touching (sprite4 v)?> then\n        switch backdrop to (level 5 v)\n    end\nend\n\nwhen backdrop switches to [level 5 v]\ngo to x: (-214) y: (-102)\n\nwhen backdrop switches to [level 4 v]\nforever\n    if <touching color (#ff0000)?> then\n        say [oof] for (0.5) seconds\n        go to x: (-225) y: (-76)\n        change [fails v] by (1)\n    end\nend\n\nwhen backdrop switches to [level 5 v]\nforever\n    if <touching (sprite8 v)?> then\n        switch backdrop to (level 6 v)\n    end\nend\n\nwhen backdrop switches to [level 6 v]\ngo to x: (-234) y: (-76)\n\nwhen backdrop switches to [level 6 v]\nforever\n    if <touching (sprite10 v)?> then\n        switch backdrop to (level 7 v)\n    end\nend\n\nwhen backdrop switches to [level 7 v]\ngo to x: (-226) y: (-100)\n\nwhen backdrop switches to [level 7 v]\nforever\n    if <touching (sprite13 v)?> then\n        switch backdrop to (level 8 v)\n    end\nend\n\nwhen backdrop switches to [level 8 v]\ngo to x: (-208) y: (-85)\n\nwhen backdrop switches to [level 8 v]\nforever\n    if <touching (sprite20 v)?> then\n        switch backdrop to (level 9 v)\n    end\nend\n\nwhen backdrop switches to [level 9 v]\ngo to x: (-214) y: (-92)\n\nwhen backdrop switches to [level 9 v]\nforever\n    if <touching (sprite18 v)?> then\n        switch backdrop to (level 10 v)\n    end\nend\n\nwhen backdrop switches to [level 10 v]\ngo to x: (-218) y: (-85)\n\nwhen backdrop switches to [backdrop1 v]\nhide variable [fails v]\n\nwhen backdrop switches to [level 10 v]\nforever\n    if <touching (sprite21 v)?> then\n        switch backdrop to (backdrop1 v)\n    end\nend\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\nwhen flag clicked\nshow\nforever\n    if <<key (left arrow v) pressed?> and <not <key (up arrow v) pressed?>>> then\n        wait (0.1) seconds\n        switch costume to (costume1 v)\n        wait (0.1) seconds\n        switch costume to (costume2 v)\n    end\n    if <<key (right arrow v) pressed?> and <not <key (up arrow v) pressed?>>> then\n        wait (0.1) seconds\n        switch costume to (costume3 v)\n        wait (0.1) seconds\n        switch costume to (costume4 v)\n    end\n    if <<key (left arrow v) pressed?> and <key (up arrow v) pressed?>> then\n        switch costume to (costume5 v)\n    end\n    if <<key (right arrow v) pressed?> and <key (up arrow v) pressed?>> then\n        switch costume to (costume6 v)\n    end\n    if <<not <<key (right arrow v) pressed?> or <<key (left arrow v) pressed?> or <key (up arrow v) pressed?>>>> and <<(costume [number v]) = [2]> or <(costume [number v]) = [5]>>> then\n        switch costume to (costume1 v)\n    end\n    if <<not <<key (right arrow v) pressed?> or <<key (left arrow v) pressed?> or <key (up arrow v) pressed?>>>> and <<(costume [number v]) = [4]> or <(costume [number v]) = [6]>>> then\n        switch costume to (costume3 v)\n    end\nend\n\n@Sprite1\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [level 1 v]\nshow\ngo to x: (237) y: (-90)\n\nwhen backdrop switches to [level 2 v]\nhide\n\n@Sprite2\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [level 3 v]\nshow\nforever\n    go to x: (17) y: (220)\n    glide (1.3) secs to x: (27) y: (-70)\n    go to x: (17) y: (220)\nend\n\nwhen backdrop switches to [level 3 v]\nforever\n    if <touching (nano v)?> then\n        broadcast (starting position v)\n    end\nend\n\nwhen backdrop switches to [level 4 v]\nhide\n\nwhen flag clicked\nplay sound [Undertale - Megalovania v] until done\nplay sound [Undertale - Megalovania v] until done\n\n@Sprite3\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [level 3 v]\nshow\nforever\n    go to x: (35) y: (219)\n    glide (1.3) secs to x: (166) y: (-74)\n    go to x: (35) y: (219)\nend\n\nwhen backdrop switches to [level 3 v]\nforever\n    if <touching (nano v)?> then\n        broadcast (starting position v)\n    end\nend\n\nwhen backdrop switches to [level 4 v]\nhide\n\n@Sprite5\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [level 2 v]\nshow\ngo to x: (237) y: (-90)\n\nwhen backdrop switches to [level 3 v]\nhide\n\n@Sprite6\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [level 3 v]\nshow\ngo to x: (237) y: (-90)\n\nwhen backdrop switches to [level 4 v]\nhide\n\n@Sprite4\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [level 4 v]\nshow\ngo to x: (237) y: (-90)\n\nwhen backdrop switches to [level 5 v]\nhide\n\n@Sprite7\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [level 4 v]\nshow\ngo to x: (237) y: (-90)\n\nwhen backdrop switches to [level 5 v]\nhide\n\n@Sprite8\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [level 5 v]\nshow\ngo to x: (231) y: (-98)\n\nwhen backdrop switches to [level 6 v]\nhide\n\n@Sprite9\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [level 8 v]\nforever\n    hide\nend\n\nwhen backdrop switches to [level 7 v]\nrepeat (10000)\n    wait (1) seconds\n    show\n    go to x: (36) y: (259)\n    glide (1) secs to x: (33) y: (-40)\n    hide\nend\nstop [this script v]\n\n@Sprite10\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [level 6 v]\nshow\ngo to x: (230) y: (-76)\n\nwhen backdrop switches to [level 7 v]\nhide\n\n@Sprite11\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [level 7 v]\nforever\n    show\n    go to x: (-101) y: (215)\n    glide (1) secs to x: (-114) y: (-76)\n    hide\n    wait (1) seconds\nend\n\nwhen backdrop switches to [level 8 v]\nforever\n    hide\nend\n\n@Sprite12\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [level 7 v]\nforever\n    show\n    go to x: (155) y: (215)\n    glide (1) secs to x: (154) y: (-75)\n    hide\n    wait (1) seconds\nend\n\nwhen backdrop switches to [level 8 v]\nforever\n    hide\nend\n\n@Sprite13\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [level 7 v]\nshow\ngo to x: (227) y: (-93)\n\nwhen backdrop switches to [level 8 v]\nhide\n\n@Sprite14\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [level 9 v]\nhide\nforever\n    hide\n    go to x: (71) y: (79)\n    wait (1) seconds\n    show\n    glide (1) secs to x: (75) y: (210)\nend\n\nwhen backdrop switches to [level 10 v]\nforever\n    hide\nend\n\n@Sprite15\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [level 9 v]\n\nforever\n    hide\n    go to x: (55) y: (77)\n    wait (1) seconds\n    show\n    glide (1) secs to x: (60) y: (210)\nend\n\nwhen backdrop switches to [level 10 v]\nforever\n    hide\nend\n\n@Sprite16\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [level 9 v]\nhide\nforever\n    hide\n    go to x: (88) y: (81)\n    show\n    glide (1) secs to x: (93) y: (207)\nend\n\nwhen backdrop switches to [level 10 v]\nforever\n    hide\nend\n\n@Sprite17\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [level 9 v]\nhide\nforever\n    hide\n    go to x: (118) y: (88)\n    show\n    glide (1) secs to x: (122) y: (207)\nend\n\nwhen backdrop switches to [level 10 v]\nforever\n    hide\nend\n\n@Sprite20\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [level 8 v]\nshow\ngo to x: (227) y: (-93)\n\nwhen backdrop switches to [level 9 v]\nhide\n\n@Sprite18\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [level 10 v]\nhide\n\nwhen backdrop switches to [level 9 v]\nshow\ngo to x: (227) y: (-93)\n\n@Sprite19\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [level 10 v]\nhide\n\nwhen backdrop switches to [level 9 v]\nshow\ngo to x: (227) y: (-93)\n\n@giphy\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop1 v]\nshow\n\n@Sprite21\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\nwhen backdrop switches to [level 10 v]\nshow\ngo to x: (227) y: (-106)\n\n@Sprite22\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [level 8 v]\nrepeat (10000)\n    wait (1) seconds\n    show\n    go to x: (-86) y: (245)\n    glide (1) secs to x: (-89) y: (-42)\n    hide\nend\nstop [this script v]\n\nwhen backdrop switches to [level 9 v]\nforever\n    hide\nend\n\n