Lava Land ! A platformer game #Games #All #Art #Music #Totorials #Stories #Animations #All #Games
@Stage\n\n@Spikes\n\nwhen flag clicked\nshow variable [timer v]\nshow variable [☁ world record v]\nforever\n    switch costume to (The Level)\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nforever\n    play sound [castlemusic v] until done\nend\n\nset [☁ world record v] to [38.9]\n\nwhen flag clicked\nchange [☁ viewers v] by (1)\n\nset [☁ viewers v] to [49028]\n\n@Player Trail\n\nwhen flag clicked\nshow\nforever\n    point in direction ([direction v] of [player v])\n    switch costume to ([costume name v] of [player v])\n    go to x: ([x position v] of [player v]) y: ([y position v] of [player v])\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\nrepeat (10)\n    change [ghost v] effect by (21)\nend\ndelete this clone\n\nwhen I receive [scroll v]\nhide\ndelete this clone\n\n@Ground\n\nwhen flag clicked\nforever\n    switch costume to (The Level)\nend\n\nwhen flag clicked\nset [timer v] to [0]\nset [the level v] to [1]\nrepeat until <(The Level) = [10]>\n    set [timer v] to (timer)\nend\n\nwhen flag clicked\nset [the level v] to [1]\nforever\n    if <<(☁ World Record) > (Timer)> and <(The Level) = [10]>> then\n        set [☁ world record v] to (Timer)\n    end\nend\n\n@Player\n\nwhen flag clicked\nset [the level v] to [1]\nbroadcast (Next Level v)\nforever\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [x velocity v] by (-1.5)\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [x velocity v] by (1.5)\n    end\n    set [x velocity v] to ((X Velocity) * (0.85))\n    change x by (X Velocity)\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (-4)\n        change x by ((X Velocity) * (-1))\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            if <(X Velocity) > [0]> then\n                set [x velocity v] to [-10]\n            else\n                set [x velocity v] to [10]\n            end\n            set [y velocity v] to [15]\n        else\n            set [x velocity v] to [0]\n        end\n    end\n    change [y velocity v] by (-1)\n    change y by (Y Velocity)\n    if <touching (ground v)?> then\n        change y by ((Y Velocity) - ((Y Velocity) * (2)))\n        set [y velocity v] to [0]\n    end\n    change y by (-1)\n    if <<touching (ground v)?> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        set [y velocity v] to [15]\n    end\n    change y by (1)\n    if <(x position) > [239]> then\n        broadcast (Next Level v) and wait\n        change [the level v] by (1)\n    end\n    if <touching (spikes v)?> then\n        broadcast (Reset v)\n        create clone of (_myself_ v)\n    else\n        if <touching (lava v)?> then\n            broadcast (Reset v)\n        end\n    end\nend\n\nwhen I start as a clone\nclear graphic effects\nrepeat (10)\n    change [ghost v] effect by (10)\n    change y by (5)\n    turn right (5) degrees\nend\ndelete this clone\n\nwhen I receive [next level v]\nbroadcast (Reset v)\n\nwhen I receive [reset v]\nset [x velocity v] to [0]\nset [y velocity v] to [0]\ngo to x: (-216) y: (40)\n\nwhen flag clicked\nforever\n    if <touching (spikes v)?> then\n        change [number of deaths v] by (1)\n    end\nend\n\nwhen flag clicked\nset [number of deaths v] to [0]\n\n@Screen Shot 2021-06-20 at 7\n\nwhen flag clicked\nhide\n\nshow\ngo to [front v] layer\n\n
Arrow keys or WASD\n\npleeeeeeeeeeeeeease heart and star!\n\nLove and Fave Detector: https://scratch.mit.edu/projects/553121001/ 