Caverns 6 [Platformer] #platformer #Platformer #games #Games

Instructions: [] Introduction []\nThe final cavern, the end of all the caverns, you're finally here!\n\n[] About []\nI wanted to finish this saga of with a BANG! And when I saw that @holybird3  was holding a 500+ Follower game contest, I thought, well it would be cool if I finished Caverns, so here is the final episode. Like and Fave and comment "The Final Episode!" if you want me to create another series like this! #45 On trending for games!\n\n[] Movement []\nWASD, Arrow Keys\n\n[] Credits []\nAlan Walker for game music \nIntro Music is Windfall \n@--AwesomeCode-- for the engine\n@CJ-107668 for the rest\n\n[] Includes []\n- Wall Jumping \n- Spikes \n- Lava\n- Leaps of faith\n- Intro\n\n[] My accounts []\n@CJ-107686\n@CJ-Test\n\n[] My studio []\nAsk if you want to join!\nhttps://scratch.mit.edu/studios/30378181\n\n[] Tags []\n#platformer #Platformer #holybird3 #cj-107668 #CJ-107668 #games #Games #all #trending #platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer#platformer

@Stage\n\n@Player\n\nwhen I receive [intro is over v]\nshow\n\nwhen I receive [intro v]\nhide\n\nwhen I receive [next level v]\nbroadcast (Reset v)\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        if <<key (down arrow v) pressed?> or <key (s v) pressed?>> then\n            switch costume to (crouch v)\n        else\n            switch costume to (player v)\n        end\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 <<key (down arrow v) pressed?> or <key (s v) pressed?>> then\n            switch costume to (crouch v)\n        else\n            switch costume to (player v)\n        end\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 [reset v]\nset [x velocity v] to [0]\nset [y velocity v] to [0]\ngo to x: (-216) y: (40)\n\n@Ground\n\nwhen I receive [intro is over v]\nshow\n\nwhen I receive [intro v]\nhide\n\nwhen I receive [intro is over v]\nshow\n\nwhen flag clicked\nforever\n    switch costume to (The Level)\nend\n\n@Lava\n\nwhen I receive [intro is over v]\nshow\n\nwhen I receive [intro v]\nhide\n\nwhen flag clicked\nforever\n    set y to (Magma)\n    switch costume to (The Level)\nend\n\nwhen flag clicked\nforever\n    set [magma v] to [0]\n    repeat (10)\n        change [magma v] by (1)\n    end\n    repeat (20)\n        change [magma v] by (-1)\n    end\n    repeat (10)\n        change [magma v] by (1)\n    end\nend\n\n@Player Trail\n\nwhen I receive [intro is over v]\nshow\n\nwhen I receive [intro v]\nhide\n\nwhen flag clicked\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\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@Spikes\n\nwhen I receive [intro is over v]\nshow\n\nwhen I receive [intro v]\nhide\n\nwhen flag clicked\nforever\n    switch costume to (The Level)\nend\n\n@Intro\n\nwhen I receive [getting smaller v]\nrepeat (100)\n    change size by (-2)\nend\n\nwhen I receive [getting bigger v]\nrepeat (100)\n    change size by (2)\nend\n\nwhen I receive [spin v]\nrepeat (10)\n    turn right (36) degrees\nend\n\nwhen flag clicked\nbroadcast (Intro v)\nstart sound [Windfall v]\nswitch costume to (white v)\ngo to x: (0) y: (0)\npoint in direction (90)\nset size to (100) %\nset volume to (100) %\nswitch backdrop to (intro white v)\nshow\nwait (1.7) seconds\nbroadcast (Spin v)\nrepeat (10)\n    change size by (15)\nend\nrepeat (1)\n    switch costume to (white v)\n    switch backdrop to (intro white v)\n    repeat (10)\n        move (-1) steps\n    end\n    broadcast (Getting Smaller v)\n    repeat (10)\n        move (30) steps\n    end\n    switch costume to (black v)\n    switch backdrop to (intro black v)\n    broadcast (Getting Bigger v)\n    repeat (10)\n        move (1) steps\n    end\n    repeat (10)\n        move (-30) steps\n    end\n    repeat (10)\n        move (1) steps\n    end\n    repeat (10)\n        move (-30) steps\n    end\n    switch costume to (white v)\n    switch backdrop to (intro white v)\n    broadcast (Getting Smaller v)\n    repeat (10)\n        move (-1) steps\n    end\n    repeat (10)\n        move (30) steps\n    end\nend\nbroadcast (Spin v)\nrepeat (100)\n    change size by (-2)\nend\nhide\nrepeat (50)\n    change volume by (-2)\nend\nbroadcast (Intro is over v)\nswitch backdrop to (caverns grey v)\n\n@Thumbnail\n\nwhen flag clicked\nforever\n    show\n    set [ghost v] effect to (100)\n    go to [front v] layer\nend\n\nwhen I receive [intro is over v]\nforever\n    play sound [\[MP3DOWNLOAD v] until done\nend\n\n