Cave : A platformer  #Games #Art #cave #contest #platformer 
@Stage\n\nwhen flag clicked\nforever\n    play sound [Vexento - We Are One v] until done\nend\n\n@Player\n\nwhen flag clicked\nset [xvel v] to [0]\nset [yvel v] to [0]\nset [level v] to [1]\ngo to x: (-180) y: (-50)\nforever\n    Run physics\nend\n\ndefine Run physics\nchange [yvel v] by (-1)\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n    change [xvel v] by (0.9)\nend\nif <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(x position) > (mouse x)>>> then\n    change [xvel v] by (-0.9)\nend\nset [xvel v] to ((Xvel) * (0.9))\nchange x by (Xvel)\nif <touching (ground v)?> then\n    change y by (1)\nend\nif <touching (ground v)?> then\n    change y by (1)\nend\nif <touching (ground v)?> then\n    change y by (1)\nend\nif <touching (ground v)?> then\n    change y by (1)\nend\nif <touching (ground v)?> then\n    change y by (-4)\n    change x by ((Xvel) * (-1))\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n        set [yvel v] to [13]\n        if <[0] < (Xvel)> then\n            set [xvel v] to [-7]\n        else\n            set [xvel v] to [7]\n        end\n    else\n        set [xvel v] to [0]\n    end\nend\nchange y by (Yvel)\nif <touching (ground v)?> then\n    change y by ((Yvel) * (-1))\n    set [yvel v] to [0]\nend\nchange y by (-1)\nif <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n    if <touching (ground v)?> then\n        set [yvel v] to [15]\n    end\nend\nchange y by (1)\n\nwhen I receive [ded v]\ngo to x: (-180) y: (-50)\nset [ghost v] effect to (0)\n\nwhen I start as a clone\nrepeat (10)\n    change size by (-5)\n    change [ghost v] effect by (5)\nend\ndelete this clone\n\nwhen I receive [next level v]\ngo to x: (-180) y: (-50)\n\nwhen flag clicked\nrepeat until <(Level) = [22]>\n    if <[220] < (x position)> then\n        broadcast (Next level v) and wait\n        wait until <not <[220] < (x position)>>\n    end\n    if <<touching (lava v)?> or <<(y position) < [-170]> or <touching (spikes v)?>>> then\n        broadcast (Ded v) and wait\n    end\n    if <touching (bouncy v)?> then\n        set [yvel v] to [20]\n    end\nend\n\nwhen flag clicked\nforever\n    if <<touching color (#4c86ff)?> or <touching color (#437de0)?>> then\n        if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(x position) > (mouse x)>>> then\n            change [xvel v] by (-1.3)\n        end\n        if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n            change [xvel v] by (1.3)\n        end\n        if <<<key (down arrow v) pressed?> or <key (s v) pressed?>> or <<mouse down?> and <(y position) > (mouse y)>>> then\n            change [yvel v] by (-1.3)\n        end\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            change [yvel v] by (1.3)\n        end\n        set [xvel v] to ((Xvel) * (0.81))\n        set [yvel v] to ((Yvel) * (0.81))\n        change [yvel v] by (((Yvel) / (14.9)) + (0.1))\n    end\nend\n\nwhen I receive [respawn v]\ngo to x: (-180) y: (-50)\nset [ghost v] effect to (0)\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go [backward v] (1) layers\nend\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [21]> then\n        broadcast (End v) and wait\n    end\nend\n\nwhen flag clicked\nforever\n    if <[220] < (x position)> then\n        play sound [Ding Sound Effect v] until done\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (bouncy v)?> then\n        play sound [Mario_Jump_-_Gaming_Sound_Effect v] until done\n    end\nend\n\nwhen flag clicked\nforever\n    if <<touching (lava v)?> or <<(y position) < [-170]> or <touching (spikes v)?>>> then\n        play sound [Roblox Death Sound  OOF Sound Effect v] until done\n    end\nend\n\n@Ground\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to [front v] layer\ngo [backward v] (7) layers\nforever\n    set [level v] to (costume [number v])\nend\n\nwhen I receive [next level v]\nnext costume\n\n@Spikes\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to [front v] layer\ngo [backward v] (10) layers\n\nwhen I receive [next level v]\nnext costume\n\n@Lava\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to [front v] layer\ngo [backward v] (10) layers\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\ngo to x: (0) y: (0)\nrepeat until <(Level) = [30]>\n    repeat (20)\n        change y by (0.5)\n    end\n    repeat (20)\n        change y by (-0.5)\n    end\nend\n\nbroadcast (Next level v) and wait\n\n@skip\n\nwhen flag clicked\ngo to x: (180) y: (-160)\nset [canweskipornotscratchperson v] to [yes]\n\nwhen this sprite clicked\nif <[yes] = (Canweskipornotscratchperson)> then\n    broadcast (Next level v) and wait\nend\n\nwhen flag clicked\nset [canweskipornotscratchperson v] to [yes]\nswitch costume to (1 v)\npoint in direction (90)\nset size to (20) %\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((80) - (size)) / (5))\n        set [brightness v] effect to (10)\n    else\n        change size by (((65) - (size)) / (5))\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen flag clicked\nset [canweskipornotscratchperson v] to [yes]\nforever\n    go to [front v] layer\n    go [backward v] (3) layers\nend\n\nwhen I receive [next level v]\nbroadcast (respawn v)\n\nwhen I receive [end v]\nset [canweskipornotscratchperson v] to [no]\n\nwhen I receive [green flag v]\nset [canweskipornotscratchperson v] to [yes]\n\n@restart\n\nwhen this sprite clicked\nbroadcast (respawn v)\n\nwhen flag clicked\nswitch costume to (1 v)\npoint in direction (90)\nset size to (20) %\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((80) - (size)) / (5))\n        set [brightness v] effect to (10)\n    else\n        change size by (((65) - (size)) / (5))\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go [backward v] (3) layers\n    show\nend\n\n@Sound\n\nwhen this sprite clicked\nif <(Munsic on) = [0]> then\n    broadcast (Munsic v)\n    switch costume to (1 v)\nelse\n    set [munsic on v] to [0]\n    repeat (5)\n        change size by (1)\n    end\n    switch costume to (2 v)\nend\n\nwhen I receive [munsic v]\nset [munsic on v] to [1]\n\nwhen flag clicked\nswitch costume to (1 v)\npoint in direction (90)\nset size to (20) %\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((80) - (size)) / (5))\n        set [brightness v] effect to (10)\n    else\n        change size by (((65) - (size)) / (5))\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Munsic on) = [0]> then\n        set volume to (0) %\n    else\n        set volume to (50) %\n    end\nend\n\nwhen flag clicked\nforever\n    play sound [Vexento - We Are One v] until done\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go [backward v] (3) layers\nend\n\n@Bouncy\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to [front v] layer\ngo [backward v] (10) layers\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\ngo to x: (0) y: (0)\n\n@Love fave\n\nwhen flag clicked\nset [costume v] to [0]\nhide\nforever\n    wait (pick random (30) to (40)) seconds\n    switch costume to (costume1 v)\n    go to x: (0) y: (50)\n    show\n    go to [front v] layer\n    go [backward v] (1) layers\n    start sound [pop v]\n    repeat (9)\n        change y by (-6)\n    end\n    repeat (5)\n        change y by (3)\n    end\n    repeat (5)\n        change y by (-1)\n    end\n    wait (2) seconds\n    repeat (15)\n        change y by (7)\n    end\n    hide\n    if <(Costume) > [0]> then\n        hide\n        stop [this script v]\n    end\nend\n\n@Thumb\n\nwhen flag clicked\ngo to [front v] layer\nset [ghost v] effect to (100)\n\n@Water\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to [front v] layer\ngo [backward v] (15) layers\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\ngo to x: (0) y: (0)\nrepeat until <(Level) = [30]>\n    repeat (20)\n        change y by (0.5)\n    end\n    repeat (20)\n        change y by (-0.5)\n    end\nend\n\n@dead\n\nwhen I receive [ded v]\nset [ghost v] effect to (100)\ngo to [front v] layer\ngo [backward v] (1) layers\nshow\nrepeat (5)\n    change [ghost v] effect by (-10)\nend\nchange [deaths v] by (1)\nrepeat (5)\n    change [ghost v] effect by (10)\nend\nhide\nclear graphic effects\nstop [this script v]\n\nwhen flag clicked\nset [deaths v] to [0]\nhide\nstop [this script v]\n\n@Reccomendation\n\nwhen flag clicked\nhide\n\nwhen I receive [next level v]\nif  then\n    delete this clone\nend\nrepeat (14)\n    move (0) steps\nend\nif <(Level) = [21]> then\n    hide\n    switch costume to (heart v)\n    go to x: (0) y: (0)\n    create clone of (_myself_ v)\n    switch costume to (star v)\n    go to x: (132) y: (0)\n    create clone of (_myself_ v)\nelse\n    hide\nend\n\nwhen I receive [ded v]\nif  then\n    delete this clone\nend\nif <(Level) = [21]> then\n    hide\n    switch costume to (heart v)\n    go to x: (0) y: (0)\n    create clone of (_myself_ v)\n    switch costume to (star v)\n    go to x: (132) y: (0)\n    create clone of (_myself_ v)\nelse\n    hide\n    delete this clone\nend\n\nwhen I start as a clone\nshow\nset [ghost v] effect to (0)\nforever\n    change y by ([sin v] of (((timer) * (20)) * (10)) )\n    if <touching (player v)?> then\n        start sound [sfx2 v]\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        delete this clone\n    end\nend\n\nwhen I receive [respawn v]\nif  then\n    delete this clone\nend\nif <(Level) = [21]> then\n    hide\n    switch costume to (heart v)\n    go to x: (0) y: (0)\n    create clone of (_myself_ v)\n    switch costume to (star v)\n    go to x: (132) y: (0)\n    create clone of (_myself_ v)\nelse\n    hide\n    delete this clone\nend\n\n@Untitled drawing\n\nwhen I receive [end v]\nshow\n\nwhen flag clicked\nhide\n\n
WASD or arrow keys to move\nWatch out for spikes and lava\nLight blue is jump pad, you can jump on it\nRegular blue is water, you can swim in it\n\nHoly cow 1k views???\nIM FLIPPIN CRAZY PEOPLE IM JUMPING AROUND HTE HOUSE AND HOOTING LIKE A MONKEY I GOT 1000 VIEWS ON ONE OF MY PROJECTS POG POGPOG SFJDIJSDFI JSDIFO DSJFIO SIJO WEIJOP WOMG OMGOMGONG NO WAY SD FIJSD FJIOSD FIOS:DF\nSFDSDJFIO SDFJIO:S DFS FIEOW OMG NO WAY I GOT 1k VIEWS ON ON OF MY PROJECTS WFEIJFSDIO DFIO SDJFIOSD FJIO:SDF JIO:DF\n\noh yes please feature this