The Ocean- A Platformer 

Instructions: This is the second platformer I've shared! It's called The Ocean-A Platformer. It's Part 2 to The Rainforest-A Platformer, this link:\nhttps://scratch.mit.edu/projects/513726299/ \nYou have now journeyed to the ocean. You know you should continue your journey, but cubes can't swim (as far as I know) and even if they could float, they would get swallowed by a shark in no time. So you use the remains of a wrecked ship as platformers. The pieces of wood contain splinters (the brown spikes) so be careful! And who said there would be no sharks in the ocean? Avoid only their teeth, but you can touch the gray part.  And, well, have fun trying to survive!\nNOT MOBILE FRIENDLY (sorry.)\nAnd even if a level seems impossible, IT IS POSSIBLE. Just TRY! Did I mention I went through all the levels at least five times while I was making the game? And that I played this game three times after I MADE it?\nBtw, in one level there's a glitch with the shark that I can't fix.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n:)

@Stage\n\nwhen flag clicked\nforever\n    play sound [Tropical Music - Caribbean Dream v] until done\nend\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\n@player\n\nwhen backdrop switches to [game v]\nshow\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\nwhen backdrop switches to [game v]\ngo to [front v] layer\ngo to x: (-228) y: (-124)\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 (platformers v)?> then\n        change y by (1)\n    end\n    if <touching (platformers v)?> then\n        change y by (1)\n    end\n    if <touching (platformers v)?> then\n        change y by (1)\n    end\n    if <touching (platformers v)?> then\n        change y by (1)\n    end\n    if <touching (platformers 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 (platformers 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 (platformers 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) = [242]> then\n        broadcast (next v)\n        change [levels v] by (1)\n    end\n    if <[] = [1]> then\n        go to x: (-228) y: (-124)\n    end\n    if <touching (spikes v)?> then\n        broadcast (die v)\n    end\n    if <touching (water pits:o v)?> then\n        broadcast (die v)\n    end\n    if <touching color (#fff600)?> then\n        broadcast (die v)\n    end\n    if <touching color (#ffffff)?> then\n        broadcast (die v)\n    end\n    if <touching color (#ff0000)?> then\n        broadcast (snake red v)\n    end\nend\n\nwhen I receive [next v]\ngo to x: (-228) y: (-124)\nchange [level now v] by (1)\n\nwhen flag clicked\nhide variable [levels v]\n\nwhen I receive [die v]\ngo to x: (-228) y: (-124)\n\nwhen backdrop switches to [game v]\nset [level now v] to [1]\nhide variable [level now v]\n\nwhen backdrop switches to [backdrop1 v]\nset [level now v] to [0]\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\n@Platformers\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to x: (2) y: (-88)\n\nwhen I receive [next v]\nnext costume\n\nwhen backdrop switches to [game v]\nshow\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\n@spikes\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [game v]\nswitch costume to (costume1 v)\nshow\n\nwhen I receive [next v]\nnext costume\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\n@water pits:O\n\nwhen flag clicked\nhide\ngo to [front v] layer\n\nwhen backdrop switches to [game v]\nshow\nforever\n    wait (0.7) seconds\n    next costume\nend\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\n@Shark\n\nwhen backdrop switches to [game v]\nshow\ngo to x: (31) y: (-133)\nforever\n    go [backward v] (1) layers\n    if <<(level NOW) = [1]> or <<(level NOW) = [3]> or >> then\n        show\n    else\n        go to x: (-133) y: (-204)\n        hide\n    end\nend\n\nwhen backdrop switches to [game v]\nforever\n    if <(level NOW) = [1]> then\n        show\n        go to x: (-75) y: (-272)\n        repeat (25)\n            change y by (-3)\n        end\n        wait (2) seconds\n        repeat (5)\n            change y by (15)\n        end\n    end\n    if <(level NOW) = [3]> then\n        show\n        go to x: (54) y: (-289)\n        repeat (25)\n            change y by (-3)\n        end\n        wait (2) seconds\n        repeat (5)\n            change y by (15)\n        end\n    end\n    if <(level NOW) = [6]> then\n        show\n        go to x: (-188) y: (-286)\n        repeat (25)\n            change y by (-3)\n        end\n        wait (2) seconds\n        repeat (5)\n            change y by (15)\n        end\n    end\n    if <(level NOW) = [8]> then\n        show\n        go to x: (-106) y: (-279)\n        repeat (25)\n            change y by (-3)\n        end\n        wait (2) seconds\n        repeat (5)\n            change y by (15)\n        end\n    end\n    if <(level NOW) = [11]> then\n        show\n        go to x: (0) y: (-279)\n        repeat (25)\n            change y by (-3)\n        end\n        wait (2) seconds\n        repeat (5)\n            change y by (15)\n        end\n    end\nend\n\nwhen backdrop switches to [backdrop1 v]\ngo [backward v] (1) layers\nswitch costume to (costume3 v)\nhide\n\n@Sprite1\n\nwhen backdrop switches to [backdrop1 v]\nshow\n\nwhen this sprite clicked\nswitch backdrop to (game v)\nhide\n\n@thumb\n\nwhen flag clicked\nhide\n\n