Halloween Platformer #games #all

Instructions: Hello and welcome to a cool Halloween Platformer!!☻\n25 ❤️ + 25 ⭐ = Part 2 (in Christmas Edition)\nYou can steer with:\n\n  w               \na   s        or\n  d  \n\n    ↑\n←  →     or\n    ↓\n\nmobile\n\n\nI hope you enjoy!!

@Stage\n\nwhen flag clicked\nforever\n    play sound [Hedwig's Flight v] until done\nend\n\nwhen flag clicked\nchange [color v] effect by (1)\nforever\n    change [color v] effect by (-5)\n    wait (0.2) seconds\n    change [color v] effect by (5)\nend\n\n@Player\n\nwhen I receive [game on! v]\nGame - Setup\nforever\n    broadcast (Tick - Player v)\n    broadcast (Tick - Others v)\n    broadcast (Tick - Last v)\nend\n\nwhen flag clicked\nbroadcast (Start - Setup v)\nbroadcast (Game on! v)\n\ndefine Game - Reset x and y\nset [player - y v] to [0]\nset [player - x v] to [0]\n\ndefine Game - Move x\nswitch costume to (hitbox v)\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n    change [player - x v] by (1.5)\n    point in direction (90)\nend\nif <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(x position) > (mouse x)>>> then\n    change [player - x v] by (-1.5)\n    point in direction (-90)\nend\nset [player - x v] to ((Player - x) * (0.86))\nchange x by (Player - x)\nif <([abs v] of (Player - x) ) < [0.1]> then\n    set [player - x v] to [0]\nend\nswitch costume to (player v)\n\ndefine Game - Collisions and Checking\nif <touching (lava v)?> then\n    Game - Die\nend\nif <touching (spikes v)?> then\n    Game - Die\nend\nif <(x position) > [225]> then\n    Game - Next Level\nend\n\nwhen I receive [start - setup v]\nStart - Setup\n\ndefine Start - Setup\nset [game - level v] to [1]\nhide\nset drag mode [not draggable v]\ngo to x: (Player - x start) y: (Player - y start)\n\ndefine Game - Setup\nset [player - y v] to [0]\nset [player - x v] to [0]\nset [player - x start v] to [-200]\nset [player - y start v] to [20]\nset rotation style [left-right v]\npoint in direction (90)\ngo to x: (Player - x start) y: (Player - y start)\ngo to [front v] layer\nswitch costume to (player v)\nshow\nset size to (85) %\nreset timer\n\nwhen I receive [tick - player v]\nGame - Collisions and Checking\nGame - Move x\nGame - Move y\n\ndefine Game - Move y\nswitch costume to (hitbox v)\nchange [player - y v] by (-1)\nrepeat (4)\n    if <touching (platforms v)?> then\n        change y by (1)\n    end\nend\nif <touching (platforms v)?> then\n    change y by (-4)\n    change x by ((Player - x) * (-1))\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>> then\n        if <(Player - x) > [0]> then\n            set [player - x v] to [-10]\n        else\n            set [player - x v] to [10]\n        end\n        set [player - y v] to [12]\n    else\n        set [player - x v] to [0]\n    end\nend\nchange y by (Player - y)\nif <touching (platforms v)?> then\n    if <(Player - y) > [0]> then\n        repeat until <not <touching (platforms v)?>>\n            change y by (-1)\n            set [player - y v] to [0]\n        end\n    else\n        repeat until <not <touching (platforms v)?>>\n            change y by (1)\n            set [player - y v] to [0]\n        end\n    end\nend\nchange y by (-1)\nif <<touching (platforms v)?> and <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>>> then\n    set [player - y v] to [12]\nend\nchange y by (1)\nswitch costume to (player v)\n\ndefine Game - Die\ngo to x: (Player - x start) y: (Player - y start)\nstart sound [Teleport2 v]\nGame - Reset x and y\n\ndefine Game - Next Level\ngo to x: (Player - x start) y: (Player - y start)\nchange [game - level v] by (1)\nGame - Reset x and y\n\nwhen flag clicked\nforever\n    if <touching (lava  v)?> then\n        Game - Die\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (spikes v)?> then\n        Game - Die\n    end\nend\n\n@platforms\n\nwhen I receive [tick - others v]\nGame - Set costume\n\ndefine Game - Set costume\nswitch costume to (Game - Level)\n\ndefine Game - Setup\ngo to x: (0) y: (0)\nshow\ngo to [back v] layer\n\nwhen I receive [game on! v]\nGame - Setup\n\nwhen flag clicked\nStart - Setup\n\ndefine Start - Setup\nhide\nset drag mode [not draggable v]\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@lava \n\ndefine Game - Set costume\nswitch costume to (Game - Level)\nset y to (([cos v] of ((timer) * (150)) ) * (7))\n\ndefine Game - Setup\ngo to [back v] layer\nshow\ngo to x: (0) y: (0)\n\ndefine Start - Setup\nhide\nset drag mode [not draggable v]\n\nwhen I receive [start - setup v]\nStart - Setup\n\nwhen I receive [tick - others v]\nGame - Set costume\n\nwhen I receive [game on! v]\nGame - Setup\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\n@spikes\n\ndefine Game - Set costume\nswitch costume to (Game - Level)\n\nwhen I receive [start - setup v]\nStart - Setup\n\nwhen I receive [tick - others v]\nGame - Set costume\n\ndefine Start - Setup\nhide\n\nwhen I receive [game on! v]\nGame - Setup\nset drag mode [not draggable v]\n\ndefine Game - Setup\ngo to x: (0) y: (0)\nshow\ngo to [back v] layer\n\nwhen flag clicked\nset [brightness v] effect to (-30)\nrepeat (8)\n    change [brightness v] effect by (-1)\nend\nforever\n    repeat (16)\n        change [brightness v] effect by (1)\n    end\n    repeat (16)\n        change [brightness v] effect by (-1)\n    end\nend\n\n@Thumbnail\n\nwhen flag clicked\ngo to [front v] layer\ngo to [front v] layer\nforever\n    show\n    switch costume to (kostüm1 v)\n    go to x: (0) y: (0)\n    set [ghost v] effect to (100)\n    go to [front v] layer\nend\n\n