Blob--a Platformer
@Stage\n\n@blob\n\ndefine Platform (jump height) (gravity) (friction) (runing speed)\nswitch costume to (hitbox v)\nif <<key (d v) pressed?> or <key (right arrow v) pressed?>> then\n    change [x velocity v] by (runing speed)\n    point in direction (90)\nend\nif <<key (a v) pressed?> or <key (left arrow v) pressed?>> then\n    change [x velocity v] by ((runing speed) * (-1))\n    point in direction (-90)\nend\nset [x velocity v] to ((X Velocity) * (friction))\nchange x by (X Velocity)\nif <<touching (level v)?> or <touching (level2 v)?>> then\n    set [slope v] to [0]\n    repeat until <<(Slope) = [8]> or <not <touching (level v)?>>>\n        change [slope v] by (1)\n        change y by (1)\n    end\n    if <<touching (level v)?> or <touching (level2 v)?>> then\n        change y by ((Slope) * (-1))\n        repeat ([ceiling v] of ([abs v] of (X Velocity) ) )\n            if <<touching (level v)?> or <touching (level2 v)?>> then\n                change x by ((([abs v] of (X Velocity) ) / (X Velocity)) * (-1))\n            end\n        end\n        set [x velocity v] to [0]\n    end\nend\nchange y by (Y Velocity)\nif <touching (level v)?> then\n    repeat ([ceiling v] of ([abs v] of (Y Velocity) ) )\n        if <touching (level v)?> then\n            change y by ((([abs v] of (Y Velocity) ) / (Y Velocity)) * (-1))\n        end\n    end\n    if <<(([abs v] of (Y Velocity) ) / (Y Velocity)) = [-1]> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        set [y velocity v] to (jump height)\n    else\n        set [y velocity v] to [0]\n    end\nelse\n    change [y velocity v] by (-1)\nend\nchange y by (-2)\nif <touching color (#ff7b4c)?> then\n    go to x: (-181) y: (-96)\n    broadcast (next v)\n    play sound [Coin v] until done\nend\nif <touching color (#ce5124)?> then\n    go to x: (-181) y: (-96)\n    start sound [Alien Creak2 v]\nend\nchange y by (2)\nchange y by (2)\nif <touching color (#ff7b4c)?> then\n    go to x: (-181) y: (-96)\n    broadcast (next v)\n    play sound [Coin v] until done\nend\nif <touching color (#ce5124)?> then\n    go to x: (-181) y: (-96)\n    start sound [Alien Creak2 v]\nend\nchange y by (-2)\nchange x by (2)\nif <touching color (#ff7b4c)?> then\n    go to x: (-181) y: (-96)\n    broadcast (next v)\n    play sound [Coin v] until done\nend\nif <touching color (#ce5124)?> then\n    go to x: (-181) y: (-96)\n    start sound [Alien Creak2 v]\nend\nchange x by (-2)\nchange x by (-2)\nif <touching color (#ff7b4c)?> then\n    go to x: (-181) y: (-96)\n    broadcast (next v)\n    play sound [Coin v] until done\nend\nif <touching color (#ce5124)?> then\n    go to x: (-181) y: (-96)\n    start sound [Alien Creak2 v]\nend\nchange x by (2)\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\ngo to x: (-175) y: (-96)\nset [x velocity v] to [0]\nset [y velocity v] to [0]\npoint in direction (90)\nset [slope v] to [0]\nset [level v] to [1]\nforever\n    Platform [12] [-1] [0.7] [2]\nend\n\nwhen flag clicked\nforever\n    if <[230] < (x position)> then\n        go to x: (-175) y: (-96)\n        change [level v] by (1)\n        broadcast (next v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<touching (sprite1 v)?> or <touching (level2 v)?>> then\n        go to x: (-175) y: (-96)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<key (right arrow v) pressed?> or <key (left arrow v) pressed?>> then\n        wait (0.5) seconds\n        next costume\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <<key (right arrow v) pressed?> or <key (left arrow v) pressed?>>> then\n        switch costume to (costume2 v)\n    end\nend\n\n@Level\n\nwhen flag clicked\nforever\n    switch costume to (LEVEL)\nend\n\nbroadcast (next v)\nset [level v] to [9]\n\n@Sprite1\n\nwhen flag clicked\nforever\n    switch costume to (LEVEL)\nend\n\n@Level2\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [1]> then\n        show\n        go to x: (-60) y: (-35)\n        switch costume to (new piskel \(6\) v)\n        create clone of (_myself_ v)\n        go to x: (0) y: (0)\n        hide\n        switch costume to (new piskel \(6\)4 v)\n        stop [this script v]\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(costume [number v]) = [1]> then\n        repeat (5)\n            change x by (-3)\n        end\n        repeat (5)\n            change x by (3)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [1]> then\n        show\n        go to x: (70) y: (-117)\n        create clone of (_myself_ v)\n        go to x: (0) y: (0)\n        hide\n        switch costume to (new piskel \(6\)4 v)\n        stop [this script v]\n    end\nend\n\nwhen I start as a clone\nset [y vel v] to [0]\nforever\n    if <(costume [number v]) = [2]> then\n        Jump [15]\n    end\nend\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\ngo to x: (0) y: (200)\nset [slope v] to [0]\nset [xv v] to [0]\n\ndefine Jump (jump height)\nchange y by (y vel)\nif <touching (level v)?> then\n    repeat ([ceiling v] of ([abs v] of (y vel) ) )\n        if <touching (level v)?> then\n            change y by ((([abs v] of (y vel) ) / (y vel)) * (-1))\n        end\n    end\n    if <(([abs v] of (y vel) ) / (y vel)) = [-1]> then\n        set [y vel v] to (jump height)\n    else\n        set [y vel v] to [0]\n    end\nelse\n    change [y vel v] by (-1)\nend\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [2]> then\n        show\n        go to x: (-36) y: (-33)\n        switch costume to (new piskel \(6\) v)\n        create clone of (_myself_ v)\n        go to x: (0) y: (0)\n        hide\n        switch costume to (new piskel \(6\)4 v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [2]> then\n        show\n        go to x: (-59) y: (-119)\n        switch costume to (new piskel \(6\) v)\n        create clone of (_myself_ v)\n        go to x: (0) y: (0)\n        hide\n        switch costume to (new piskel \(6\)4 v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [2]> then\n        show\n        go to x: (59) y: (-91)\n        switch costume to (new piskel \(6\)4 v)\n        create clone of (_myself_ v)\n        go to x: (0) y: (0)\n        hide\n        switch costume to (new piskel \(6\)4 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [next v]\ndelete this clone\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [3]> then\n        show\n        go to x: (-71) y: (-74)\n        switch costume to (new piskel \(6\) v)\n        create clone of (_myself_ v)\n        go to x: (0) y: (0)\n        hide\n        switch costume to (new piskel \(6\)4 v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [4]> then\n        show\n        go to x: (-154) y: (22)\n        switch costume to (new piskel \(6\)4 v)\n        create clone of (_myself_ v)\n        go to x: (0) y: (0)\n        hide\n        switch costume to (new piskel \(6\)4 v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [4]> then\n        show\n        go to x: (-52) y: (-40)\n        switch costume to (new piskel \(6\) v)\n        create clone of (_myself_ v)\n        go to x: (0) y: (0)\n        hide\n        switch costume to (new piskel \(6\)4 v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [5]> then\n        show\n        go to x: (-89) y: (-108)\n        switch costume to (new piskel \(6\) v)\n        create clone of (_myself_ v)\n        go to x: (0) y: (0)\n        hide\n        switch costume to (new piskel \(6\)4 v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [5]> then\n        show\n        go to x: (62) y: (-19)\n        switch costume to (new piskel \(6\)4 v)\n        create clone of (_myself_ v)\n        go to x: (0) y: (0)\n        hide\n        switch costume to (new piskel \(6\)4 v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [6]> then\n        show\n        go to x: (16) y: (-67)\n        switch costume to (new piskel \(6\)4 v)\n        create clone of (_myself_ v)\n        go to x: (0) y: (0)\n        hide\n        switch costume to (new piskel \(6\)4 v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [6]> then\n        show\n        go to x: (152) y: (-59)\n        switch costume to (new piskel \(6\) v)\n        create clone of (_myself_ v)\n        go to x: (0) y: (0)\n        hide\n        switch costume to (new piskel \(6\)4 v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [7]> then\n        show\n        go to x: (152) y: (-59)\n        switch costume to (new piskel \(6\) v)\n        create clone of (_myself_ v)\n        go to x: (0) y: (0)\n        hide\n        switch costume to (new piskel \(6\)4 v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [8]> then\n        show\n        go to x: (170) y: (23)\n        switch costume to (new piskel \(6\)4 v)\n        create clone of (_myself_ v)\n        go to x: (0) y: (0)\n        hide\n        switch costume to (new piskel \(6\)4 v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [8]> then\n        show\n        go to x: (-55) y: (-99)\n        switch costume to (new piskel \(6\) v)\n        create clone of (_myself_ v)\n        go to x: (0) y: (0)\n        hide\n        switch costume to (new piskel \(6\)4 v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [7]> then\n        show\n        go to x: (-88) y: (-65)\n        switch costume to (new piskel \(6\) v)\n        create clone of (_myself_ v)\n        go to x: (0) y: (0)\n        hide\n        switch costume to (new piskel \(6\)4 v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [9]> then\n        show\n        go to x: (14) y: (-66)\n        switch costume to (new piskel \(6\) v)\n        create clone of (_myself_ v)\n        go to x: (0) y: (0)\n        hide\n        switch costume to (new piskel \(6\)4 v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [9]> then\n        show\n        go to x: (124) y: (-34)\n        switch costume to (new piskel \(6\)4 v)\n        create clone of (_myself_ v)\n        go to x: (0) y: (0)\n        hide\n        switch costume to (new piskel \(6\)4 v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [10]> then\n        show\n        go to x: (-72) y: (-39)\n        switch costume to (new piskel \(6\)4 v)\n        create clone of (_myself_ v)\n        go to x: (0) y: (0)\n        hide\n        switch costume to (new piskel \(6\)4 v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [10]> then\n        show\n        go to x: (28) y: (-34)\n        switch costume to (new piskel \(6\) v)\n        create clone of (_myself_ v)\n        go to x: (0) y: (0)\n        hide\n        switch costume to (new piskel \(6\)4 v)\n        stop [this script v]\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\nhide\n\n@Sprite3\n\nwhen flag clicked\nhide\n\nwhen I receive [next v]\nshow\nset [ghost v] effect to (0)\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\n@Sprite4\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    wait (pick random (1) to (5)) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\ngo to x: (340) y: (pick random (125) to (58))\nrepeat until <(x position) < [-240]>\n    change x by (-5)\nend\ndelete this clone\n\n
---Blob---\nUse arrow keys to move\nAvoid spikes and weird creatures :P\n\nHelp blob venture through a land filled with evil creatures. Uhh. yeah. just complete the levels...\n\n...then following is your only concern XD\n\nCredits\n-Its actually all by me :)\n-@CheriseW will be curating this on the 16th!