The Adventurer | A Platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen flag clicked\n\n\n@player\n\nwhen flag clicked\nset [gravity v] to [-1.5]\nset [jump force v] to [16]\nset [acceleration v] to [1.5]\nset [resistance v] to [0.8]\nset [speed why v] to [0]\ngo to x: (-150) y: (50)\nforever\n    if <key (up arrow v) pressed?> then\n        if <(falling) < [3]> then\n            set [speed why v] to (JUMP FORCE)\n        end\n    end\n    if <key (left arrow v) pressed?> then\n        change [speed x v] by ((0) - (ACCELERATION))\n    end\n    if <key (right arrow v) pressed?> then\n        change [speed x v] by (ACCELERATION)\n    end\n    set [speed x v] to ((speed x) * (RESISTANCE))\n    change [speed why v] by (GRAVITY)\n    Move - in steps (([abs v] of (speed x) ) + ([abs v] of (speed why) ))\nend\n\ndefine Move - in steps (steps)\nchange [falling v] by (1)\nrepeat (steps)\n    set [last value v] to (x position)\n    change x by ((speed x) / (steps))\n    if <touching color (#ff0000)?> then\n        set x to (last value)\n        set [speed x v] to [0]\n    end\n    set [last value v] to (y position)\n    change y by ((speed why) / (steps))\n    if <touching color (#ff0000)?> then\n        set y to (last value)\n        if <(speed why) < [0]> then\n            set [falling v] to [0]\n        end\n        set [speed why v] to [0]\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (_edge_ v)?> then\n        next backdrop\n        set x to (-150)\n        set y to (-30)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#00ff6b)?> then\n        set x to (-150)\n        set y to (-30)\n    end\nend\n\nwhen flag clicked\nswitch costume to (costume2 v)\n\n@player2\n\nwhen flag clicked\nhide\n\ndefine Move - in steps (steps)\nchange [falling v] by (1)\nrepeat (steps)\n    set [last value v] to (x position)\n    change x by ((speed x) / (steps))\n    if <touching color (#ff0000)?> then\n        set x to (last value)\n        set [speed x v] to [0]\n    end\n    set [last value v] to (y position)\n    change y by ((speed why) / (steps))\n    if <touching color (#ff0000)?> then\n        set y to (last value)\n        if <(speed why) < [0]> then\n            set [falling v] to [0]\n        end\n        set [speed why v] to [0]\n    end\nend\n\nwhen flag clicked\n\n
The adventure a platform \nArrow keys to move\nThis is my first platform I have ever made so if its not good im sorry \nHey i recently fixed it up so it looks a lot cleaner and it harder\nI might make more in the the future but this took forever to code \nyou are free to remix\nAnyways i hope you enjoy