Journey. 1.2 #games #platformer

Instructions: Hooray1!!!!!!111!!! An update! Now you can die in the game. wonderful.\n\nPlease tell me if there are any glitches or bugs, and I WILL fix them!

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\ndefine Say (text) Time Waiting (*) Time Between Letter (**)\ndelete all of [text said v]\ndelete all of [text v]\nset [d v] to [1]\nrepeat (length of (text))\n    add (letter (d) of (text)) to [text v]\n    change [d v] by (1)\nend\nset [e v] to [1]\nset [text v] to []\nset [text2 v] to []\nset [d v] to [1]\nrepeat (length of (Text))\n    set [text v] to (join (text2) (item (e) of [text v]))\n    set [text2 v] to (text)\n    change [e v] by (1)\n    say (text)\n    wait (**) seconds\nend\nwait (*) seconds\nsay []\n\n@The bog.\n\nwhen flag clicked\nshow\nset size to (50) %\ngo to x: (-209) y: (3)\nset rotation style [left-right v]\nset [x velocity v] to [0]\nset [y velocity. v] to [0]\nforever\n    switch costume to (hitbox v)\n    Up n' down [12] [-1]\n    Left n' right [10] [0.6]\n    switch costume to ( v)\nend\n\ndefine Up n' down (jump hight) (fall speed)\nchange y by (Y velocity.)\nif <touching (ground. v)?> then\n    repeat ([ceiling v] of ([abs v] of (Y velocity.) ) )\n        if <touching (ground. v)?> then\n            change y by (((Y velocity.) / ([abs v] of (Y velocity.) )) * (-1))\n        end\n    end\n    if <<not <(Y velocity.) > [0]>> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        set [y velocity. v] to (jump hight)\n    else\n        set [y velocity. v] to [0]\n    end\nelse\n    change [y velocity. v] by (fall speed)\nend\n\ndefine Left n' right (move speed) (drag)\nchange x by (X velocity)\nif <touching (ground. v)?> then\n    repeat ([ceiling v] of ([abs v] of (X velocity) ) )\n        if <touching (ground. v)?> then\n            change x by (((X velocity) / ([abs v] of (X velocity) )) * (-1))\n        end\n    end\n    set [x velocity v] to [0]\nend\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    point in direction (90)\n    set [x velocity v] to (move speed)\nelse\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        point in direction (90)\n        set [x velocity v] to ((move speed) * (-1))\n    end\nend\nset [x velocity v] to ((X velocity) * (drag))\n\nwhen flag clicked\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-209) y: (-50)\n        broadcast (Ouch! v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#2aff00)?> then\n        go to x: (-209) y: (-50)\n        broadcast (Next level. v)\n    end\nend\n\nwhen I receive [ouch! v]\ngo to x: (-209) y: (-50)\n\n@ground.\n\nwhen flag clicked\ngo to x: (0) y: (0)\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [next level. v]\nnext costume\n\nwhen flag clicked\nset [pitch v] effect to (0)\nforever\n    if <(costume [number v]) = [7]> then\n        set [pitch v] effect to (-10)\n        switch backdrop to (backdrop2 v)\n    end\nend\n\nwhen flag clicked\nforever\n    play sound [a-stereotypical-obby-made-with-Voicemod v] until done\nend\n\nwhen flag clicked\nset [pitch v] effect to (0)\nforever\n    if <(costume [number v]) = [10]> then\n        broadcast (Level 10 v)\n        set [pitch v] effect to (-50)\n        switch backdrop to (backdrop3 v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nset [pitch v] effect to (0)\nforever\n    if <(costume [number v]) = [11]> then\n        set [pitch v] effect to (-70)\n        switch backdrop to (backdrop3 v)\n    end\nend\n\nwhen flag clicked\nset [pitch v] effect to (0)\nforever\n    if <(costume [number v]) = [12]> then\n        set [pitch v] effect to (-100)\n        switch backdrop to (backdrop3 v)\n    end\nend\n\nwhen flag clicked\nset [pitch v] effect to (0)\nforever\n    if <(costume [number v]) = [13]> then\n        switch backdrop to (backdrop3 v)\n        set [pitch v] effect to (-300)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [16]> then\n        switch backdrop to (backdrop3 v)\n        broadcast (Boss 1 v)\n    end\nend\n\nwhen flag clicked\nwait until <(costume [number v]) = [16]>\nbroadcast (Boss 1 v)\n\nwhen flag clicked\nset [pitch v] effect to (0)\nforever\n    if <(costume [number v]) = [20]> then\n        set [pitch v] effect to (0)\n        switch backdrop to (backdrop1 v)\n    end\nend\n\nwhen flag clicked\nset [pitch v] effect to (0)\nforever\n    if <(costume [number v]) = [8]> then\n        broadcast (Level 8 v)\n        set [pitch v] effect to (-50)\n        switch backdrop to (backdrop3 v)\n        stop [this script v]\n    end\nend\n\n@exit\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [next level. v]\nnext costume\n\nwhen I receive [end of battle 1 v]\nnext costume\n\n@no\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [next level. v]\nnext costume\n\n@Dave.\n\nwhen I receive [boss 1 v]\nshow\nstop [this script v]\n\nwhen flag clicked\nhide variable [boss health v]\nhide\n\nwhen flag clicked\ngo to x: (0) y: (-59)\nswitch costume to (costume1 v)\nwait until <touching (the bog. v)?>\nwait (0) seconds\nrepeat (10)\n    wait (.04) seconds\n    next costume\nend\nwait (1) seconds\nstart sound [Talk. v]\nsay [Who] for (.3) seconds\nstart sound [Talk. v]\nsay [Who are] for (.3) seconds\nstart sound [Talk. v]\nsay [Who are you?] for (2) seconds\nwait (1) seconds\nsay [.] for (.7) seconds\nsay [..] for (.7) seconds\nsay [...] for (.7) seconds\nnext costume\nstart sound [Talk. v]\nsay [Your not trying to kill me.] for (3) seconds\nnext costume\nstart sound [Talk. v]\nsay [Right?] for (2) seconds\nstart sound [Talk. v]\nsay [Right?!?!] for (3) seconds\nnext costume\nSay [RIgHt!?!/1?1/1?!?!?!?!?/1?!??] Time Waiting [1] Time Between Letter [.01]\nnext costume\nSay [HEheHHEheEHEHEHehEHEHEHEHEHEHhHRHAHAHEHHWHAHHWHEHEHEHHE] Time Waiting [.5] Time Between Letter [.01]\nwait (1) seconds\ngo to x: (0) y: (150)\nwait (1) seconds\nswitch costume to (costume19 v)\nbroadcast (Battle 1 start v)\n\ndefine Say (text) Time Waiting (*) Time Between Letter (**)\ndelete all of [text said v]\ndelete all of [text v]\nset [d v] to [1]\nrepeat (length of (text))\n    add (letter (d) of (text)) to [text v]\n    change [d v] by (1)\nend\nset [e v] to [1]\nset [text v] to []\nset [text2 v] to []\nset [d v] to [1]\nrepeat (length of (Text))\n    start sound [Talk.2 v]\n    set [text v] to (join (text2) (item (e) of [text v]))\n    set [text2 v] to (text)\n    change [e v] by (1)\n    say (text)\n    wait (**) seconds\nend\nwait (*) seconds\nsay []\n\nwhen I receive [battle 1 start v]\nswitch costume to (costume19 v)\nset [boss health v] to [100]\nshow variable [boss health v]\nstart sound [Vs. Dave phase 3 v]\nrepeat until <(Boss health) = [0]>\n    wait (1) seconds\n    broadcast (Beam 1 v)\n    wait (6) seconds\n    wait (1) seconds\n    wait (5) seconds\n    broadcast (big boi sword v)\n    change [boss health v] by (-10)\nend\nstop all sounds\nnext costume\nSay [No...] Time Waiting [1] Time Between Letter [.03]\nSay [NONONO] Time Waiting [2] Time Between Letter [.03]\nnext costume\nSay [NONONONONONONONONONONONONONO] Time Waiting [0] Time Between Letter [.03]\nhide variable [boss health v]\nbroadcast (End of battle 1 v)\nnext costume\n\nwhen I receive [battle 1 start v]\nrepeat until <(Boss health) = [0]>\n    play sound [Vs. Dave phase 3 v] until done\nend\nwait (2) seconds\nrepeat until <(Boss health) = [0]>\n    play sound [Vs. Dave phase 3 v] until done\nend\n\n@Boss 1 weapons\n\nwhen flag clicked\nhide\n\nwhen I receive [battle 1 start v]\nswitch costume to (none. v)\nshow\n\nwhen I receive [beam 1 v]\ngo to x: (pick random (-150) to (150)) y: (0)\nset [ghost v] effect to (0)\nstart sound [gaster-blaster-made-with-Voicemod v]\nswitch costume to (costume1 v)\nwait (.7) seconds\nnext costume\nbroadcast (ATACKKKK!!!! v)\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nbroadcast (Beam 2 v)\n\nwhen I receive [beam 2 v]\ngo to x: (pick random (-150) to (150)) y: (0)\nset [ghost v] effect to (0)\nstart sound [gaster-blaster-made-with-Voicemod v]\nswitch costume to (costume1 v)\nwait (.7) seconds\nnext costume\nbroadcast (ATACKKKK!!!! v)\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nbroadcast (Beam 3 v)\n\nwhen I receive [fire 1 v]\ngo to x: (0) y: (0)\nset [ghost v] effect to (0)\nstart sound [gaster-blaster-made-with-Voicemod v]\nswitch costume to (costume11 v)\nwait (1) seconds\nnext costume\nbroadcast (ATACKKKK!!!! v)\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nbroadcast (Fire 2 v)\n\nwhen I receive [fire 2 v]\ngo to x: (0) y: (0)\nset [ghost v] effect to (0)\nstart sound [gaster-blaster-made-with-Voicemod v]\nswitch costume to (costume9 v)\nwait (1) seconds\nnext costume\nbroadcast (ATACKKKK!!!! v)\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nbroadcast (Fire 3 v)\n\nwhen I receive [fire 3 v]\ngo to x: (0) y: (0)\nset [ghost v] effect to (0)\nstart sound [gaster-blaster-made-with-Voicemod v]\nswitch costume to (costume13 v)\nwait (1) seconds\nnext costume\nbroadcast (ATACKKKK!!!! v)\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nbroadcast (Sidesweep v)\n\nwhen I receive [beam 3 v]\ngo to x: (pick random (-150) to (150)) y: (0)\nset [ghost v] effect to (0)\nstart sound [gaster-blaster-made-with-Voicemod v]\nswitch costume to (costume1 v)\nwait (.7) seconds\nnext costume\nbroadcast (ATACKKKK!!!! v)\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nbroadcast (Fire 1 v)\n\nwhen I receive [atackkkk!!!! v]\nif <touching (the bog. v)?> then\n    broadcast (boss- Ouch! v)\nend\n\nwhen I receive [sidesweep v]\ngo to x: (0) y: (0)\nset [ghost v] effect to (0)\nstart sound [gaster-blaster-made-with-Voicemod v]\nswitch costume to (costume15 v)\nwait (.5) seconds\nnext costume\nbroadcast (ATACKKKK!!!! v)\nrepeat (20)\n    change [ghost v] effect by (5)\nend\n\nwhen I receive [big boi sword v]\ngo to x: (pick random (-250) to (250)) y: (0)\nset [ghost v] effect to (0)\nstart sound [gaster-blaster-made-with-Voicemod v]\nswitch costume to (uh v)\nwait (.7) seconds\nnext costume\nbroadcast (ATACKKKK!!!! v)\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nswitch costume to (none. v)\n\n@Sprite1\n\nwhen flag clicked\nhide\n\nshow\n\n@thing\n\nwhen flag clicked\nshow\nset [health v] to [10]\nswitch costume to (costume1 v)\nwait until <(Health) = [0]>\nbroadcast (ded. v)\nhide\n\nwhen I receive [ouch! v]\nnext costume\nchange [health v] by (-1)\n\nwhen I receive [ded. v]\nwait (.01) seconds\nstop [all v]\n\nwhen flag clicked\nforever\n    if <(Health) = [11]> then\n        switch costume to (extra 1 v)\n    end\nend\n\nwhen I receive [boss- ouch! v]\nnext costume\nchange [health v] by (-1)\n\nwhen flag clicked\nforever\n    if <(Health) = [12]> then\n        switch costume to (extra 2 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Health) = [13]> then\n        switch costume to (extra 2 v)\n        set [health v] to [12]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Health) = [14]> then\n        switch costume to (extra 2 v)\n        set [health v] to [12]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Health) = [15]> then\n        switch costume to (extra 2 v)\n        set [health v] to [12]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Health) = [16]> then\n        switch costume to (extra 2 v)\n        set [health v] to [12]\n    end\nend\n\n@death screen\n\nwhen flag clicked\nhide\n\nwhen I receive [ded. v]\nshow\n\n@life boosts\n\nwhen flag clicked\nhide\n\nwhen I receive [level 10 v]\nswitch costume to (level 10 v)\ngo to x: (36) y: (28)\nset [life boosts taken? v] to [No]\nshow\nrepeat until <(Life boosts taken?) = [Yes]>\n    if <touching (the bog. v)?> then\n        change [health v] by (1)\n        set [life boosts taken? v] to [Yes]\n    end\nend\nhide\n\nwhen I receive [level 8 v]\nswitch costume to (level 8 v)\ngo to x: (-22) y: (-5)\nset [life boosts taken? v] to [No]\nshow\nrepeat until <(Life boosts taken?) = [Yes]>\n    if <touching (the bog. v)?> then\n        change [health v] by (1)\n        set [life boosts taken? v] to [Yes]\n    end\nend\nhide\n\n