Among Us Platformer
@Stage\n\nwhen flag clicked\nhide variable [☁ world record time: v]\nhide variable [time: v]\nset [time: v] to [0]\nswitch backdrop to (blank v)\n\nwhen I receive [start game v]\nshow variable [☁ world record time: v]\nshow variable [time: v]\nforever\n    change [time: v] by (1)\n    wait (1) seconds\nend\n\nwhen I receive [rain v]\nstop [other scripts in sprite v]\nif <(Time:) < (☁ World Record Time:)> then\n    set [☁ world record time: v] to (Time:)\nend\n\n@Player\n\nwhen flag clicked\nhide\n\nwhen I receive [start game v]\ngo to (player sensing v)\ngo to [front v] layer\nset [color v] effect to (10)\nset [x velocity v] to [0]\nset [y velocity v] to [0]\nshow\nforever\n    go to (player sensing v)\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        set rotation style [left-right v]\n        point in direction (90)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        set rotation style [left-right v]\n        point in direction (-90)\n    end\nend\n\nwhen I receive [start game v]\nforever\n    if <not <<key (up arrow v) pressed?> or <<key (down arrow v) pressed?> or <<key (right arrow v) pressed?> or <<key (left arrow v) pressed?> or <<key (w v) pressed?> or <<key (s v) pressed?> or <<key (a v) pressed?> or <key (d v) pressed?>>>>>>>>> then\n        wait (0.001) seconds\n        repeat until <<key (up arrow v) pressed?> or <<key (down arrow v) pressed?> or <<key (right arrow v) pressed?> or <<key (left arrow v) pressed?> or <<key (w v) pressed?> or <<key (s v) pressed?> or <<key (a v) pressed?> or <key (d v) pressed?>>>>>>>>\n            switch costume to (idle v)\n        end\n    end\nend\n\nwhen I receive [start game v]\nforever\n    if <<key (up arrow v) pressed?> or <<key (down arrow v) pressed?> or <<key (right arrow v) pressed?> or <key (left arrow v) pressed?>>>> then\n        next costume\n        wait (0.001) seconds\n    end\nend\n\nwhen I receive [start game v]\nforever\n    if <<key (w v) pressed?> or <<key (s v) pressed?> or <<key (d v) pressed?> or <key (a v) pressed?>>>> then\n        next costume\n        wait (0.001) seconds\n    end\nend\n\nwhen I receive [death v]\nstart sound [Among us death sound v]\nhide\nwait (1.1) seconds\nshow\n\n@Player Sensing\n\nwhen flag clicked\nset [levels v] to [1]\ngo to x: (0) y: (180)\nforever\n    hide\nend\n\ndefine Platform Gravity: (gravity) Jump Height: (jump height) Side Movement Speed: (side movement speed) Friction: (friction) Slope: (slope)\nchange [y velocity v] by (gravity)\nif <touching color (#0008ff)?> then\n    set [y velocity v] to [20]\nend\nchange y by (Y Velocity)\nif <touching (levels v)?> then\n    repeat until <not <touching (levels v)?>>\n        change y by ((([abs v] of (Y Velocity) ) / (Y Velocity)) * (-1))\n    end\n    set [y velocity v] to (<<<key (w v) pressed?> or <key (up arrow v) pressed?>> and <(([abs v] of (Y Velocity) ) / (Y Velocity)) = [-1]>> * (jump height))\nend\nset [x velocity v] to (((X Velocity) + ((<<key (a v) pressed?> or <key (left arrow v) pressed?>> * ((side movement speed) * (-1))) + (<<key (d v) pressed?> or <key (right arrow v) pressed?>> * (side movement speed)))) * (friction))\nchange x by (X Velocity)\nset [slope v] to [0]\nrepeat until <<(Slope) = ((slope) * (-1))> or <not <touching (levels v)?>>>\n    change y by (1)\n    change [slope v] by (-1)\nend\nif <touching (levels v)?> then\n    change y by (Slope)\n    repeat until <not <touching (levels v)?>>\n        change x by ((([abs v] of (X Velocity) ) / (X Velocity)) * (-1))\n    end\nend\nif <(x position) > [239]> then\n    go to x: (-183) y: (-40)\n    change [levels v] by (1)\n    if <(levels) > [15]> then\n        set [levels v] to [1]\n    end\n    broadcast (next level v)\nend\nif <<touching color (#ffea00)?> and <(key touched?) = [no]>> then\n    set [key touched? v] to [yes]\n    start sound [among us door opening sound effect v]\nend\n\nwhen I receive [start game v]\ngo to x: (-183) y: (-40)\nset [ghost v] effect to (100)\nshow\nstop [other scripts in sprite v]\nbroadcast (mevement v)\n\nwhen I receive [mevement v]\ngo to x: (-183) y: (-40)\nset [x velocity v] to [0]\nset [y velocity v] to [0]\nforever\n    Platform Gravity: [-1] Jump Height: [15] Side Movement Speed: [3] Friction: [.7] Slope: [8]\nend\n\nwhen I receive [mevement v]\nforever\n    if <<<<touching color (#ff2929)?> or <touching (lava v)?>> or <touching color (#ee00ff)?>> or <(y position) < [-179]>> then\n        stop [other scripts in sprite v]\n        broadcast (death v)\n        wait (1) seconds\n        broadcast (mevement v)\n        go to x: (-183) y: (-40)\n    end\nend\n\n@Levels\n\nwhen flag clicked\nset [levels v] to [1]\nhide\ngo to [front v] layer\ngo to x: (0) y: (0)\nforever\n    switch costume to (levels)\nend\n\nwhen I receive [start game v]\nshow\n\n@Effects\n\nwhen flag clicked\nhide\ngo to [back v] layer\ngo to x: (0) y: (0)\nforever\n    switch costume to (levels)\nend\n\nwhen I receive [start game v]\nshow\n\n@Intro\n\nwhen I start as a clone\nshow\nif <(costume [number v]) = [1]> then\n    go to [front v] layer\n    go to x: (0) y: (20)\n    set size to (10) %\n    repeat (10)\n        change size by (((200) - (size)) * (0.3))\n    end\n    repeat (10)\n        change size by (((100) - (size)) * (0.3))\n    end\n    wait (1.5) seconds\n    repeat (10)\n        change size by (((0) - (size)) * (0.3))\n    end\n    delete this clone\nend\nif <(costume [number v]) = [2]> then\n    hide\n    wait (1) seconds\n    show\n    go to x: (0) y: (-80)\n    set size to (10) %\n    repeat (10)\n        change size by (((200) - (size)) * (0.3))\n    end\n    repeat (10)\n        change size by (((100) - (size)) * (0.3))\n    end\n    wait (1.5) seconds\n    repeat (10)\n        change size by (((0) - (size)) * (0.3))\n    end\n    switch backdrop to (among us background v)\n    broadcast (start v)\n    delete this clone\nend\n\ndefine Intro\nwait (1) seconds\nstart sound [Intro Music \(Shortened\) v]\npoint in direction (90)\nhide\nerase all\ngo to x: (0) y: (0)\nset pen color to (#ffdd00)\nset pen size to (100)\nset [vel v] to [0]\nset [lenght v] to [0]\nrepeat (30)\n    pen down\n    change x by (lenght)\n    change x by (((lenght) * (-1)) * (2))\n    pen up\n    change x by (lenght)\n    change [lenght v] by (((240) - (lenght)) * (0.1))\nend\nswitch costume to (costume3 v)\ncreate clone of (_myself_ v)\nswitch costume to (costume2 v)\ncreate clone of (_myself_ v)\nerase all\nset [s v] to [50]\nrepeat (10)\n    set pen size to (s)\n    go to x: (-240) y: (0)\n    pen down\n    go to x: (240) y: (0)\n    pen up\n    change [s v] by (40)\nend\nwait (0.5) seconds\nset pen color to (#ffd000)\nset pen size to (100)\nset [s v] to [50]\nrepeat (12)\n    set pen size to (s)\n    go to x: (-240) y: (0)\n    pen down\n    go to x: (240) y: (0)\n    pen up\n    change [s v] by (30)\n    go to x: (0) y: (0)\n    set pen color to (#ffea90)\n    pen down\n    pen up\n    set pen color to (#ffd000)\nend\nwait (1) seconds\nrepeat (20)\n    erase all\n    set pen size to (s)\n    go to x: (0) y: (0)\n    set pen color to (#ffea90)\n    pen down\n    pen up\n    set pen color to (#ffce79)\n    change [s v] by (-30)\nend\n\nwhen flag clicked\nerase all\nIntro\n\n@Lava\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\nforever\n    change [lava y v] by (3.5)\n    change y by ([cos v] of (lava y) )\nend\n\nwhen flag clicked\nforever\n    switch costume to (levels)\nend\n\nwhen I receive [start game v]\ngo to [front v] layer\nshow\n\n@Key And Locked Door\n\nwhen flag clicked\nset [key touched? v] to [no]\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [next level v]\nif <(levels) = [11]> then\n    show\n    switch costume to (1 v)\n    wait until <(key touched?) = [yes]>\n    hide\n    set [key touched? v] to [no]\nelse\n    if <(levels) = [12]> then\n        show\n        switch costume to (2 v)\n        wait until <(key touched?) = [yes]>\n        hide\n        set [key touched? v] to [no]\n    else\n        if <(levels) = [13]> then\n            show\n            switch costume to (3 v)\n            wait until <(key touched?) = [yes]>\n            hide\n            set [key touched? v] to [no]\n        else\n            if <(levels) = [14]> then\n                show\n                switch costume to (4 v)\n                wait until <(key touched?) = [yes]>\n                hide\n                set [key touched? v] to [no]\n            else\n                hide\n            end\n        end\n    end\nend\n\n@Nail\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    set [ghost v] effect to (100)\n    go to [front v] layer\nend\n\n@Music\n\nwhen flag clicked\nhide\ngo to x: (-210) y: (-153)\nswitch costume to (2 v)\n\nwhen this sprite clicked\nif <(costume [name v]) = [1]> then\n    switch costume to (2 v)\n    repeat until <(costume [name v]) = [1]>\n        stop all sounds\n    end\nelse\n    if <(costume [name v]) = [2]> then\n        switch costume to (1 v)\n        repeat until <(costume [name v]) = [2]>\n            play sound [Among Us Music v] until done\n        end\n    end\nend\n\nwhen I receive [start game v]\nshow\ngo to [front v] layer\n\nwhen I receive [part 2 v]\nshow\ngo to [front v] layer\n\n@Button\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nhide\nforever\n    if <(levels) = [15]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen this sprite clicked\nif <(costume [number v]) = [1]> then\n    start sound [Emergency Meeting Sound Among us v]\n    broadcast (float v)\n    wait (2) seconds\n    go to [front v] layer\n    switch costume to (costume2 v)\n    broadcast (rain v)\nend\n\nwhen I receive [rain v]\nforever\n    stop [other scripts in sprite v]\nend\n\n@Particle\n\nwhen I start as a clone\nset [color v] effect to (pick random (1) to (100))\nset [speed v] to (pick random (2) to (3))\nshow\nset size to (pick random (50) to (100)) %\ngo to x: (pick random (-240) to (240)) y: (170)\nset [ghost v] effect to (100)\nrepeat until <touching (_edge_ v)?>\n    go to [front v] layer\n    point in direction (180)\n    move (speed) steps\n    go to [front v] layer\n    change x by (Snow: x)\nend\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I start as a clone\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I start as a clone\nforever\n    change [snow: x v] by (pick random (-0.5) to (0.5))\nend\n\nwhen I receive [rain v]\nrepeat (20)\n    create clone of (_myself_ v)\n    wait (pick random (0.08) to (0.2)) seconds\nend\n\nwhen flag clicked\nhide\n\nset [levels v] to [15]\n\n@Imposter\n\nwhen flag clicked\ngo to x: (20) y: (-62)\nhide\nforever\n    if <(levels) = [15]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [float v]\nstop [other scripts in sprite v]\nset [i v] to [0]\nrepeat until <(y position) > [179]>\n    change [i v] by (1)\n    change y by (i)\nend\nhide\n\n@Dead Body\n\nwhen flag clicked\nhide\n\nwhen I receive [death v]\ngo to (player sensing v)\nshow\nwait (1) seconds\nhide\n\n@Menu\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nsetup\n\ndefine setup\nset size to (100) %\nshow\ngo to x: (0) y: (0)\nswitch costume to (back v)\nstamp\nswitch costume to (title v)\ngo to x: (12) y: (121)\ncreate clone of (_myself_ v)\nset size to (70) %\nswitch costume to (play v)\ngo to x: (300) y: (21)\ncreate clone of (_myself_ v)\nset size to (70) %\nswitch costume to (credits v)\ngo to x: (300) y: (-53)\ncreate clone of (_myself_ v)\nset size to (70) %\nswitch costume to (howtoplay v)\ngo to x: (300) y: (-126)\ncreate clone of (_myself_ v)\nhide\n\nwhen I start as a clone\nforever\n    if <<touching (mouse-pointer v)?> and <not <<(costume [number v]) = [5]> or <<(costume [number v]) = [6]> or <(costume [number v]) = [7]>>>>> then\n        repeat (3)\n            change size by (5)\n            change [brightness v] effect by (5)\n        end\n        wait until <not <touching (mouse-pointer v)?>>\n        repeat (3)\n            change size by (-5)\n            change [brightness v] effect by (-5)\n        end\n    end\n    if <(costume [number v]) = [5]> then\n        change [title y v] by (6.5)\n        change y by ([cos v] of (title y) )\n    end\nend\n\nwhen this sprite clicked\nif <(costume [number v]) = [2]> then\n    broadcast (start game v)\n    broadcast (delete menu v)\nelse\n    if <(costume [number v]) = [3]> then\n        how to play\n    else\n        if <(costume [number v]) = [4]> then\n            credits\n        else\n            if <(costume [number v]) = [8]> then\n                broadcast (delete menu v)\n                broadcast (start v)\n            else\n                if <(costume [number v]) = [9]> then\n                    broadcast (delete menu v)\n                    broadcast (start v)\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [delete menu v]\nerase all\ndelete this clone\n\ndefine how to play\nbroadcast (delete menu v)\ngo to x: (0) y: (0)\nset size to (100) %\nswitch costume to (htp menu v)\ncreate clone of (_myself_ v)\ngo to [front v] layer\ngo to x: (0) y: (-109)\nset size to (100) %\nswitch costume to (htp okay v)\ncreate clone of (_myself_ v)\n\ndefine credits\nbroadcast (delete menu v)\ngo to x: (0) y: (0)\nset size to (100) %\nswitch costume to (credit menu v)\ncreate clone of (_myself_ v)\ngo to [front v] layer\ngo to x: (0) y: (-99)\nset size to (100) %\nswitch costume to (credit okay v)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nset [i2 v] to [0]\nif <not <<(costume [number v]) = [1]> or <(costume [number v]) = [5]>>> then\n    repeat until <(x position) < [0]>\n        change [i2 v] by (-1)\n        change x by (i2)\n    end\nend\nset x to (0)\n\n
Part 2 Is Not Coming Out For A Long Time, Im Busy.\n\nPLEASE NO HATE!!! THIS TOOK A LONG TIME TO MAKE!!\n\nRandomizer: https://scratch.mit.edu/projects/482479615/\nPart 2 By @PurpleLightBG !\nhttps://scratch.mit.edu/projects/597034126/\n\nThis Is A Very Special Project For All Of My Followers!\nOver 50! Thank You Guys Sooooo Much!\n\nW A D or Arrow Keys - Movement\nGo To The Right Side Of The Screen To Go To The Next Level\n\nMy High Score Time Is 0.56 Try And Beat It :)\n\nI Think Those Heart And Star Buttons Are Being Sus... Vote Them Off By Clicking On Them! They're Free And They Help Out A Ton. You Can Always Un-heart And\nUn-star Later If You Want. But Who Does That?\n\n~ @Peoples_XD\n\nTags:\n#platformer   #all   #games   #amongus