Pre-historic (A Platformer)
@Stage\n\n@Dinosaur4\n\nwhen flag clicked\nset rotation style [left-right v]\nclear graphic effects\nswitch backdrop to (backdrop1 v)\nswitch costume to (costume1 v)\nset [deaths v] to [0]\ngo to x: (-218) y: (-1)\nset [x v] to [0]\nset [y v] to [0]\nforever\n    change [y v] by (-1)\n    if <key (right arrow v) pressed?> then\n        change [x v] by (2)\n        point in direction (90)\n    end\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-2)\n        point in direction (-90)\n    end\n    set [x v] to ((x) * (0.8))\n    change x by (x)\n    if <touching color (#000000)?> then\n        change y by (1)\n    end\n    if <touching color (#000000)?> then\n        change y by (1)\n    end\n    if <touching color (#000000)?> then\n        change y by (1)\n    end\n    if <touching color (#000000)?> then\n        change y by (1)\n    end\n    if <touching color (#000000)?> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <key (up arrow v) pressed?> then\n            set [y v] to [10]\n            if <([abs v] of (x) ) = (x)> then\n                set [x v] to [-10]\n            else\n                set [x v] to [10]\n            end\n        else\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) - ((y) * (2)))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<key (up arrow v) pressed?> and <touching color (#000000)?>> then\n        set [y v] to [13]\n    end\n    change y by (1)\n    if <touching color (#ff0000)?> then\n        go to x: (-212) y: (-5)\n        change [deaths v] by (1)\n    end\n    if <touching color (#a100ff)?> then\n        switch backdrop to (next backdrop v)\n        go to x: (-212) y: (-5)\n    end\nend\n\n@Sprite1\n\nwhen flag clicked\nhide\nshow variable [deaths v]\n\nhide variable [deaths v]\nshow\n\n
Hello! This was made for the "Pre-Historic" Design Studio!\n\nMade with 1 script and 2 sprites! Enjoy!\n\nNot many levels because I was lazy .-.