Halloween A Multiplayer Scrolling Platformer

Instructions: DOUBLE CLICK THE GREEN FLAG \n----------------------------------------------------------------------\nUse arrow keys or WASD to move, Mobile Friendly!\n----------------------------------------------------------------------\n6 main levels, and 1 bonus level unlocked upon level 6 completion. \n----------------------------------------------------------------------\nSTUCK on the broken roof: Fall Down then Duck under the house, using down arrow, S, drag low. It is not impossible! \n-----------------------------------------------------------------------\nIF IT IS TO HARD then click the settings button (top left) then click level select from there select level 3!\n------------------------------------------------------------------------\nFor a challenge see if you can find the easter egg on level 5! (makes him put on a pirate costume)\n----------------------------------------------------------------------\nI spent many hours making this so pls ❤️, ⭐️ and follow\n-------------------------------------------------------------------------\nFollow to stay tuned for the sequel currently being made!\n(or not being made.....)\n\n

@Stage\n\n@player\n\ndefine Physics\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 [xmovement v] by (2)\nelse\n    if <<<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 [xmovement v] by (-2)\n    end\nend\nset [xmovement v] to ((Xmovement) * ((0.78) - (Friction)))\nchange x by (Xmovement)\nchange [yv v] by (-1.2)\nif <touching color (#19e800)?> then\n    change y by (1)\nend\nif <touching color (#19e800)?> then\n    change y by (1)\nend\nif <touching color (#19e800)?> then\n    change y by (1)\nend\nif <touching color (#34e400)?> then\n    change y by (1)\nend\nif <touching color (#19e800)?> then\n    change x by ((Xmovement) * (-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 [15]\n        if <(Xmovement) > [0]> then\n            set [xmovement v] to [-7]\n        else\n            set [xmovement v] to [7]\n        end\n    else\n        set [xmovement v] to [0]\n    end\nend\nchange y by (Yv)\nif <touching color (#19e800)?> then\n    change y by ((Yv) - ((Yv) * (2)))\n    set [yv v] to [0]\nend\nchange y by (-1)\nif <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(y position) < (mouse y)>>> and <touching color (#19e800)?>> then\n    set [yv v] to [15]\nend\nif <(x position) > [239]> then\n    broadcast (next level v)\nend\nif <(y position) < [-179]> then\n    go to x: (-198) y: (-45)\nend\nif <touching color (#00cd1b)?> then\n    set [yv v] to [26]\nend\nif <touching color (#008e11)?> then\n    go to x: (-198) y: (-45)\nend\nif <touching color (#00b215)?> then\n    go to x: (-198) y: (-45)\nend\nif <touching color (#0e8900)?> then\n    set [yv v] to [139]\nend\n\nwhen I receive [next level v]\nset [yv v] to [0]\ngo to x: (-198) y: (-45)\n\npoint in direction (-90)\n\nwhen I receive [restart v]\nset [yv v] to [0]\ngo to x: (-198) y: (-45)\n\nwhen flag clicked\nhide\n\nwhen [r v] key pressed\ngo to x: (-198) y: (-79)\n\nwhen I receive [new v]\ngo to x: (-198) y: (-79)\n\nwhen I receive [kid_1018 v]\nswitch costume to (costume1 v)\npoint in direction (90)\nshow\npoint in direction (90)\ngo to [front v] layer\nset [yv v] to [0]\ngo to x: (-198) y: (-45)\nset size to (20) %\nforever\n    Physics\nend\n\nwhen flag clicked\nhide\n\n@Sprite1\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\n\nwhen I receive [new v]\nnext costume\n\nwhen I receive [kid_1018 v]\nshow\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [17]> then\n        broadcast (HIDEEEEE v)\n    end\nend\n\n@Sprite2\n\nwhen this sprite clicked\nbroadcast (new v)\n\nturn left (15) degrees\n\nturn right (15) degrees\n\nwhen I receive [kid_1018 v]\nshow\n\nwhen flag clicked\nhide\n\nwhen I receive [hideeeee v]\nhide\n\n@hallenichole\n\nwhen I start as a clone\nif <(CloneType) = [1]> then\n    go to [front v] layer\n    show\n    go to x: (200) y: (0)\n    switch costume to (hallenichole1 v)\n    set [ghost v] effect to (100)\n    set size to (150) %\n    point in direction (0)\n    repeat (50)\n        change x by ((0) - ((x position) * (0.3)))\n        turn right (((90) - (direction)) / (8)) degrees\n        change size by (((100) - (size)) / (8))\n        change [ghost v] effect by (-4)\n    end\nend\nif <(CloneType) = [2]> then\n    show\n    go to x: (200) y: (0)\n    switch costume to (hallenichole2 v)\n    set [ghost v] effect to (100)\n    set size to (150) %\n    point in direction (0)\n    repeat (50)\n        change x by ((0) - ((x position) * (0.3)))\n        turn right (((90) - (direction)) / (8)) degrees\n        change size by (((100) - (size)) / (8))\n        change [ghost v] effect by (-4)\n    end\nend\nif <(CloneType) = [3]> then\n    show\n    go to x: (200) y: (0)\n    switch costume to (hallenichole3 v)\n    set [ghost v] effect to (100)\n    set size to (150) %\n    point in direction (0)\n    repeat (50)\n        change x by ((0) - ((x position) * (0.3)))\n        turn right (((90) - (direction)) / (8)) degrees\n        change size by (((100) - (size)) / (8))\n        change [ghost v] effect by (-4)\n    end\nend\nif <(CloneType) = [4]> then\n    show\n    go to x: (200) y: (0)\n    switch costume to (hallenichole4 v)\n    set [ghost v] effect to (100)\n    set size to (150) %\n    point in direction (0)\n    repeat (50)\n        change x by ((0) - ((x position) * (0.3)))\n        turn right (((90) - (direction)) / (8)) degrees\n        change size by (((100) - (size)) / (8))\n        change [ghost v] effect by (-4)\n    end\nend\nif <(CloneType) = [5]> then\n    show\n    go to x: (200) y: (0)\n    switch costume to (hallenichole5 v)\n    set [ghost v] effect to (100)\n    set size to (150) %\n    point in direction (0)\n    repeat (50)\n        change x by ((0) - ((x position) * (0.3)))\n        turn right (((90) - (direction)) / (8)) degrees\n        change size by (((100) - (size)) / (8))\n        change [ghost v] effect by (-4)\n    end\nend\nif <(CloneType) = [6]> then\n    show\n    go to x: (200) y: (0)\n    switch costume to (hallenichole6 v)\n    set [ghost v] effect to (100)\n    set size to (150) %\n    point in direction (0)\n    repeat (50)\n        change x by ((0) - ((x position) * (0.3)))\n        turn right (((90) - (direction)) / (8)) degrees\n        change size by (((100) - (size)) / (8))\n        change [ghost v] effect by (-4)\n    end\nend\nif <(CloneType) = [7]> then\n    show\n    go to x: (200) y: (0)\n    switch costume to (hallenichole7 v)\n    set [ghost v] effect to (100)\n    set size to (150) %\n    point in direction (0)\n    repeat (50)\n        change x by ((0) - ((x position) * (0.3)))\n        turn right (((90) - (direction)) / (8)) degrees\n        change size by (((100) - (size)) / (8))\n        change [ghost v] effect by (-4)\n    end\nend\nif <(CloneType) = [8]> then\n    show\n    go to x: (200) y: (0)\n    switch costume to (hallenichole8 v)\n    set [ghost v] effect to (100)\n    set size to (150) %\n    point in direction (0)\n    repeat (50)\n        change x by ((0) - ((x position) * (0.3)))\n        turn right (((90) - (direction)) / (8)) degrees\n        change size by (((100) - (size)) / (8))\n        change [ghost v] effect by (-4)\n    end\nend\nif <(CloneType) = [9]> then\n    show\n    go to x: (200) y: (0)\n    switch costume to (hallenichole9 v)\n    set [ghost v] effect to (100)\n    set size to (150) %\n    point in direction (0)\n    repeat (50)\n        change x by ((0) - ((x position) * (0.3)))\n        turn right (((90) - (direction)) / (8)) degrees\n        change size by (((100) - (size)) / (8))\n        change [ghost v] effect by (-4)\n    end\nend\n\nwhen I start as a clone\nwait until <(timer) > [5]>\nif <(CloneType) = [9]> then\n    repeat (10)\n        change x by ((2) + ((x position) * (0.3)))\n        change [ghost v] effect by (10)\n    end\nelse\n    repeat (10)\n        change y by ((2) + ((y position) * (0.3)))\n        change [ghost v] effect by (10)\n    end\nend\nhide\nbroadcast (kid_1018 v)\ndelete this clone\n\nwhen flag clicked\nset [clonetype v] to [0]\nshow\ngo to x: (0) y: (0)\nswitch costume to (hallenicholefull v)\nset [ghost v] effect to (100)\nset size to (100) %\npoint in direction (0)\n\nwhen flag clicked\nswitch costume to (hallenicholefull v)\nset [clonetype v] to [0]\nreset timer\nswitch backdrop to (backdrop1 v)\nrepeat (9)\n    change [clonetype v] by (1)\n    create clone of (_myself_ v)\n    wait (0.2) seconds\nend\n\n@Sprite3\n\nwhen flag clicked\nhide\n\ngo to [front v] layer\n\n@Flying objects\n\nwhen I start as a clone\nset [yvelocity v] to [0]\nif <(yvelocity) = [0]> then\n    set [yvelocity v] to [25]\nend\nrepeat (50)\n    change y by (yvelocity)\n    change [yvelocity v] by (-1)\n    turn right (turn) degrees\nend\ndelete this clone\n\nwhen I start as a clone\nset [turn v] to (pick random (-3) to (5))\ngo to x: (pick random (-235) to (235)) y: (-195)\nset size to (pick random (75) to (115)) %\nswitch costume to (pick random (1) to (7))\ngo [backward v] (50) layers\nshow\n\nwhen I receive [hideeeee v]\nhide\ngo to x: (0) y: (-195)\nforever\n    create clone of (_myself_ v)\n    wait (0.5) seconds\nend\n\n@Sprite4\n\nwhen I receive [kid_1018 v]\nstart sound [Lights \[Dream Trance\]2 v]\n\n