Among Us || 360 Platformer  #all #amongus #games #platformers

Instructions: AMONG US A 360 PLATFORMER\n\nThis is also mobile friendly.\nLet's get this on trending!!! \nPls like and fav!\nArrow keys to move.\nJump over spikes.\nBounce high on the trampolines.\nGet to red to win!\n\nTAGS:\n#games #fun #all #trentontnt #amongus #art #code #platformer

@Stage\n\nwhen flag clicked\nforever\n    play sound [1234 v] until done\nend\n\n@detector\n\nwhen flag clicked\nhide\nset [favorite v] to [0]\nset [love v] to [0]\nset [clone id v] to [0]\ncreate clone of (_myself_ v)\nwait (0.2) seconds\nset [clone id v] to [1]\ncreate clone of (_myself_ v)\nwait until <<(Love) = [1]> and <(Favorite) = [1]>>\nwait (1) seconds\nbroadcast (Message v)\nshow\ngo to [front v] layer\ngo to x: (0) y: (50)\nreset timer\nswitch costume to (pick random (1) to (4))\nset [ghost v] effect to (100)\nrepeat until <(timer) > [3.5]>\n    change y by ((y position) / (-15))\n    change [ghost v] effect by (-3)\nend\nreset timer\nrepeat until <(timer) > [3.5]>\n    change y by (((y position) - (-100)) / (-15))\n    change [ghost v] effect by (10)\nend\n\nwhen I start as a clone\nif <(clone id) = [0]> then\n    go to x: (-15) y: (0)\n    set [love v] to [0]\n    switch costume to (3 v)\n    forever\n        set [loved? v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [love v] to [1]\n        end\n    end\nend\nif <(clone id) = [1]> then\n    go to x: (0) y: (0)\n    switch costume to (3 v)\n    set [favorite v] to [0]\n    forever\n        set [favorite? v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [favorite v] to [1]\n        end\n    end\nend\n\n@player\n\nwhen flag clicked\ngo to x: (0) y: (-1)\nhide\n\nwhen I receive [respawn v]\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen flag clicked\nforever\n    change y by (-5)\n    if <touching color (#f4ff03)?> then\n        set [y vel v] to [-20]\n    end\n    if <touching color (#a4a4a4)?> then\n        broadcast (respawn v)\n    end\n    if <touching color (#a4a4a4)?> then\n        broadcast (respawn v)\n    end\n    if <touching color (#ff0000)?> then\n        broadcast (lvl2 v)\n        set [lvl v] to [2]\n    end\n    if <touching color (#1f7600)?> then\n        broadcast (Win v)\n        stop [other scripts in sprite v]\n    end\n    if <touching (spikes v)?> then\n        broadcast (respawn v)\n    end\n    change y by (5)\nend\n\nwhen I receive [green flag v]\nshow\n\n@Thumbnail\n\nwhen flag clicked\nhide\nbroadcast (Green flag v)\n\n@Platform\n\ndefine SET HACK SIZE TO (number or text)\nswitch costume to (size hack v)\nset size to (number or text) %\nswitch costume to (costume1 v)\n\nwhen I receive [respawn v]\npoint in direction (90)\ngo to x: (-10) y: (-500)\nset [d vel v] to [0]\nset [y vel v] to [0]\nstop all sounds\nplay sound [Sunshine v] until done\n\nwhen I receive [green flag v]\ngo to [front v] layer\nshow\nbroadcast (respawn v)\nSET HACK SIZE TO [200]\nforever\n    change [y vel v] by (1)\n    if <<key (right arrow v) pressed?> or <<(mouse x) > (x position)> and <mouse down?>>> then\n        change [d vel v] by (-0.2)\n    end\n    if <<key (left arrow v) pressed?> or <<(x position) > (mouse x)> and <mouse down?>>> then\n        change [d vel v] by (0.2)\n    end\n    set [d vel v] to ((d vel) * (0.8))\n    turn right (d vel) degrees\n    if <touching (player v)?> then\n        change y by (-1)\n        if <touching (player v)?> then\n            change y by (-1)\n            if <touching (player v)?> then\n                change y by (-1)\n                if <touching (player v)?> then\n                    change y by (-1)\n                    if <touching (player v)?> then\n                        change y by (4)\n                        turn right ((d vel) * (-1)) degrees\n                        set [d vel v] to [0]\n                    end\n                end\n            end\n        end\n    end\n    change y by (y vel)\n    if <touching (player v)?> then\n        change y by ((y vel) * (-1))\n        set [y vel v] to [0]\n    end\n    change y by (1)\n    if <touching (player v)?> then\n        if <<key (up arrow v) pressed?> or <<(mouse y) > [50]> and <mouse down?>>> then\n            set [y vel v] to [-12]\n        end\n    end\n    change y by (-1)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [green flag v]\nplay sound [Sunshine v] until done\n\nwhen I receive [win v]\npoint in direction (90)\ngo to x: (-10) y: (-500)\nset [d vel v] to [0]\nset [y vel v] to [0]\nstop all sounds\nplay sound [Sunshine v] until done\n\nwhen I receive [win v]\nstop [other scripts in sprite v]\nplay sound [Sunshine v] until done\n\nwhen flag clicked\nforever\n    if <(lvl) = [1]> then\n        switch costume to (costume1 v)\n    else\n        switch costume to (costume2 v)\n    end\nend\n\nwhen I receive [lvl2 v]\nswitch costume to (costume2 v)\nset [d vel v] to [0]\nset [y vel v] to [0]\nbroadcast (respawn v)\n\n