PIXELS A PLATFORMER GAME
@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [message1 v]\nnext backdrop\n\n@Sprite1\n\ndefine Platform (jump height) (friction) (running speed)\nset rotation style [left-right v]\nswitch costume to (costume1 v)\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    point in direction (90)\n    change [x velocity v] by (running speed)\nend\nif <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n    point in direction (-90)\n    change [x velocity v] by ((running speed) * (-1))\nend\nset [x velocity v] to ((X Velocity) * (friction))\nchange x by (X Velocity)\nif <touching color (#000000)?> then\n    set [slope v] to [0]\n    repeat until <<(Slope) = [8]> or <not <touching color (#000000)?>>>\n        change [slope v] by (1)\n        change y by (1)\n    end\n    if <touching color (#000000)?> then\n        change y by ((Slope) * (-1))\n        repeat ([ceiling v] of ([abs v] of (X Velocity) ) )\n            if <touching color (#000000)?> then\n                change x by (([abs v] of (X Velocity) ) / ((X Velocity) * (-1)))\n            end\n        end\n        if <key (up arrow v) pressed?> then\n            set [y velocity v] to [10]\n            if <(X Velocity) > [0]> then\n                set [x velocity v] to [-15]\n            else\n                set [x velocity v] to [15]\n            end\n        else\n            set [x velocity v] to [0]\n        end\n    end\nend\nchange y by (Y Velocity)\nif <touching color (#000000)?> then\n    repeat ([ceiling v] of ([abs v] of (Y Velocity) ) )\n        if <touching color (#000000)?> then\n            change y by (([abs v] of (Y Velocity) ) / ((Y Velocity) * (-1)))\n        end\n    end\n    if <<(([abs v] of (Y Velocity) ) / (Y Velocity)) = [-1]> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        set [y velocity v] to (jump height)\n    else\n        set [y velocity v] to [0]\n        switch costume to (idle v)\n    end\nelse\n    change [y velocity v] by (-1)\nend\n\nwhen flag clicked\ngo to x: (0) y: (150)\nset [x velocity v] to [0]\nset [y velocity v] to [0]\nforever\n    Platform [12] [0.7] [4]\nend\n\nwhen flag clicked\nrepeat (10)\n    go to x: (-176) y: (-26)\nend\n\nwhen flag clicked\nforever\n    wait until <touching (_edge_ v)?>\n    broadcast (message1 v)\n    go to x: (-176) y: (-26)\nend\n\nwhen flag clicked\nforever\n    wait until <touching color (#a70000)?>\n    go to x: (-176) y: (-26)\nend\n\n@Sprite2\n\nwhen flag clicked\nhide\nforever\n    play sound [Fire by bubblebee3 v] until done\nend\n\n
THIS IS A NICE PLATFORMER MADE BY @atitap\nand @JOBRA-KING-studio. hope you enjoy! pls love fave and remix and follow!!! ;)\n\n\n