Platformer Engine
@Stage\n\n@Player\n\nwhen flag clicked\nshow\nforever\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 (#000000)?> then\n        change y by (2)\n        if <touching color (#000000)?> then\n            change y by (2)\n            if <touching color (#000000)?> then\n                change y by (2)\n                if <touching color (#000000)?> then\n                    change y by (2)\n                    if <touching color (#000000)?> then\n                        change y by (2)\n                        if <touching color (#000000)?> then\n                            change y by (-5)\n                            change x by ((Xv) * (-1))\n                            if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-5]\n                                else\n                                    set [xv v] to [5]\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 [yv v] by (-1)\n    change y by (Yv)\n    if <touching color (#000000)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <<touching color (#000000)?> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        set [yv v] to [15]\n    end\n    change y by (1)\nend\n\nwhen flag clicked\nset size to (20) %\ngo to x: (-162) y: (7)\n\nwhen I receive [hide v]\nhide\n\nwhen flag clicked\nforever\n    if <(y position) = [-202]> then\n        go to x: (-162) y: (18)\n    end\nend\n\n@Platform\n\nwhen I receive [hide v]\nhide\n\nwhen flag clicked\nshow\n\n@Thumbnail\n\nwhen flag clicked\nforever\n    if <(username) = [ToaJaller]> then\n        broadcast (hide v)\n        show\n    else\n        hide\n    end\nend\n\n
Arrow keys or WASD to move. You can use turbo mode by shift clicking the flag, but it goes crazy!\nFeel free to take the script! I don't mind!