Infected Part 2 ll #Trending #All #Games #Platformer #Marvel0678
@Stage\n\nwhen flag clicked\nforever\n    if <(username) = [Marvel0678]> then\n    else\n        play sound [K-391, Alan Walker & Ahrix - End of Time \(Lyrics\) v] until done\n        wait (0.3) seconds\n        play sound [Your Little Wings Tokyo Music Walker \(No Copyright Music\) v] until done\n        wait (0.3) seconds\n        play sound [TheFatRat - Time Lapse v] until done\n    end\nend\n\n@Player\n\ndefine Player Walk\nforever\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [x v v] by (.9)\n        point in direction (-90)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [x v v] by (-.9)\n        point in direction (90)\n    end\n    set [x v v] to ((X v) * (0.9))\n    change x by (X v)\n    if <<touching (level v)?> or <touching (moving platfom v)?>> then\n        change y by (1)\n        if <<touching (level v)?> or <touching (moving platfom v)?>> then\n            change y by (1)\n            if <<touching (moving platfom v)?> or <touching (level v)?>> then\n                change y by (1)\n                if <<touching (level v)?> or <touching (moving platfom v)?>> then\n                    change y by (1)\n                    if <<touching (moving platfom v)?> or <touching (level v)?>> then\n                        change y by (1)\n                        if <<touching (moving platfom v)?> or <touching (level v)?>> then\n                            change x by ((X v) * (-1))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>>> then\n                                if <(X v) > [0]> then\n                                    set [x v v] to [-5]\n                                else\n                                    set [x v v] to [5]\n                                end\n                                set [y v v] to [15]\n                            else\n                                set [x v v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [y v v] by (-1)\n    change y by (Y v)\n    if <<touching (level v)?> or <<touching (rotating platform v)?> or <touching (moving platfom v)?>>> then\n        change y by ((Y v) * (-1))\n        set [y v v] to [0]\n    end\n    change y by (-1)\n    if <<touching (level v)?> or <<touching (rotating platform v)?> or <touching (moving platfom v)?>>> then\n        if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>>> then\n            set [y v v] to [15]\n        end\n    end\n    change y by (1)\nend\n\ndefine Detection\nforever\n    if <touching (finish v)?> then\n        go to x: (-237) y: (-50)\n        change [level v] by (1)\n    end\n    if <touching (spikes v)?> then\n        go to x: (-237) y: (-50)\n        change [deaths v] by (1)\n    end\n    if <touching (lava v)?> then\n        change [deaths v] by (1)\n        go to x: (-237) y: (-50)\n    end\n    if <touching (infected peoples v)?> then\n        go to x: (-237) y: (-50)\n        change [deaths v] by (1)\n    end\n    if <touching (trampoline v)?> then\n        set [y v v] to [15]\n        broadcast (Tramp anim v)\n    end\nend\n\ndefine Costume Changer\nforever\n    wait (pick random (4) to (6)) seconds\n    switch costume to (costume1 v)\n    wait (0.1) seconds\n    switch costume to (costume2 v)\n    wait (0.1) seconds\n    switch costume to (costume3 v)\n    wait (0.1) seconds\n    switch costume to (costume4 v)\n    wait (0.1) seconds\n    switch costume to (costume1 v)\nend\n\nwhen I receive [end v]\nset [useless variable v] to [YOU FOUND THE EASTER EGG]\ngo to x: (-237) y: (-50)\nforever\n    Detection\nend\n\nwhen I receive [end v]\nshow\nforever\n    Costume Changer\nend\n\nwhen I receive [end v]\nswitch costume to (costume1 v)\nforever\n    Player Walk\nend\n\nwhen flag clicked\nhide variable [useless variable v]\nhide\n\nwhen I receive [end v]\nswitch costume to (costume1 v)\nforever\n    Key Detection\nend\n\ndefine Key Detection\nforever\n    if <not <(Level) = [7]>> then\n        if <key (s v) pressed?> then\n            change [level v] by (1)\n            wait until <not <key (s v) pressed?>>\n        end\n    end\n    if <key ((join [en] [ter]) v) pressed?> then\n        show variable [useless variable v]\n        wait until <not <key ((join [en] [ter]) v) pressed?>>\n        wait (3) seconds\n        hide variable [useless variable v]\n    end\n    if <key (space v) pressed?> then\n        broadcast (Hide mouse v)\n    end\n    if <key (m v) pressed?> then\n        broadcast (Show mouse v)\n    end\nend\n\nwhen I receive [skip v]\nchange [level v] by (1)\n\n@Level\n\nwhen flag clicked\nhide\n\nwhen I receive [end v]\nshow\ngo to [front v] layer\nforever\n    switch costume to (Level)\nend\n\n@Sign\n\nwhen flag clicked\nhide\n\ndefine Sign Codes\nforever\n    if <touching (player v)?> then\n        say (Message)\n    else\n        say []\n    end\nend\n\ndefine The message\nforever\n    if <(Level) = [1]> then\n        set [message v] to (join [HOLY MOLY!! ] (join (username) [ the infection is spreading quickly!!!We have to find the cure immediately.And we seem be pretty lost in this dark forest]))\n    end\n    if <(Level) = [2]> then\n        set [message v] to (join (username) [ we have to find our way to the hospital!! Watch out for the deadly bush.])\n    end\n    if <(Level) = [3]> then\n        set [message v] to (join (username) [ this place seems familiar])\n    end\n    if <(Level) = [4]> then\n        set [message v] to [I wonder what are they guarding?]\n    end\n    if <(Level) = [5]> then\n        set [message v] to (join [OH NO!! The spike is on our way.We have to find a way to jump over the spikes ] (username))\n    end\n    if <(Level) = [6]> then\n        set [message v] to [OH NO!! DOUBLE TROUBLE IS COMING]\n    end\n    if <(Level) = [7]> then\n        set [message v] to [Well here it is.Just what we've been looking for.]\n    end\nend\n\nwhen I receive [end v]\nshow\ngo to [back v] layer\nset [level v] to [1]\nforever\n    Sign Codes\nend\n\nwhen I receive [end v]\nforever\n    The message\nend\n\n@Infected peoples\n\ndefine Show or hide\nforever\n    if <<(Level) = [4]> or <(Level) = [0]>> then\n        show\n    end\n    if <not <<(Level) = [4]> or <(Level) = [0]>>> then\n        hide\n    end\nend\n\nwhen flag clicked\nhide\nset [infected speed v] to [3]\n\ndefine Walking\nforever\n    if <(Level) = [4]> then\n        show\n        go to x: (207) y: (106)\n        switch costume to (join [Costume ] (pick random (1) to (2)))\n        repeat until <not <(Level) = [4]>>\n            point in direction (90)\n            glide (Infected speed) secs to x: (138) y: (106)\n            wait (2) seconds\n            point in direction (-90)\n            glide (Infected speed) secs to x: (207) y: (106)\n        end\n    end\n    if <not <<(Level) = [4]> or <(Level) = [0]>>> then\n        hide\n    end\nend\n\ndefine Infected Speed\nforever\n    set [infected speed v] to ((Level) - (1))\nend\n\nwhen I receive [end v]\nforever\n    go to [back v] layer\n    Walking\nend\n\nwhen I receive [end v]\nforever\n    go to [back v] layer\n    Show or hide\nend\n\nwhen I receive [end v]\nforever\n    go to [back v] layer\n    Infected Speed\nend\n\n@Spikes\n\nwhen flag clicked\nhide\n\nwhen I receive [end v]\nshow\ngo to [back v] layer\nforever\n    switch costume to (Level)\nend\n\n@Finish\n\nwhen flag clicked\nhide\n\nwhen I receive [end v]\nshow\nforever\n    go to [back v] layer\nend\n\n@Decor\n\nwhen flag clicked\nhide\n\nwhen I receive [end v]\nforever\n    show\n    go to [back v] layer\n    switch costume to (Level)\nend\n\n@Thumbnail\n\nwhen flag clicked\nset [ghost v] effect to (100)\nforever\n    show\n    go to [front v] layer\n    go [forward v] (10000000000000000000000000000000000000000000000000000000000000000000000000000000000000) layers\nend\n\n@Intro by me\n\ndefine Smooth Glide x: (x) y: (y) speed: (speed)\nrepeat until <<(round (x position)) = (round (x))> and <(round (y position)) = (round (y))>>\n    change x by (((round (x)) - (round (x position))) / (speed))\n    change y by (((round (y)) - (round (y position))) / (speed))\nend\ngo to x: (x) y: (y)\n\ndefine Smooth zoom Size: (size) Speed: (speed)\nrepeat until <(round (size)) = (round (size))>\n    change size by (((round (size)) - (round (size))) / (speed))\nend\n\nwhen flag clicked\nhide\nset size to (50) %\ngo to [front v] layer\ngo to x: (0) y: (0)\npoint in direction (90)\nset [cloneid v] to [0]\nwait () seconds\nset [cloneid v] to [Background]\ncreate clone of (_myself_ v)\nwait () seconds\nset [cloneid v] to [Logo]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(CloneID) = [Logo]> then\n    show\n    set size to (50) %\n    switch costume to (CloneID)\n    Smooth zoom Size: [100] Speed: [14]\n    broadcast (Next v)\n    set [cloneid v] to [Name]\n    create clone of (_myself_ v)\n    Smooth Glide x: (-124) y: (0) speed: (12)\nend\n\nwhen I start as a clone\nif <(CloneID) = [Name]> then\n    show\n    set size to (100) %\n    go to [back v] layer\n    set [type of project v] to [Game]\n    switch costume to (join (CloneID) (Type of project))\n    go to x: (37) y: (-1)\n    wait (2) seconds\n    broadcast (Almost v)\nend\n\nwhen I start as a clone\nif <(CloneID) = [Background]> then\n    show\n    set size to (100) %\n    switch costume to (CloneID)\n    forever\n        go to [back v] layer\n    end\nend\n\nwhen I start as a clone\nif <(CloneID) = [Decor]> then\n    show\n    switch costume to (CloneID)\n    go to x: (37) y: (-1)\nend\n\nwhen I receive [almost v]\nset [ghost v] effect to (0)\nrepeat (5)\n    wait (0.1) seconds\n    change [ghost v] effect by (20)\nend\nhide\nbroadcast (End v)\n\n@Rain\n\nwhen I start as a clone\nshow\nchange size by (pick random (1) to (20))\ngo to x: (pick random (-240) to (240)) y: (180)\nglide (pick random (5) to (9)) secs to x: (pick random (-240) to (240)) y: (-180)\ndelete this clone\n\nwhen I start as a clone\nforever\n    set [ghost v] effect to (16)\n    if <touching (water v)?> then\n        delete this clone\n    end\n    if <<touching color (#fdfdfd)?> and <(SCREEN) = [1]>> then\n        delete this clone\n    end\n    if <(SCREEN) = [0]> then\n        go [backward v] (10) layers\n    end\nend\n\nwhen flag clicked\nset [level v] to [1]\nhide\ngo [backward v] (1) layers\nforever\n    if <(SCREEN) = [1]> then\n        create clone of (_myself_ v)\n        wait (0.05) seconds\n    else\n        create clone of (_myself_ v)\n        wait (0.07) seconds\n    end\nend\n\n@Lava\n\nwhen flag clicked\nshow\nreset timer\ngo to x: (0) y: (100)\nforever\n    go to [back v] layer\n    switch costume to (Level)\n    set y to (([sin v] of ((timer) * (200)) ) * (5))\nend\n\n@Trampoline\n\nwhen flag clicked\nshow\ngo to x: (0) y: (100)\nswitch costume to (tramp animation  v)\nreset timer\nforever\n    go to [back v] layer\n    if <<(Level) = [5]> or <(Level) = [6]>> then\n        show\n        if <(Level) = [5]> then\n            switch costume to (1 v)\n        end\n        if <(Level) = [6]> then\n            switch costume to (2 v)\n        end\n    end\n    if <not <<(Level) = [5]> or <(Level) = [6]>>> then\n        hide\n    end\nend\n\nwhen I receive [tramp anim v]\nTrampoline Animation\n\ndefine Trampoline Animation\nif <(Level) = [5]> then\n    switch costume to (tramp animation  v)\n    wait (0.1) seconds\n    switch costume to (tramp animation v)\n    wait (0.1) seconds\n    switch costume to (1 v)\nend\nif <(Level) = [6]> then\n    switch costume to (tramp animation l1 v)\n    wait (0.3) seconds\n    switch costume to (tramp animation l2 v)\n    wait (0.2) seconds\n    switch costume to (2 v)\nend\n\n@Love fave\n\nwhen flag clicked\nset [costume v] to [0]\nhide\nforever\n    if <not <<(LOVED__) = [1]> and <(FAVED___) = [1]>>> then\n        wait (pick random (30) to (40)) seconds\n        switch costume to (costume1 v)\n        go to x: (1) y: (163)\n        show\n        go to [front v] layer\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    end\n    if <(Costume) > [0]> then\n        hide\n        stop [this script v]\n    end\nend\n\n@Mouse Trail\n\nwhen flag clicked\nshow\nforever\n    go to [front v] layer\n    go to (mouse-pointer v)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\npoint in direction (pick random (0) to (360))\nrepeat (10)\n    move (5) steps\n    change size by (-4)\n    change [ghost v] effect by (5)\nend\ndelete this clone\n\nwhen I receive [hide mouse v]\nhide\n\nwhen I receive [show mouse v]\nshow\n\n@Blank\n\nwhen I receive [end v]\nask [What device are you using?] and wait\nforever\n    if <(answer) = [mobile]> then\n        set [device v] to [Mobile]\n    end\n    if <(answer) = [Mobile]> then\n        set [device v] to [Mobile]\n    end\n    if <(answer) = [computer]> then\n        set [device v] to [Comp]\n    end\n    if <(answer) = [Computer]> then\n        set [device v] to [Comp]\n    end\n    if <(answer) = [comp]> then\n        set [device v] to [Comp]\n    end\n    if <(answer) = [mobile.]> then\n        set [device v] to [Mobile]\n    end\nend\n\nwhen flag clicked\nset [device v] to [0]\nhide\n\n@Mobile1\n\nwhen flag clicked\nhide\ngo to [back v] layer\ngo [backward v] (3) layers\nforever\n    if <<not <(Device) = [Comp]>> and <not <(Device) = [0]>>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen this sprite clicked\nif <not <(Level) = [7]>> then\n    broadcast (Skip v)\n    wait (1) seconds\nend\nif <(Level) = [7]> then\n\n@Nothing to see here\n\nwhen flag clicked\nshow list [popular scratcher in the game v]\nforever\n    if <(username) = [Marvel0678]> then\n        if <key (9 v) pressed?> then\n            hide list [popular scratcher in the game v]\n        end\n        if <key (8 v) pressed?> then\n            show list [popular scratcher in the game v]\n        end\n    end\n    if <<(username) = [HenryWolfe]> or <(username) = [TechCoder]>> then\n        add (username) to [popular scratcher in the game v]\n        \n    end\nend\n\n
Infected part 2 is here!!!\n-------------------------------------------------------------\nIf you are the curator pls propose this :)\nhttps://scratch.mit.edu/studios/28715018/e \n-------------------------------------------------------------\nGo here to see all the infected parts i made :\nhttps://scratch.mit.edu/studios/30229166\n-------------------------------------------------------------\nStory : We manage to escape the city but we were lost in the mystery dark forest.Find your way out to the hospital and make the cure.The farther we go the more dangerous the adventure goes.So are you truly ready??\n-------------------------------------------------------------\nPress "S" to skip level :)