Scratch Cat: A Platformer v1.0
@Stage\n\n@Player\n\nwhen flag clicked\nset [gravity v] to [-1.5]\nset [jump force v] to [13]\nset [acceleration v] to [1.5]\nset [resistance v] to [0.8]\nset [speed y v] to [0]\ngo to x: (-150) y: (50)\nforever\n    if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n        if <(falling) < [3]> then\n            set [speed y v] to [13]\n        end\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [speed x v] by ((0) - (acceleration))\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [speed x v] by (acceleration)\n    end\n    set [speed x v] to ((SPEED X) * (RESISTANCE))\n    change [speed y v] by (GRAVITY)\n    Move- in steps (([abs v] of (speed y) ) + ([abs v] of (SPEED X) ))\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 (#9300ff)?> 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 y) / (steps))\n    if <touching color (#9300ff)?> then\n        set y to (Last value)\n        if <(speed y) < [0]> then\n            set [falling v] to [0]\n        end\n        set [speed y v] to [0]\n    end\nend\n\n@Poop On Me\n\nwhen flag clicked\nhide\n\n
The first version of SCRATCH CAT: A PLATFORMER\nMore versions will be released soon..\nArrow keys or WASD to move.\n:D\nv2.0(Part-2): https://scratch.mit.edu/projects/623989804