PLATFORMER TUTORIAL part2
@Stage\n\nwhen flag clicked\nif <not <(username) = [gravityv]>> then\n    change [☁ views v] by (1)\nend\n\nset [☁ views v] to [0]\n\n@thumbnail\n\nwhen flag clicked\nforever\n    show\n    go to x: (0) y: (0)\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\n@SLIDES\n\nwhen flag clicked\ngo to [back v] layer\nswitch costume to (costume1 v)\nglide\nforever\n    if <mouse down?> then\n        wait until <not <mouse down?>>\n        next costume\n        if <(costume [number v]) = [3]> then\n            broadcast (example v)\n        else\n            broadcast (hide v)\n        end\n        glide\n    end\nend\n\ndefine glide\ngo to x: (435) y: (0)\nrepeat until <<(round (x position)) = [0]> and <(round (y position)) = [0]>>\n    change x by (((0) - (x position)) / (5))\n    change y by (((0) - (y position)) / (5))\nend\n\n@scripts\n\nwhen flag clicked\nhide\ngo to x: (-170) y: (8)\nset [xv v] to [0]\nset [yv v] to [0]\n\nwhen I receive [example v]\ngo to x: (-170) y: (8)\nset [xv v] to [0]\nset [yv v] to [0]\nshow\nforever\n    if <touching (_edge_ v)?> then\n        go to x: (-170) y: (8)\n        set [xv v] to [0]\n        set [yv v] to [0]\n    end\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-1)\n    end\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (1)\n    end\n    change x by (Xv)\n    if <touching (level v)?> then\n        change x by ((Xv) * (-1))\n        if <key (up arrow v) pressed?> then\n            if <(Xv) < [0]> then\n                set [xv v] to [10]\n                set [yv v] to [10]\n            else\n                set [xv v] to [-10]\n                set [yv v] to [10]\n            end\n        else\n            set [xv v] to [0]\n        end\n    else\n        set [xv v] to ((Xv) * (0.8))\n    end\n    change y by (Yv)\n    if <touching (level v)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n        if <key (up arrow v) pressed?> then\n            if <(jumped?) = [0]> then\n                set [yv v] to [11]\n                set [jumped? v] to [1]\n            end\n        end\n    else\n        change [yv v] by (-1)\n        set [jumped? v] to [0]\n    end\nend\n\nwhen I receive [hide v]\nhide\n\n@level\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [front v] layer\nhide\n\nwhen I receive [example v]\nshow\n\nwhen I receive [hide v]\nhide\n\n
PLATFORMER TUTORIAL\nI hope this tutorial can let you know how to make a platformer, and even scroll! If you like, love and fav plz!