platformer cat
@Stage\n\n@Platformer\n\nwhen flag clicked\nbroadcast (Green Flag v)\n\nwhen I receive [green flag v]\nset [speed y v] to [0]\nset [speed x v] to [0]\ngo to x: (-215) y: (-72)\nset rotation style [left-right v]\nforever\n    Run game\nend\n\ndefine Run game\nchange [speed y v] by (-1)\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    change [speed x v] by (3.4)\nend\nif <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n    change [speed x v] by (-3.4)\nend\nset [speed x v] to ((Speed x) * (0.7))\nchange x by (Speed x)\nif <touching (plat v)?> then\n    change y by (1)\n    if <touching (plat v)?> then\n        change y by (1)\n        if <touching (plat v)?> then\n            change y by (1)\n            if <touching (plat v)?> then\n                change y by (1)\n                if <touching (plat v)?> then\n                    change y by (1)\n                    if <touching (plat v)?> then\n                        change y by (1)\n                        if <touching (plat v)?> then\n                            change y by (1)\n                            if <touching (plat v)?> then\n                                change y by (1)\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nif <touching (plat v)?> then\n    change y by (10)\n    repeat until <not <touching (plat v)?>>\n        change x by ((Speed x) * (-1))\n    end\n    if <<<key (space v) pressed?> or <key (space v) pressed?>> and <touching (plat v)?>> then\n        set [speed y v] to [10]\n        if <(Speed x) < [0]> then\n            set [speed x v] to [16]\n        else\n            set [speed x v] to [0]\n        end\n    else\n        set [speed x v] to [0]\n    end\nend\nchange y by (Speed Y)\nif <touching (plat v)?> then\n    repeat until <not <touching (plat v)?>>\n        change y by ((Speed Y) * (-1))\n    end\n    set [speed y v] to [0]\nend\nchange y by (-1)\nif <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <touching (plat v)?>> then\n    change [speed y v] by (15)\nend\nchange y by (1)\nif <(x position) > [238]> then\n    change [level v] by (1)\n    Reset\nend\nif <touching (dieeeeeeee v)?> then\n    Reset\nend\n\nwhen I receive [green flag v]\nReset\nforever\n    Run game\nend\n\ndefine Reset\nset [speed y v] to [0]\nset [speed x v] to [0]\ngo to x: (-215) y: (-72)\nset rotation style [left-right v]\n\n@Plat\n\nwhen flag clicked\nset [level v] to [1]\nforever\n    go to x: (0) y: (0)\n    switch costume to (Level)\nend\n\n@Unity\n\nwhen flag clicked\nhide\ngo to x: (-126) y: (-74)\nstop all sounds\nforever\n    play sound [TheFatRat - Unity v] until done\nend\n\n@DIEEEEEEEE\n\nwhen flag clicked\nset [level v] to [1]\nforever\n    go to x: (0) y: (0)\n    switch costume to (Level)\nend\n\n
why the heck does this have so many veiws?!