Block ~ A Platformer
@Stage\n\nwhen flag clicked\nforever\n    play sound [Sometime v] until done\nend\n\n@Block\n\nwhen flag clicked\nhide\ngo to x: (-178) y: (-65)\nswitch costume to (dinosaur4-a v)\n\nwhen [space v] key pressed\nswitch costume to (dinosaur4-c v)\nwait (.1) seconds\nswitch costume to (dinosaur4-d v)\nwait (.1) seconds\nswitch costume to (dinosaur4-a v)\n\nwhen backdrop switches to [backdrop1 v]\nshow\nforever\n    change [y v] by (-0.5)\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [x v] by (-1)\n    end\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [x v] by (1)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching color (#000000)?> then\n        change y by (0.5)\n        if <<key (up arrow v) pressed?> or <<mouse down?> and <((mouse y) - (y position)) > [50]>>> then\n            set [y v] to [10]\n            if <(x) > [0]> then\n                set [x v] to [-10]\n            else\n                set [x v] to [10]\n            end\n        else\n            change x by ((x) * (-1))\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <touching color (#000000)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-0.5)\n    if <<<touching color (#000000)?> and <key (up arrow v) pressed?>> or <<mouse down?> and <((mouse y) - (y position)) > [50]>>> then\n        set [y v] to [10]\n    end\n    change y by (0.5)\nend\n\nwhen flag clicked\nswitch backdrop to (backdrop2 v)\n\nwhen flag clicked\nforever\n    if <touching color (#8dff4a)?> then\n        next backdrop\n        go to x: (-178) y: (-65)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ff6464)?> then\n        go to x: (-178) y: (-65)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ff80ec)?> then\n        set [y v] to [15]\n    end\nend\n\nwhen backdrop switches to [backdrop12 v]\nhide\n\nwhen backdrop switches to [backdrop10 v]\ngo to x: (-178) y: (114)\n\n@AY\n\nwhen flag clicked\npoint in direction (90)\nshow\ngo to [front v] layer\nshow\nrepeat (144)\n    turn right (5) degrees\nend\nwait (1) seconds\nnext backdrop\nhide\n\nwhen flag clicked\ngo to x: (-15) y: (-13)\n\n@Sprite1\n\nwhen flag clicked\nhide\ngo to x: (89) y: (-19)\n\nwhen backdrop switches to [backdrop3 v]\nshow\n\nwhen this sprite clicked\nnext backdrop\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\n
- Arrow Keys to move.