Scrolling Platformer Tutorial
@Stage\n\n@Stages\n\nwhen I receive [showcase v]\nset size to (100) %\nshow\nshow variable [stagex v]\nset [stagex v] to [0]\nset [id v] to [1]\ncreate clone of (_myself_ v)\nset [id v] to [2]\nforever\n    broadcast (Frame v) and wait\n    if <key (right arrow v) pressed?> then\n        set [stagex v] to (((StageX) + (2)) mod (2800))\n    end\n    if <key (left arrow v) pressed?> then\n        set [stagex v] to (((StageX) - (2)) mod (2800))\n    end\nend\n\nwhen I receive [frame v]\nswitch costume to (([floor v] of ((StageX) / (465)) ) + (ID))\ngo to x: ((((([floor v] of ((StageX) / (465)) ) + (ID)) - (1)) * (465)) - (StageX)) y: (0)\n\ndefine None\ngo to x: ((([floor v] of ((stagex) / (480)) ) * (480)) - (stagex)) y: (0)\n\ndefine None\ngo to x: (((([floor v] of ((stagex) / (480)) ) + (1)) * (480)) - (stagex)) y: (0)\n\n@Instruction Slides\n\nwhen flag clicked\nhide variable [stagex v]\ngo to x: (0) y: (0)\nhide\nswitch costume to ((0) - (1))\nset [slides v] to ((costume [number v]) + (1))\nset [slide v] to [1]\ncreate clone of (_myself_ v)\nforever\n    if <key (space v) pressed?> then\n        set [slide v] to (((Slide) + (1)) mod (Slides))\n        create clone of (_myself_ v)\n        wait until <not <key (space v) pressed?>>\n        if <(Slide) = [23]> then\n            broadcast (Showcase v)\n        end\n    end\nend\n\nwhen I start as a clone\nhide\nswitch costume to (Slide)\nset [slide v] to [4]\ngo to x: (240) y: (0)\nset size to (140) %\nbroadcast (Next Slide v)\nwait until <not <key (space v) pressed?>>\nshow\ngo to [front v] layer\ngo [backward v] (1) layers\nrepeat (4)\n    change size by (-10)\n    change x by ((Slide) * (-20))\n    change [slide v] by (-1)\nend\nclear graphic effects\ngo to x: (0) y: (0)\n\nwhen I start as a clone\nwait until <not <key (space v) pressed?>>\nwait until <key (space v) pressed?>\nwait until <not <key (space v) pressed?>>\ngo [backward v] (1) layers\nrepeat (5)\n    change x by ((Slide) * (20))\n    change [slide v] by (-1)\nend\ndelete this clone\n\nshow\n\n@Slide Animations\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\nset [slide v] to [1]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nhide\nwait until <not <key (space v) pressed?>>\nswitch costume to (Slide)\nset [slide v] to [4]\ngo to x: (240) y: (0)\nset size to (140) %\nset [brightness v] effect to (50)\nshow\ngo to [front v] layer\nrepeat (4)\n    change size by (-10)\n    change [brightness v] effect by (-10)\n    change x by ((Slide) * (-20))\n    change [slide v] by (-1)\nend\nclear graphic effects\ngo to x: (0) y: (0)\n\nwhen I start as a clone\ngo to x: (0) y: (0)\nif <(Slide) = [3]> then\n    repeat (9)\n        change x by (-5)\n        wait (0.1) seconds\n    end\n    forever\n        repeat (9)\n            change x by (5)\n            wait (0.1) seconds\n        end\n        repeat (9)\n            change x by (-5)\n            wait (0.1) seconds\n        end\n    end\nend\nif <(Slide) = [6]> then\n    forever\n        repeat (8)\n            change x by (-5)\n            wait (0.1) seconds\n        end\n        wait (0.5) seconds\n        repeat (8)\n            change x by (5)\n            wait (0.1) seconds\n        end\n    end\nend\nif <(Slide) = [7]> then\n    forever\n        repeat (8)\n            change y by (5)\n            wait (0.1) seconds\n        end\n        repeat (8)\n            change y by (-5)\n            wait (0.1) seconds\n        end\n    end\nend\nif <(Slide) = [18]> then\n    forever\n        repeat (8)\n            change x by (5)\n            wait (0.1) seconds\n        end\n        repeat (8)\n            change x by (-5)\n            wait (0.1) seconds\n        end\n    end\nend\n\nwhen I start as a clone\nwait until <not <key (space v) pressed?>>\nwait until <key (space v) pressed?>\nwait until <not <key (space v) pressed?>>\ngo [backward v] (1) layers\nrepeat (5)\n    change x by ((Slide) * (20))\n    change [slide v] by (-1)\nend\ndelete this clone\n\nwhen I receive [next slide v]\nset [slide v] to ([slide v] of [instruction slides v])\ncreate clone of (_myself_ v)\n\n@Thumbnail\n\nwhen flag clicked\nswitch costume to (slide 1 v)\ngo to [front v] layer\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\n\n
~~~A tutorial about how to make scrolling platformers.~~~\n\nIf you want to make a scrolling platformer, but do not know how to, this project is for you! (Even if you know, this project shows some ways to deal with some issues that might arise)\n\n~Press space to advance to the next slide.\n\nAs this is my first tutorial (ever), please leave some (constructive) criticism in the comments. Tell me if you find any spelling errors (xD)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nL̶e̶t̶ ̶m̶e̶ ̶k̶n̶o̶w̶ ̶i̶f̶ ̶y̶o̶u̶ ̶w̶a̶n̶t̶ ̶a̶ ̶p̶a̶r̶t̶ ̶2̶,̶ ̶a̶s̶ ̶t̶h̶e̶r̶e̶ ̶a̶r̶e̶ ̶m̶a̶n̶y̶ ̶t̶h̶i̶n̶g̶s̶ ̶l̶e̶f̶t̶ ̶t̶o̶ ̶d̶o̶,̶ ̶b̶e̶f̶o̶r̶e̶ ̶w̶e̶ ̶c̶a̶n̶ ̶m̶a̶k̶e̶ ̶t̶h̶e̶ ̶p̶l̶a̶t̶f̶o̶r̶m̶e̶r̶ ̶p̶l̶a̶y̶a̶b̶l̶e̶.̶\nIm not active on scratch anymore (sorry). If anyone wants, they can make the effort to make a part 2.\n\nJust as a warning:\nDON'T check out my other projects. They are terrible (second xD)\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nYou sure you read everything? I mean above this, there is nothing to see below.\n\n\nxD still reading\n\n\nLets have a monolog! said nobody ever.\n\n\nOk, you read this far, comment the amount of xD's you can find in the project and in the description, followed by "Ball".\n\n\nxD