Platformer script NO GLITCHES!
@Stage\n\n@DRAG THE CODE IN THIS\n\nwhen flag clicked\ngo to x: (-185) y: (0)\nshow\nset [x v] to [0]\nset [y v] to [0]\nforever\n    change [y v] by (-1)\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-1)\n    end\n    if <key (right arrow v) pressed?> then\n        change [x v] by (1)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching color (#000000)?> then\n        change y by (1)\n    end\n    if <touching color (#000000)?> then\n        change y by (1)\n    end\n    if <touching color (#000000)?> then\n        change y by (1)\n    end\n    if <touching color (#000000)?> then\n        change y by (1)\n    end\n    if <touching color (#000000)?> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <key (up arrow v) pressed?> then\n            set [y v] to [8]\n            if <(x) > [0]> then\n                set [x v] to [-5]\n            else\n                set [x v] to [5]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <touching color (#000000)?> then\n        change y by ((0) - (y))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<touching color (#000000)?> and <key (up arrow v) pressed?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <<touching color (#ff0000)?> or <(y position) < [-199]>> then\n        go to x: (-185) y: (0)\n        set [y v] to [0]\n        set [x v] to [0]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(x position) > [259]> then\n        go to x: (-226) y: (-41)\n        broadcast (next v)\n        set [x v] to [0]\n        set [y v] to [0]\n    end\n    if <[-166] > (y position)> then\n        go to x: (-226) y: (-41)\n        set [x v] to [0]\n        set [y v] to [0]\n    end\nend\n\n@Sprite2\n\nwhen I receive [next v]\nnext costume\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\n\n@Sprite3\n\nwhen flag clicked\nhide\n\n
Drag the code in the player into your backpack.\nIf you use it, you don't have to credit me but you could.\nIf you use it and don't credit, just love the project.\nYou don't have to favorite. Idc