scrolling platformer tutorial
@Stage\n\n@Player\n\nwhen flag clicked\nswitch costume to (stand v)\npoint in direction (90)\nforever\n    if <<<key (right arrow v) pressed?> or <key (left arrow v) pressed?>> and <(costume [number v]) = [16]>> then\n        switch costume to (run1 v)\n    end\nend\n\nwhen flag clicked\ngo to x: (0) y: (-40)\nset rotation style [left-right v]\nset [move speed v] to [0]\nset [scroll v] to [0]\nforever\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <[0] < (mouse x)>>>> then\n        point in direction (90)\n        next costume\n        set [move speed v] to [-8]\n    else\n        if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < [0]>>>> then\n            point in direction (-90)\n            next costume\n            set [move speed v] to [8]\n        else\n            switch costume to (stand v)\n        end\n    end\n    change [scroll v] by (move speed)\n    set [move speed v] to ((move speed) * (0.8))\nend\n\nwhen flag clicked\nforever\n    repeat until <touching color (#20ad00)?>\n        change y by (-3)\n    end\nend\n\nwhen flag clicked\nforever\n    repeat until <not <touching color (#20ad00)?>>\n        change y by (3)\n        if <key (up arrow v) pressed?> then\n            repeat (15)\n                change y by (6)\n            end\n            wait until <touching color (#20ad00)?>\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#20ad00)?> then\n        change [scroll v] by ((move speed) - ((move speed) * (2.5)))\n    end\n    go to [front v] layer\nend\n\n@terrarian \n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\nswitch costume to ((costume [number v]) - (1))\nset [sense the last costume v] to (costume [number v])\nswitch costume to (costume1 v)\nset [platforms id v] to [0]\ncreate clone of (_myself_ v)\nrepeat ((sense the last costume) - (1))\n    change [platforms id v] by (1)\n    create clone of (_myself_ v)\nend\nstop [this script v]\n\nwhen I start as a clone\nshow\nforever\n    move (platforms id)\nend\n\ndefine move (number or text)\nswitch costume to ((number or text) + (1))\ngo to x: ((scroll) + ((480) * (number or text))) y: (0)\nif <<(x position) < [-460]> or <[460] < (x position)>> then\n    hide\nelse\n    show\nend\n\n@Sprite1\n\n
welcome to my first tutorial see it and make a scrolling game\n\n\nWoW 3k+ views 100+ likes, coments and stars