Pandemic a platformer
@Stage\n\n@player\n\nwhen flag clicked\nset [level v] to [0]\nchange [☁ views! v] by (1)\ngo to x: (-217) y: (-20)\n\nwhen flag clicked\nforever\n    if <touching (dangers v)?> then\n        go to x: (-217) y: (-20)\n        change [deaths: v] by (1)\n    end\nend\n\nwhen flag clicked\nhide\nset [x v] to [0]\nset [y v] to [0]\nforever\n    change [y v] by (-1)\n    if <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [x v] by (-1)\n    end\n    if <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [x v] by (1)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            set [y v] to [17]\n            if <(x) > [0]> then\n                set [x v] to [-10]\n            else\n                set [x v] to [10]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <touching (ground v)?> then\n        change y by ((y) - ((y) * (2)))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> and <touching (ground v)?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <(x position) > [245]> then\n        go to x: (-217) y: (-20)\n        broadcast (NEXT LEVEL v)\n    end\nend\n\nwhen I receive [intro's done v]\nshow\n\n@thumbnail\n\nwhen flag clicked\ngo to [front v] layer\nset [ghost v] effect to (100)\n\n@skip button\n\nwhen flag clicked\nhide\ngo to x: (285) y: (-143)\n\nwhen this sprite clicked\nbroadcast (NEXT LEVEL v)\nhide\nwait (10) seconds\nshow\n\nwhen I receive [intro's done v]\nshow\n\n@dangers\n\nwhen I receive [intro's done v]\nshow\nwait (0.5) seconds\nforever\n    play sound [ song by Joel Phillips v] until done\n    wait (0.5) seconds\nend\n\nwhen flag clicked\nhide\nswitch costume to (level1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@ground\n\nwhen I receive [next level v]\nchange [level v] by (1)\nnext costume\n\nwhen flag clicked\nhide\nswitch costume to (level1 v)\n\nwhen I receive [intro's done v]\nshow\n\n@Thumbnail\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\n@YOUR Intro\n\nwhen flag clicked\nhide\nReset\nset [waiting v] to [0]\nset [clonenumber v] to [0]\nset [sides v] to [0]\nset [value v] to [0]\nset [velocity v] to [0]\ncreate clone of (_myself_ v)\nswitch costume to (name v)\nstart sound [Electro-Light - Symbolism v]\nwait (1.82) seconds\nset [clonenumber v] to [1]\nset [i v] to [5]\nrepeat (10)\n    create clone of (_myself_ v)\n    if <(sides) = [1]> then\n        set [sides v] to [0]\n        change [value v] by (10)\n        change [i v] by (-.4)\n    else\n        set [sides v] to [1]\n    end\nend\nset [clonenumber v] to [2]\nwait (.3) seconds\nrepeat (4)\n    create clone of (_myself_ v)\n    change [value v] by (10)\n    wait (0.1) seconds\nend\nclear graphic effects\nswitch costume to (name v)\ngo [forward v] (99) layers\ngo to [front v] layer\nset size to (0) %\nshow\nrepeat until <(round (size)) = [50]>\n    change size by (((50) - (size)) / (3))\nend\ncreate clone of (_myself_ v)\nwait until <touching color (#fbffe6)?>\nrepeat until <(round (size)) = [100]>\n    change size by (((100) - (size)) / (5))\nend\nset [velocity v] to [17]\nset [waiting v] to [1]\nset [clonenumber v] to [3]\ncreate clone of (_myself_ v)\nset [clonenumber v] to [4]\ncreate clone of (_myself_ v)\nset [waiting v] to [2]\nrepeat (25)\n    go [forward v] (99) layers\n    set [velocity v] to ((velocity) * (.95))\n    set size to ((100) + (velocity)) %\nend\nreset timer\nrepeat until <(timer) > [3]>\n    go to x: (pick random (-3) to (3)) y: (pick random (-3) to (3))\n    change size by (((150) - (size)) / (3))\nend\npoint in direction (90)\nset [value v] to [5]\nrepeat (16)\n    turn right (value) degrees\n    change [value v] by (1)\nend\nrepeat until <(round (direction)) = [90]>\n    turn right (((90) - (direction)) / (5)) degrees\nend\nrepeat until <(timer) > [6]>\n    go to x: (pick random (-3) to (3)) y: (pick random (-3) to (3))\n    change size by (((175) - (size)) / (3))\nend\nset [velocity v] to [12]\nrepeat (30)\n    change size by (velocity)\n    change [velocity v] by (-1)\n    change [ghost v] effect by (3.3)\n    go to x: (pick random (-3) to (3)) y: (pick random (-3) to (3))\nend\nbroadcast (Intro End Animation v)\nhide\n\nwhen I start as a clone\nif <(clonenumber) = [0]> then\n    Reset\n    show\n    set size to (0) %\n    point in direction (-15)\n    switch costume to (square v)\n    set [velocity v] to [0]\n    set [value v] to [0]\n    repeat (15)\n        change [value v] by (1)\n        turn right (value) degrees\n        change [velocity v] by (1)\n        change size by (velocity)\n    end\n    set [value v] to [8]\n    repeat (30)\n        set [value v] to (((value) * (0.69)) + ((90) - (direction)))\n        turn right (value) degrees\n    end\n    repeat (12)\n        next costume\n    end\n    repeat until <(round (size)) = [2000]>\n        switch costume to (blank v)\n        change size by (((2000) - (size)) / (5))\n        switch costume to (square13 v)\n    end\nend\n\ndefine Reset\nclear graphic effects\nset size to (100) %\npoint in direction (90)\ngo to x: (0) y: (0)\n\nwhen I start as a clone\nif <(clonenumber) = [1]> then\n    Reset\n    show\n    switch costume to (blank v)\n    set size to (150) %\n    point in direction (90)\n    switch costume to (square13 v)\n    set [brightness v] effect to (value)\n    go to x: (0) y: (0)\n    set [i v] to (i)\n    if <(sides) = [1]> then\n        repeat until <(round (y position)) = [180]>\n            change y by (((180) - (y position)) / (i))\n            change [ghost v] effect by (5)\n        end\n    else\n        repeat until <(round (y position)) = [-180]>\n            change y by (((-180) - (y position)) / (i))\n            change [ghost v] effect by (5)\n        end\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(clonenumber) = [2]> then\n    Reset\n    show\n    switch costume to (blank v)\n    set size to (150) %\n    point in direction (90)\n    set [brightness v] effect to (value)\n    go to x: (240) y: (-180)\n    point in direction (-135)\n    switch costume to (screen v)\n    repeat until <(round (direction)) = [90]>\n        turn right (((90) - (direction)) / (5)) degrees\n    end\n    point in direction (90)\n    wait until <(waiting) = [1]>\n    delete this clone\nend\n\nwhen I start as a clone\nif <(clonenumber) = [3]> then\n    Reset\n    show\n    go to [front v] layer\n    switch costume to (screennormal v)\n    set size to (100) %\n    point in direction (90)\n    set [brightness v] effect to (100)\n    go to x: (0) y: (0)\n    repeat (5)\n        change [brightness v] effect by (-20)\n    end\nend\n\nwhen I start as a clone\nif <(clonenumber) = [4]> then\n    Reset\n    clear graphic effects\n    show\n    go to [front v] layer\n    go [forward v] (999) layers\n    switch costume to (screennormal v)\n    set size to (100) %\n    point in direction (90)\n    set [brightness v] effect to (100)\n    go to x: (0) y: (0)\n    repeat (20)\n        change [ghost v] effect by (5)\n    end\n    delete this clone\nend\n\ndefine Move and Clones\nset [clonenumber v] to [5]\ncreate clone of (_myself_ v)\ngo to x: (-150) y: (80)\ncreate clone of (_myself_ v)\ngo to x: (150) y: (80)\ncreate clone of (_myself_ v)\ngo to x: (-150) y: (-80)\ncreate clone of (_myself_ v)\ngo to x: (150) y: (-80)\ncreate clone of (_myself_ v)\ngo to x: (0) y: (0)\n\nwhen I start as a clone\nif <(clonenumber) = [5]> then\n    show\n    clear graphic effects\n    set size to (10) %\n    point in direction (90)\n    switch costume to (sidesquareline v)\n    set [velocity v] to [0]\n    set [value v] to [0]\n    go to [front v] layer\n    repeat until <(round (size)) = [300]>\n        change size by (((300) - (size)) / (15))\n        change [ghost v] effect by (4)\n    end\n    delete this clone\nend\n\nwhen flag clicked\nwait until <(waiting) = [2]>\nreset timer\nrepeat until <(timer) > [6]>\n    Move and Clones\n    wait (1) seconds\nend\n\nwhen I receive [intro end animation v]\nif <not <(costume [number v]) = [14]>> then\n    repeat (20)\n        change size by (((0) - (size)) / (5))\n        change [ghost v] effect by (5)\n    end\nelse\n    repeat until <(round (size)) = [100]>\n        change size by (((100) - (size)) / (5))\n        switch costume to (blank v)\n        switch costume to (square v)\n    end\n    set [velocity v] to [12]\n    repeat (30)\n        change size by (velocity)\n        change [velocity v] by (-1)\n        change [ghost v] effect by (3.3)\n        turn right (([abs v] of (velocity) ) / (2)) degrees\n    end\n    delete this clone\nend\n\n@intro\n\nwhen flag clicked\nswitch backdrop to (backdrop2 v)\nMAKE INTRO\nbroadcast (intro's done v)\n\ndefine MAKE INTRO\nshow\ngo to x: (0) y: (0)\npoint in direction (90)\nset size to (100) %\nstart sound [Intro music v]\nrepeat (50)\n    turn right (10) degrees\nend\nrepeat (50)\n    turn left (10) degrees\nend\nrepeat (3)\n    repeat (10)\n        change size by (10)\n    end\n    repeat (10)\n        change size by (-10)\n    end\nend\nhide\n\n
use arrow keys to move, please like and fav my game I worked really hard on it. If this gets on trending, it will make me so happy!\nPart two https://scratch.mit.edu/projects/440287356/\nMaybe a part 3... first I need a squeal