Underwater || A Platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nforever\n    play sound [amazing v] until done\nend\n\nwhen I receive [gotta go v]\nswitch backdrop to (backdrop3 v)\n\n@Player\n\nwhen flag clicked\nshow\nset [xvel v] to [0]\nset [yvel v] to [0]\nswitch costume to (costume1 v)\ngo to x: (-196) y: (-61)\nforever\n    create clone of (_myself_ v)\n    Movement [13] [0.6]\n    Movement 2 [13] [-1]\n    Next Level\nend\n\nwhen I start as a clone\nswitch costume to (costume2 v)\nrepeat (10)\n    change size by (-5)\n    change [ghost v] effect by (9)\nend\ndelete this clone\n\ndefine Movement 2 (jump height) (fall speed)\nchange y by (yVel)\nif <touching (level v)?> then\n    repeat ([ceiling v] of ([abs v] of (yVel) ) )\n        if <touching (level v)?> then\n            change y by (((yVel) / ([abs v] of (yVel) )) * (-1))\n        end\n    end\n    if <<not <(yVel) > [0]>> and <<<key (w v) pressed?> or <key (up arrow v) pressed?>> or <<key (space v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>>> then\n        set [yvel v] to (jump height)\n    else\n        set [yvel v] to [0]\n    end\nelse\n    change [yvel v] by (fall speed)\nend\n\ndefine Next Level\nif <(x position) > [230]> then\n    go to x: (-196) y: (-61)\n    broadcast (animal abuse v)\nend\n\nwhen I receive [u died v]\ngo to x: (-196) y: (-61)\n\ndefine Movement (move speed) (detect)\nchange x by (xVel)\nif <touching (level v)?> then\n    repeat ([ceiling v] of ([abs v] of (xVel) ) )\n        if <touching (level v)?> then\n            change x by (((xVel) / ([abs v] of (xVel) )) * (-1))\n        end\n    end\n    set [xvel v] to [0]\nend\nif <<key (d v) pressed?> or <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>>> then\n    set [xvel v] to (move speed)\nelse\n    if <<key (a v) pressed?> or <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>>> then\n        set [xvel v] to ((move speed) * (-1))\n    end\nend\nset [xvel v] to ((xVel) * (detect))\n\nwhen I receive [gotta go v]\nhide\n\n@Level\n\nwhen flag clicked\nshow variable [time v]\nshow\nswitch backdrop to (fishy v)\nset [level v] to [1]\nswitch costume to (level 1 v)\n\nwhen I receive [animal abuse v]\nchange [level v] by (1)\nnext costume\nif <(costume [number v]) = [7]> then\n    switch backdrop to (backdrop2 v)\nend\nif <(costume [number v]) = [8]> then\n    broadcast (oooooooooooo v)\nend\n\nwhen I receive [gotta go v]\nhide\n\nwhen flag clicked\nshow variable [time v]\nset [time v] to [0]\nrepeat until <(costume [number v]) = [8]>\n    wait (1) seconds\n    change [time v] by (1)\nend\n\n@Random Pop Up\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (122) y: (189)\nhide\nforever\n    wait (pick random (10) to (20)) seconds\n    show\n    glide (1) secs to x: (122) y: (130)\n    play sound [Mouse Click - Sound Effect \(HD\) v] until done\n    wait (3) seconds\n    glide (1) secs to x: (122) y: (189)\n    hide\nend\n\nwhen I receive [gotta go v]\nhide\n\n@Text\n\nwhen flag clicked\nshow\ngo to x: (36) y: (28)\nswitch costume to (text 1 v)\n\nwhen I receive [animal abuse v]\nnext costume\nif <(Level) > [3]> then\n    hide\nend\n\nwhen I receive [gotta go v]\nhide\n\n@Spikes\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\nforever\n    if <touching (player v)?> then\n        broadcast (u died v)\n    end\nend\n\nwhen I receive [animal abuse v]\nnext costume\nif <<(Level) = [4]> and <(Level) > [4]>> then\n    hide\nend\n\nwhen I receive [gotta go v]\nhide\n\n@Lava\n\nwhen I receive [animal abuse v]\nnext costume\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\nforever\n    if <touching (player v)?> then\n        broadcast (u died v)\n    end\nend\n\nwhen I receive [gotta go v]\nhide\n\n@Thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\n\n
- Use WASD or arrow keys to move\n- Try to not go near the spikes or the lava\n\nPlease make this get on trending or please feature it! :D || If this gets on trending OR gets featured, I will make another one but with the SUN!\n\nTook many hours to make