Among Us Platformer


@Stage\n\n@Player\n\nwhen flag clicked\nset [level v] to [1]\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [start game v]\nset size to (100) %\nset [level v] to [1]\ngo to x: (-192) y: (-164)\nforever\n    point in direction (90)\n    show\n    go\nend\n\ndefine go\nchange [yv v] by (-0.5)\nif <(Level) = [23]> then\n    hide\nend\nif <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n    switch costume to (costume2 v)\n    change [xv v] by (-0.7)\nend\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(x position) < (mouse x)>>> then\n    switch costume to (costume1 v)\n    change [xv v] by (0.7)\nend\nset [xv v] to ((Xv) * (0.9))\nchange x by (Xv)\nif <touching (level v)?> then\n    change y by (1)\n    if <touching (level v)?> then\n        change y by (1)\n        if <touching (level v)?> then\n            change y by (1)\n            if <touching (level v)?> then\n                change y by (1)\n                if <touching (level v)?> then\n                    change y by (1)\n                    if <touching (level v)?> then\n                        change y by (1)\n                        if <touching (level v)?> then\n                            change y by (1)\n                            if <touching (level v)?> then\n                                change y by (-6)\n                                change x by ((Xv) * (-1))\n                                if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(y position) < (mouse y)>>> then\n                                    set [yv v] to [8]\n                                    if <(Xv) > [0]> then\n                                        set [xv v] to [-8]\n                                    else\n                                        set [xv v] to [8]\n                                    end\n                                else\n                                    set [xv v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nchange y by (Yv)\nif <touching (level v)?> then\n    change y by ((Yv) * (-1))\n    set [yv v] to [0]\nend\nchange y by (-0.5)\nif <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(y position) < (mouse y)>>> and <touching (level v)?>> then\n    set [yv v] to [8]\nend\nchange y by (0.5)\nif <touching (finish level v)?> then\n    broadcast (Next level v)\nend\nif <touching (bad things v)?> then\n    repeat (10)\n        wait (0.02) seconds\n        change [ghost v] effect by (10)\n    end\n    go to x: (-192) y: (-105)\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\nend\nif <<touching color (#00ff2c)?> and <touching (trampolines v)?>> then\n    set [yv v] to [14]\nend\n\nwhen I receive [next level v]\nset size to (100) %\nchange [level v] by (1)\nswitch costume to (costume1 v)\npoint in direction (90)\nset [xv v] to [0]\nset [yv v] to [0]\ngo to x: (-192) y: (-164)\n\nwhen I receive [finish game v]\nif <(Time) < (☁ World Record)> then\n    set [☁ world record v] to (Time)\n    set [time v] to [0]\nelse\n    set [time v] to [0]\nend\nstop [all v]\n\nwhen flag clicked\nreset timer\n\nwhen I receive [start now v]\nrepeat until <(Level) = [23]>\n    set [time v] to (timer)\nend\n\nwhen I receive [start game v]\nreset timer\n\nwhen I receive [start new game v]\nset size to (100) %\nset [level v] to [1]\ngo to x: (-192) y: (-164)\nforever\n    point in direction (90)\n    show\n    go\nend\n\n@Trampolines\n\nwhen flag clicked\nswitch costume to (costume1 v)\nshow\n\nwhen I receive [next level v]\nnext costume\n\nwhen I receive [finish game v]\nstop [all v]\n\n@Finish Level\n\nwhen flag clicked\nset size to (100) %\nhide\n\nwhen I receive [start game v]\nshow\ngo to x: (188) y: (-39)\nset size to (100) %\n\nwhen flag clicked\nforever\n    if <(Level) = [1]> then\n        go to x: (188) y: (-39)\n    end\n    if <(Level) = [2]> then\n        go to x: (188) y: (-39)\n    end\n    if <(Level) = [3]> then\n        go to x: (175) y: (132)\n    end\n    if <(Level) = [4]> then\n        go to x: (188) y: (-39)\n    end\n    if <(Level) = [5]> then\n        set size to (70) %\n        go to x: (200) y: (200)\n    end\n    if <(Level) = [6]> then\n        go to x: (200) y: (56)\n    end\n    if <(Level) = [7]> then\n        go to x: (202) y: (163)\n    end\n    if <(Level) = [8]> then\n        go to x: (202) y: (120)\n    end\n    if <(Level) = [9]> then\n        go to x: (202) y: (-68)\n    end\n    if <(Level) = [10]> then\n        go to x: (202) y: (163)\n    end\n    if <(Level) = [11]> then\n        go to x: (202) y: (163)\n    end\n    if <(Level) = [12]> then\n        go to x: (206) y: (70)\n    end\n    if <(Level) = [13]> then\n        go to x: (163) y: (164)\n    end\n    if <(Level) = [14]> then\n        go to x: (208) y: (198)\n    end\n    if <(Level) = [15]> then\n        go to x: (205) y: (-69)\n    end\n    if <(Level) = [16]> then\n        go to x: (198) y: (196)\n    end\n    if <(Level) = [17]> then\n        go to x: (200) y: (168)\n    end\n    if <(Level) = [18]> then\n        go to x: (200) y: (168)\n    end\n    if <(Level) = [19]> then\n        go to x: (200) y: (20)\n    end\n    if <(Level) = [20]> then\n        go to x: (200) y: (-71)\n    end\n    if <(Level) = [21]> then\n        go to x: (200) y: (-71)\n    end\n    if <(Level) = [22]> then\n        go to x: (200) y: (-71)\n    end\n    if <(Level) = [23]> then\n        hide\n    end\nend\n\nwhen I receive [finish game v]\nstop [all v]\n\nwhen I receive [start new game v]\nshow\ngo to x: (188) y: (-39)\nset size to (100) %\n\n@Level\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\nforever\n    go to [front v] layer\nend\n\nwhen I receive [start game v]\nswitch costume to (costume1 v)\nshow\ngo to x: (20) y: (5)\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [23]> then\n        broadcast (Finish game v)\n    end\nend\n\nwhen I receive [finish game v]\nstop [this script v]\n\nwhen backdrop switches to [blue sky 2  v]\nplay sound [Dance Celebrate v] until done\n\nwhen flag clicked\nforever\n    play sound [Hello v] until done\nend\n\nwhen I receive [start new game v]\nswitch costume to (costume1 v)\nshow\ngo to x: (20) y: (5)\n\n@Bad things\n\nwhen flag clicked\nswitch costume to (costume1 v)\nshow\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nforever\n    if <(Level) = [1]> then\n        go to x: (-59) y: (79)\n    end\n    if <(Level) = [2]> then\n        go to x: (102) y: (-104)\n    end\n    if <(Level) = [3]> then\n        go to x: (102) y: (-104)\n    end\n    if <(Level) = [4]> then\n        go to x: (-59) y: (82)\n    end\n    if <(Level) = [5]> then\n        go to x: (-61) y: (100)\n    end\n    if <(Level) = [6]> then\n        go to x: (-69) y: (100)\n    end\n    if <(Level) = [7]> then\n        go to x: (-69) y: (100)\n    end\n    if <(Level) = [8]> then\n        go to x: (-69) y: (100)\n    end\n    if <(Level) = [9]> then\n        go to x: (-117) y: (4)\n    end\n    if <(Level) = [10]> then\n        go to x: (-117) y: (4)\n    end\n    if <(Level) = [11]> then\n        go to x: (-117) y: (4)\n    end\n    if <(Level) = [12]> then\n        go to x: (-117) y: (4)\n    end\n    if <(Level) = [13]> then\n        go to x: (-117) y: (4)\n    end\n    if <(Level) = [14]> then\n        go to x: (-40) y: (4)\n    end\n    if <(Level) = [15]> then\n        go to x: (-40) y: (4)\n    end\n    if <(Level) = [16]> then\n        go to x: (-40) y: (4)\n    end\n    if <(Level) = [17]> then\n        go to x: (-40) y: (4)\n    end\n    if <(Level) = [18]> then\n        go to x: (-40) y: (4)\n    end\n    if <(Level) = [19]> then\n        go to x: (-40) y: (4)\n    end\n    if <(Level) = [20]> then\n        go to x: (-40) y: (4)\n    end\n    if <(Level) = [21]> then\n        go to x: (-40) y: (4)\n    end\n    if <(Level) = [22]> then\n        go to x: (-40) y: (4)\n    end\nend\n\nwhen I receive [finish game v]\nstop [all v]\n\n@First thing\n\nwhen flag clicked\nshow\ngo to x: (-188) y: (134)\nglide (1) secs to x: (-189) y: (11)\nglide (0.5) secs to x: (-146) y: (11)\nglide (1) secs to x: (-61) y: (11)\nglide (1) secs to x: (28) y: (11)\nglide (1) secs to x: (103) y: (11)\nglide (1) secs to x: (164) y: (11)\nglide (1) secs to x: (171) y: (-111)\nglide (1) secs to x: (1) y: (-111)\n\nwhen flag clicked\nrepeat until <<(x position) = [1]> and <(y position) = [-111]>>\n    if <<(x position) = [-189]> and <(y position) = [11]>> then\n        broadcast (l v)\n    end\n    if <<(x position) = [-146]> and <(y position) = [11]>> then\n        broadcast (h v)\n    end\n    if <<(x position) = [-61]> and <(y position) = [11]>> then\n        broadcast (o v)\n    end\n    if <<(x position) = [28]> and <(y position) = [11]>> then\n        broadcast (e v)\n    end\n    if <<(x position) = [103]> and <(y position) = [11]>> then\n        broadcast (c v)\n    end\n    if <<(x position) = [164]> and <(y position) = [11]>> then\n        broadcast (k v)\n    end\n    if <<(x position) = [171]> and <(y position) = [-111]>> then\n        hide\n        broadcast (Finish first thing v)\n    end\n    if <<(x position) = [171]> and <(y position) = [-111]>> then\n        wait (1) seconds\n    end\nend\n\nwhen I receive [finish game v]\nstop [all v]\n\n@l\n\nwhen flag clicked\nhide\ngo to x: (-111) y: (-50)\nforever\n    go to [back v] layer\nend\n\nwhen I receive [l v]\nshow\nforever\n    go to [back v] layer\nend\n\nwhen I receive [finish first thing v]\nwait (1) seconds\nforever\n    hide\nend\n\nwhen I receive [finish game v]\nstop [all v]\n\n@h\n\nwhen flag clicked\nhide\ngo to x: (-78) y: (-50)\nforever\n    go to [back v] layer\nend\n\nwhen I receive [h v]\nshow\nforever\n    go to [back v] layer\nend\n\nwhen I receive [finish first thing v]\nwait (1) seconds\nforever\n    hide\nend\n\nwhen I receive [finish game v]\nstop [all v]\n\n@o\n\nwhen flag clicked\nhide\ngo to x: (3) y: (-50)\nforever\n    go to [back v] layer\nend\n\nwhen I receive [o v]\nshow\nforever\n    go to [back v] layer\nend\n\nwhen I receive [finish first thing v]\nwait (1) seconds\nforever\n    hide\nend\n\nwhen I receive [finish game v]\nstop [all v]\n\n@e\n\nwhen flag clicked\nhide\ngo to x: (86) y: (-50)\nforever\n    go to [back v] layer\nend\n\nwhen I receive [e v]\nshow\nforever\n    go to [back v] layer\nend\n\nwhen I receive [finish first thing v]\nwait (1) seconds\nforever\n    hide\nend\n\nwhen I receive [finish game v]\nstop [all v]\n\n@c\n\nwhen flag clicked\nhide\ngo to x: (165) y: (-50)\nforever\n    go to [back v] layer\nend\n\nwhen I receive [c v]\nshow\nforever\n    go to [back v] layer\nend\n\nwhen I receive [finish first thing v]\nwait (1) seconds\nforever\n    hide\nend\n\nwhen I receive [finish game v]\nstop [all v]\n\n@k\n\nwhen flag clicked\nhide\ngo to x: (231) y: (-50)\nforever\n    go to [back v] layer\nend\n\nwhen I receive [k v]\nshow\nforever\n    go to [back v] layer\nend\n\nwhen I receive [finish first thing v]\nwait (1) seconds\nforever\n    hide\nend\n\nwhen I receive [finish game v]\nstop [all v]\n\n@Sprite1\n\nwhen this sprite clicked\nbroadcast (Next level v)\n\nwhen I receive [start game v]\nhide\nbroadcast (Start now v)\n\nwhen flag clicked\nhide\n\nwhen I receive [start game v]\nshow variable [level v]\nshow variable [time v]\n\nwhen I receive [finish game v]\nhide\n\nwhen I receive [finish game v]\nstop [all v]\n\nwhen flag clicked\nhide variable [level v]\nhide variable [time v]\nhide variable [☁ world record v]\n\nwhen flag clicked\ngo to x: (-71) y: (121)\n\nwhen I receive [start game v]\nforever\n    if <<(mouse x) > [130]> and <(mouse y) > [130]>> then\n        show variable [☁ world record v]\n    else\n        hide variable [☁ world record v]\n    end\nend\n\nwhen I receive [start new game v]\nshow variable [level v]\n\nwhen I receive [start new game v]\ngo to x: (-71) y: (121)\nshow\n\nwhen flag clicked\nforever\n    if <(Level) = [23]> then\n        hide\n    end\nend\n\n@Sprite2\n\nwhen I receive [finish first thing v]\nwait (1) seconds\nshow\n\nwhen flag clicked\nhide\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n    else\n        set size to (100) %\n    end\nend\n\nwhen this sprite clicked\nbroadcast (Start new game v)\nhide\n\nwhen I receive [start new game v]\nhide\n\nwhen I receive [start game v]\nhide\n\n@Sprite3\n\nwhen flag clicked\nhide\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n    else\n        set size to (100) %\n    end\nend\n\nwhen I receive [finish first thing v]\nwait (1) seconds\nshow\n\nwhen this sprite clicked\nbroadcast (Start game v)\nhide\n\nwhen I receive [start new game v]\nhide\n\nwhen I receive [start game v]\nhide\n\n