Dinosaur Game || A Platformer
@Stage\n\nwhen flag clicked\nforever\n    play sound [Your Soul v] until done\nend\n\n@Player\n\ndefine Tick\nset [mobile being used? v] to <<mouse down?> and <<(mouse x) < (x position)> or <<(mouse x) > (x position)> or <(mouse y) > (y position)>>>>\nif <<touching (cacti v)?> or <touching (lava v)?>> then\n    change [deaths v] by (1)\nend\nif <key (r v) pressed?> then\n    go to x: (-224) y: (-111)\nend\nif <key (o v) pressed?> then\n    change [skips v] by (1)\n    change [level v] by (1)\n    wait (0.000000000000000000001) seconds\n    broadcast (Next Level v)\nend\nif <touching (trampoline v)?> then\n    set [yv v] to [21]\nend\nif <touching (lava v)?> then\n    go to x: (-224) y: (-111)\nend\nif <touching (cacti v)?> then\n    go to x: (-224) y: (-111)\nend\nif <<(x position) > [220]> or <(x position) = [220]>> then\n    change [level v] by (1)\n    broadcast (Next Level v)\nend\nif <not <<(mobile being used?) = [true]> or <<key (right arrow v) pressed?> or <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <key (d v) pressed?>>>>>> then\n    switch costume to (normal v)\nend\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n    switch costume to (normal v)\n    change [xv v] by (1)\nend\nif <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n    switch costume to (left v)\n    change [xv v] by (-1)\nend\nset [xv v] to ((XV) * (0.9))\nchange x by (XV)\nif <touching (level v)?> then\n    change y by (1)\n    if <touching (level v)?> then\n        change y by (1)\n        if <touching (level v)?> then\n            change y by (1)\n            if <touching (level v)?> then\n                change y by (1)\n            end\n        end\n    end\nend\nif <touching (level v)?> then\n    change x by ((XV) * (-1))\n    change y by (-4)\n    if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n        if <(XV) > [0]> then\n            set [xv v] to [-5]\n        else\n            set [xv v] to [5]\n        end\n        set [yv v] to [15]\n    else\n        set [yv v] to [0]\n    end\nend\nchange [yv v] by (-1)\nchange y by (YV)\nif <touching (level v)?> then\n    change y by ((YV) * (-1))\n    set [yv v] to [0]\nend\nchange y by (-1)\nif <touching (level v)?> then\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n        set [yv v] to [15]\n    end\nend\nchange y by (1)\n\nwhen I receive [game on v]\nswitch backdrop to (blue sky v)\nswitch costume to (normal v)\nshow\ngo to x: (-224) y: (-110)\nset size to (20) %\nset [skips v] to [0]\nset [deaths v] to [0]\nset [level v] to [1]\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    Tick\nend\n\nwhen I receive [next level v]\ngo to x: (-224) y: (-110)\n\nforever\n    \n        set [yv v] to [15]\n    end\nend\n\nwhen flag clicked\nbroadcast (Game On v)\n\n@Level\n\nwhen I receive [game on v]\nshow\nswitch costume to (1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@Cacti\n\nwhen flag clicked\nshow\nswitch costume to ( v)\n\nwhen I receive [next level v]\nnext costume\nforever\n    go to [back v] layer\nend\n\n@TB\n\nwhen flag clicked\nhide\n\ngo to [front v] layer\n\n
Around #61 in trending all!\n❖Dinosaur Game || A Platformer❖\nby @ProgramGameAnimetor\n»Story:\nYou are a dinosaur from the dinosaur game:the no-internet game. You are tired of being used for such desperate situations and is determined to prove yourself, in the dinosaur obstacle course. Your journey starts...now!\n❖Instructions❖\n»Left Arrow/A---------------Move Left\n»Right Arrow/D------------Move Right\n»Up Arrow/W---------------Jump\n»O to skip\n»R to reset\nMobile controls are available.\nInspiration: https://scratch.mit.edu/projects/628699191/