Infected Part 1 ll #trending #Platformer #Game #All #Mobile Friendly

Instructions: INFECTED PART 1!!!\n------------------------------\nGo to here to see all the infected parts i made :\nhttps://scratch.mit.edu/studios/30229166\n-------------------------------\nStory:Once upon a time there lived an explorer in a poor little village.It has a little bit of resources of masks and soaps.Then suddenly a deadly virus came.The explorer got a mask but the others didn't.Now its your time to help your peoples so the people in your village can be cured by a very rare cure.Can you help him to help his peoples??\n---------------------------------------------------------------\nUse WASD,arrow keys or mobile controls to move\nSo far no mobile gliches :D.Mobile FRIENDLY!!!\nW = Jump\nA = Move left\nD = Move right\n----------------------------------------------------------------\nDon't touch the spikes,lava and the infected people.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nComment : Mystery Comment XD

@Stage\n\nwhen flag clicked\nforever\n    play sound [Your Little Wings Tokyo Music Walker \(No Copyright Music\) v] until done\n    wait (0.1) seconds\n    play sound [TheFatRat - Time Lapse v] until done\n    wait (0.1) seconds\nend\n\n@Thumbnail\n\nwhen flag clicked\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\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@Infected peoples\n\nwhen flag clicked\nforever\n    go to [back v] layer\n    Show or hide\nend\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\nset [infected speed v] to [3]\nforever\n    go to [back v] layer\n    Walking\nend\n\ndefine Walking\nforever\n    if <(Level) = [4]> then\n        go to x: (187) y: (-60)\n        switch costume to (pick random (1) to (2))\n        repeat until <not <(Level) = [4]>>\n            point in direction (90)\n            glide (Infected speed) secs to x: (48) y: (-60)\n            wait (1) seconds\n            point in direction (-90)\n            glide (Infected speed) secs to x: (192) y: (-60)\n        end\n    end\n    if <not <<(Level) = [4]> or <(Level) = [0]>>> then\nend\n\ndefine Infected Speed\nforever\n    set [infected speed v] to ((Level) - (1))\nend\n\nwhen flag clicked\nforever\n    go to [back v] layer\n    Infected Speed\nend\n\n@Lava\n\nwhen flag clicked\nshow\ngo to x: (0) y: (100)\nreset timer\nforever\nend\n\npoint in direction (90)\n\nwhen flag clicked\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@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@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        change [level v] by (1)\n        go to x: (-206) y: (-49)\n    end\n    if <touching (spikes v)?> then\n        change [deaths v] by (1)\n        go to x: (-206) y: (-49)\n    end\n    if <touching (lava v)?> then\n        change [deaths v] by (1)\n        go to x: (-206) y: (-49)\n    end\n    if <touching (infected peoples v)?> then\n        change [deaths v] by (1)\n        go to x: (-206) y: (-49)\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]\ngo to x: (-206) y: (-49)\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\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 [Oh ] (join (username) [,You got so lucky buying the last mask in this world because other people don't haves a mask and a new deadly virus is here.]))\n    end\n    if <(Level) = [2]> then\n        set [message v] to (join (username) [ We gotta get out of this city without being infected!!])\n    end\n    if <(Level) = [3]> then\n        set [message v] to (join (username) [ Watch out for the infected peoples,infected spikes and infected lava too!!])\n    end\n    if <(Level) = [4]> then\n        set [message v] to (join [Oh NO!!Are those you're parents ] (join (username) (join [.] [We have to save them])))\n    end\n    if <(Level) = [5]> then\n        set [message v] to (join [We have to save you're parents before its too late ] (username))\n    end\n    if <(Level) = [6]> then\n        set [message v] to [WOAH!!The infected boss has been created this to stop us]\n    end\n    if <(Level) = [7]> then\n        set [message v] to [I see a hospital near us but the infected people are guarding it.We'll have to find another way to find the cure]\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@Finish\n\nwhen flag clicked\nhide\n\nwhen I receive [end v]\nshow\nforever\n    go to [back v] layer\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@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@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