SUPA POPULAR PLATFORMER
@Stage\n\n@Sprite1\n\nwhen flag clicked\nhide\n\ndefine platformer engine\nchange [y v] by (-1)\nif <key (right arrow v) pressed?> then\n    change [x v] by (1)\nend\nif <key (left arrow v) pressed?> then\n    change [x v] by (-1)\nend\nset [x v] to ((X) * (0.9))\nchange x by (X)\nif <touching color (#000000)?> then\n    change y by (1)\n    if <touching color (#000000)?> then\n        change y by (1)\n        if <touching color (#000000)?> then\n            change y by (1)\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                    if <touching color (#000000)?> then\n                        change y by (-5)\n                        change x by ((X) * (-1))\n                        if <key (up arrow v) pressed?> then\n                            set [y v] to [12]\n                            if <(X) > [0]> then\n                                set [x v] to [-10]\n                            else\n                                set [x v] to [10]\n                            end\n                        else\n                            set [x v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nchange y by (Y)\nif <touching color (#000000)?> then\n    change y by ((Y) * (-1))\n    set [y v] to [0]\nend\nchange y by (-1)\nif <<touching color (#000000)?> and <key (up arrow v) pressed?>> then\n    set [y v] to [12]\nend\nchange y by (1)\nchange [scrollx v] by ((x position) * (-1))\nchange [scrolly v] by ((y position) * (-1))\ngo to x: (0) y: (0)\nif <touching color (#009dea)?> then\n    set [scrollx v] to [595]\n    set [scrolly v] to [-100]\nend\nif <(scrollY) > [700]> then\n    set [scrollx v] to [595]\n    set [scrolly v] to [-100]\nend\n\nwhen I receive [message1 v]\nshow\nset [x v] to [0]\nset [y v] to [0]\nforever\n    platformer engine\nend\n\nwhen I receive [purple v]\nswitch costume to (costume1 v)\n\nwhen I receive [red v]\nswitch costume to (costume2 v)\n\nwhen I receive [yellow v]\nswitch costume to (costume3 v)\n\n@level\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [message1 v]\nshow\nswitch costume to (costume v)\nset size to (200) %\nswitch costume to (costume1 v)\nset [scrollx v] to [595]\nset [scrolly v] to [-100]\nset [level v] to [2]\nforever\n    go to x: (scrollX) y: (scrollY)\nend\n\nwhen I receive [hi v]\nswitch costume to (costume2 v)\n\n@Sprite2\n\nwhen flag clicked\nforever\n    show\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\n@Sprite3\n\nwhen this sprite clicked\nbroadcast (message1 v)\nhide\n\nwhen flag clicked\nshow\n\nwhen flag clicked\nswitch costume to (costume1 v)\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (costume2 v)\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen flag clicked\nforever\n    repeat (2)\n        play sound [A Elec Piano v] until done\n    end\nend\n\n
arrow keys bc I wrong