Halloween platformer

Instructions:                       ~ HAPPY HALLOWEEN ! ~\n\n----------------------------------------------------------------------------\n                             - INSTRUTIONS -\n\n- This new game is for PC and MOBILE !\n- Arrows keys to move.\n- Avoid peaks, holes, finish all levels to win !\n\n                                 - NOTES -\nDon’t forget to ❤️ and ⭐️ this project !

@Stage\n\nwhen flag clicked\nswitch backdrop to (backgourd 1 v)\n\nwhen I receive [play 1 v]\nswitch backdrop to (arrière-plan1 v)\n\nwhen flag clicked\nforever\n    play sound [Lost In The Woods - PaulRHJT v] until done\nend\n\n@Player\n\nwhen flag clicked\nhide\nswitch backdrop to (background v)\ngo to [back v] layer\nclear graphic effects\nswitch costume to (1 v)\n\ndefine Reset || New Level\nclear graphic effects\npoint in direction (90)\ngo to x: (-201) y: (30)\nswitch costume to (1 v)\nset [dead v] to [0]\nset [x v] to [0]\nset [y v] to [0]\nset size to (20) %\nshow\n\ndefine Dead\nset [dead v] to [1]\nrepeat (25)\n    change [ghost v] effect by (4)\nend\nReset || New Level\n\nwhen I start as a clone\nswitch costume to (3 v)\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-1.5)\nend\ndelete this clone\n\nwhen I receive [play 1 v]\nshow\nset [level v] to [1]\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I receive [play 1 v]\nshow\nforever\n    if <<[240] < (x position)> and <(Dead) = [0]>> then\n        broadcast (NAXT LEVEL v)\n        change [level v] by (1)\n        Reset || New Level\n    end\nend\n\nwhen I receive [play 1 v]\nshow\nhide variable [x v]\nhide variable [dead v]\nhide variable [level v]\nhide variable [y v]\nset [dead v] to [0]\nset [level v] to [1]\ngo to [front v] layer\nset size to (20) %\nReset || New Level\nforever\n    go to [front v] layer\n    if <<<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> and <(Dead) = [0]>> then\n        switch costume to (1 v)\n        change [x v] by (1)\n    end\n    if <<<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> and <(Dead) = [0]>> then\n        switch costume to (2 v)\n        change [x v] by (-1)\n    end\n    set [x v] to ((X) * (.9))\n    change x by (X)\n    if <touching (ground v)?> then\n        change y by (2)\n        if <touching (ground v)?> then\n            change y by (2)\n        end\n        if <touching (ground v)?> then\n            change y by (2)\n            if <touching (ground v)?> then\n                change y by (2)\n                if <touching (ground v)?> then\n                    change y by (2)\n                    if <touching (ground v)?> then\n                        change x by ((X) * (-2))\n                        change y by (-5)\n                        if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (10))>>>> then\n                            if <(X) > [0]> then\n                                set [x v] to [-5]\n                            else\n                                set [x v] to [5]\n                            end\n                            set [y v] to [13]\n                        else\n                            set [x v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [y v] by (-0.8)\n    change y by (Y)\n    if <touching (ground v)?> then\n        change y by ((Y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <touching (ground v)?> then\n        if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (10))>>>> then\n            set [y v] to [12]\n        end\n    end\n    change y by (1)\n    if <<touching (spikes v)?> or > then\n        Dead\n    end\n    if <(y position) < [-180]> then\n        Dead\n    end\n    if <touching (bouncy v)?> then\n        start sound [Jump v]\n        set [y v] to [15]\n    end\n    if <key (space v) pressed?> then\n        broadcast (Shoot v)\n        wait until <not <key (space v) pressed?>>\n    end\nend\n\n@Light\n\nwhen flag clicked\nhide\ngo to [back v] layer\ngo to x: (259) y: (174)\nshow\nset size to (100) %\ngo to [back v] layer\nforever\n    repeat (50)\n        change size by (((200) - (size)) / (15))\n    end\n    repeat (50)\n        change size by (((size) - (150)) / (-15))\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [play 1 v]\nshow\nswitch costume to (costume1 v)\nset size to (200) %\nshow\nforever\n    go [backward v] (1) layers\n    go to (player v)\nend\n\n@ground\n\nwhen I receive [play 1 v]\nforever\n    show\n    switch costume to (LEVEL)\nend\n\nwhen flag clicked\nhide\n\n@Lutin\n\nwhen I start as a clone\nswitch costume to (costume1 v)\nshow\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\ngo to x: (pick random (230) to (-230)) y: (-180)\npoint in direction (0)\nrepeat (pick random (10) to (5))\n    move (1) steps\n    repeat (pick random (1) to (10))\n        move (1) steps\n        turn right (2) degrees\n    end\n    repeat (pick random (1) to (10))\n        move (1) steps\n        turn right (-2) degrees\n    end\nend\nrepeat (10)\n    move (1) steps\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen flag clicked\nswitch costume to (costume2 v)\ngo to [front v] layer\ngo [backward v] (5) layers\nhide\ngo to x: (-300) y: (-300)\nforever\n    create clone of (_myself_ v)\n    wait ((pick random (5) to (10)) / (10)) seconds\nend\n\n@ecriture\n\nwhen flag clicked\nshow\nset [ghost v] effect to (0)\nswitch costume to (costume1 v)\nwait (4) seconds\nrepeat (11)\n    change [ghost v] effect by (10)\nend\nwait (0.5) seconds\nchange [ghost v] effect by (-5)\nset [ghost v] effect to (0)\nswitch costume to (costume2 v)\nwait (5) seconds\nrepeat (11)\n    change [ghost v] effect by (10)\nend\nwait (0.5) seconds\nchange [ghost v] effect by (-5)\nset [ghost v] effect to (0)\nswitch costume to (costume3 v)\nwait (3) seconds\nrepeat (11)\n    change [ghost v] effect by (10)\nend\nhide\nbroadcast (play 1 v)\n\n@fog\n\nwhen I start as a clone\ngo to [front v] layer\ngo to x: (400) y: (0)\nrepeat until <(x position) = [0]>\n    change x by (-1)\nend\ncreate clone of (_myself_ v)\nrepeat until <(x position) = [-460]>\n    change x by (-1)\nend\ndelete this clone\n\nwhen flag clicked\nset [brightness v] effect to (-100)\n\nwhen I receive [play 1 v]\nhide\ngo to [front v] layer\nshow\ngo to x: (0) y: (0)\ncreate clone of (_myself_ v)\nrepeat until <(x position) = [-460]>\n    change x by (-1)\nend\nhide\n\nwhen flag clicked\nshow\n\n@Clouds\n\nwhen I start as a clone\nset [ghost v] effect to (pick random (5) to (15))\nswitch costume to (pick random (1) to (2))\nset size to (pick random (60) to (80)) %\ngo [backward v] (10000000) layers\nshow\ngo to x: (-290) y: (pick random (100) to (20))\nrepeat until <[290] < (x position)>\n    change x by (2)\nend\ndelete this clone\n\nwhen I receive [play 1 v]\nhide\ngo [backward v] (10000000) layers\nforever\n    repeat (pick random (5) to (6))\n        create clone of (_myself_ v)\n        wait (pick random (2) to (4)) seconds\n    end\n    wait (pick random (1) to (3)) seconds\nend\n\n@spikes\n\nwhen flag clicked\nhide\n\nwhen I receive [play 1 v]\nshow\nforever\n    switch costume to (LEVEL)\n    go to [back v] layer\nend\n\n@Sprite1\n\nwhen flag clicked\nhide\n\nwhen I receive [play 1 v]\nshow\nforever\n    switch costume to (LEVEL)\nend\n\n@Sprite2\n\n@Sprite3\n\nwhen flag clicked\nforever\n    hide\nend\n\n