HALLOWEEN - A MOBILE-FRIENDLY PLATFORMER #GAMES #ALL

Instructions: New Game!\nhttps://scratch.mit.edu/projects/720120434/\n\nIf you like this, please love and favorite, and that will help other people see it!\n\nUse WASD, Arrow Keys, or your finger (it's mobile-friendly).\n\nCan we get this trending, or maybe even on the front page?\n\nPlease don't advertise.

@Stage\n\nwhen flag clicked\nclear graphic effects\n\nwhen I receive [ghosts v]\nrepeat (20)\n    change [brightness v] effect by (-4)\nend\n\n@Character\n\nwhen flag clicked\nset [y v] to [0]\nset [x v] to [0]\nset [jump v] to [1]\nset [level v] to [1]\ngo to x: (-200) y: (-50)\nforever\n    PING\nend\n\ndefine PING\nchange y by (y)\nif <touching (level v)?> then\n    change y by ((y) * (-1))\n    if <[0] < (y)> then\n        set [jump v] to [1]\n        set [y v] to [-0.5]\n    else\n        set [jump v] to [0]\n        set [y v] to [0]\n    end\nend\nchange x by (x)\nif <touching (level v)?> then\n    change x by ((x) * (-1))\n    set [x v] to [0]\nend\nif <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>>> then\n    if <not <touching (level v)?>> then\n        if <[-8] < (x)> then\n            change [x v] by (-0.5)\n            if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<(y position) < (mouse y)> and <mouse down?>>> then\n                switch costume to (up left v)\n            else\n                switch costume to (left v)\n            end\n        end\n    end\nend\nif <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(x position) < (mouse x)>>>> then\n    if <not <touching (level v)?>> then\n        if <(x) < [8]> then\n            change [x v] by (0.5)\n            if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<(y position) < (mouse y)> and <mouse down?>>> then\n                switch costume to (up right v)\n            else\n                switch costume to (right v)\n            end\n        end\n    end\nend\nif <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(y position) < (mouse y)>>>> then\n    if <(jump) = [0]> then\n        set [jump v] to [1]\n        set [y v] to [14]\n    end\nend\nif <not <<<<key (left arrow v) pressed?> or <key (right arrow v) pressed?>> or <<key (a v) pressed?> or <key (d v) pressed?>>> or <mouse down?>>> then\n    set [x v] to ((x) * (0.5))\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<(y position) < (mouse y)> and <mouse down?>>> then\n        switch costume to (up v)\n    else\n        switch costume to (center v)\n    end\nend\nif <(jump) = [1]> then\n    change [y v] by (-0.75)\nend\nif <(jump) = [0]> then\n    if <not <touching (level v)?>> then\n        set [jump v] to [1]\n    end\nend\n\nwhen I receive [next level v]\ngo to x: (-200) y: (-50)\nchange [level v] by (1)\nif <(LEVEL) = [3]> then\n    stop all sounds\n    broadcast (GHOSTS v)\nend\n\nwhen flag clicked\nforever\n    if <(y position) < [-180]> then\n        broadcast (DONE v)\n        change [level v] by (1)\n        set y to (999)\n    end\nend\n\nwhen flag clicked\nrepeat until <[2] < (LEVEL)>\n    play sound [Music v] until done\nend\n\nwhen I receive [ghosts v]\nforever\n    play sound [Andrew Gold - Spooky Scary Skeletons \(2spooky4u\) v] until done\nend\n\nwhen flag clicked\nforever\n    if <touching (dangerous v)?> then\n        go to x: (-200) y: (-50)\n    end\nend\n\n@Level\n\nwhen flag clicked\nhide variable [level v]\nshow\nforever\n    switch costume to (LEVEL)\nend\n\nwhen I receive [ghosts v]\nclear graphic effects\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\nwhen I receive [done v]\nclear graphic effects\nshow\n\nwhen [space v] key pressed\nif <(username) = [rgantzos]> then\n    show variable [level v]\n    wait (5) seconds\n    hide variable [level v]\nend\n\n@End\n\nwhen flag clicked\nforever\n    set [ghost v] effect to (100)\n    if <not <(LEVEL) = [14]>> then\n        wait until <touching (character v)?>\n        broadcast (Next Level v)\n        wait until <not <touching (character v)?>>\n    end\nend\n\n@Ghost\n\ndefine CLONE\ngo to x: (pick random (-247) to (247)) y: (pick random (-60) to (198))\ncreate clone of (_myself_ v)\n\nwhen I receive [ghosts v]\nrepeat (30)\n    CLONE\nend\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nshow\nset [ghost v] effect to (100)\nrepeat (20)\n    change [ghost v] effect by (-2)\n    change x by (pick random (-2) to (2))\n    change y by (pick random (-2) to (2))\nend\nrepeat (20)\n    change [ghost v] effect by (2)\n    change x by (pick random (-2) to (2))\n    change y by (pick random (-2) to (2))\nend\ndelete this clone\n\n@Dangerous\n\nwhen flag clicked\nshow\nforever\n    switch costume to (LEVEL)\nend\n\n@Thumbnail\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    show\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\n