Night - A Platformer

Instructions: Instructions:\n❁Press the green flag\n❁Press S to skip\n\n⭒☆ ————  ⋇⋆✦⋆⋇  ———— ☆⭒\n\n❃Here is another platformer: \nhttps://scratch.mit.edu/projects/404022417/\n\n⭒☆ ————  ⋇⋆✦⋆⋇  ———— ☆⭒\n\n❃Please Credit me For the art and \n   @RobloxCount999_tutor for the Music and Coding if \n   Remixed :D\n\n❃Dedicated to: @Mikki_Chikki (she loves blueberries) \n   :D :D :D ^^ <3\n

@Stage\n\nwhen flag clicked\nforever\n    play sound [the piano moosic v] until done\nend\n\nwhen flag clicked\nforever\n    wait (0.8) seconds\n    next backdrop\nend\n\n@Ground\n\nwhen [s v] key pressed\nnext costume\n\nwhen flag clicked\ngo to [front v] layer\nhide\n\nwhen I receive [play v]\nshow\nswitch costume to (01 v)\n\nwhen I receive [levelup v]\nnext costume\n\nwhen I receive [end v]\nhide\n\n@Player\n\nwhen [space v] key pressed\nnext costume\n\nwhen I receive [play v]\ngo to [front v] layer\nswitch costume to (costume2 v)\nset [ghost v] effect to (0)\nshow\ngo to x: (-180) y: (-50)\nset [level v] to [1]\nset [x v] to [0]\nset [y v] to [0]\npoint in direction (90)\nforever\n    change [y v] by (-1)\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(x position) > (mouse x)>>> then\n        change [x v] by (-0.8)\n        switch costume to (costume1 v)\n    end\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        switch costume to (costume2 v)\n        change [x v] by (0.8)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            set [y v] to [10]\n            if <([abs v] of (x) ) = (x)> then\n                set [x v] to [-5]\n            else\n                set [x v] to [5]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <touching (ground v)?> then\n        change y by ((0) - (y))\n        set [y v] to [1]\n    end\n    change y by (-1)\n    if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> and <touching (ground v)?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <(y position) > [180]> then\n        set [y v] to [0]\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset [level v] to [1]\nforever\n    if <<key (b v) pressed?> or <touching (spikes v)?>> then\n        go to x: (-180) y: (-50)\n        broadcast (dead v)\n    end\n    if <(x position) > [223]> then\n        go to x: (-180) y: (-50)\n        broadcast (levelup v)\n        change [level v] by (1)\n    end\n    if <(Level) = [15]> then\n        broadcast (end v)\n        stop [other scripts in sprite v]\n    end\nend\n\nwhen [left arrow v] key pressed\nswitch costume to (costume1 v)\n\nwhen [right arrow v] key pressed\nswitch costume to (costume2 v)\n\nwhen [d v] key pressed\nswitch costume to (costume4 v)\n\nwhen [a v] key pressed\nswitch costume to (costume2 v)\n\nwhen flag clicked\nif <touching (_edge_ v)?> then\n    next backdrop\nend\n\nwhen I receive [levelup v]\nif <key (right arrow v) pressed?> then\n    next backdrop\nend\n\nwhen flag clicked\nbroadcast (levelup v)\nif <touching (_edge_ v)?> then\n    next backdrop\nend\n\nwhen I receive [levelup v]\nswitch backdrop to (next backdrop v)\n\nbroadcast (levelup v)\n\n@Thumbnail\n\nwhen flag clicked\nset size to (100) %\nshow\nwait (1.5) seconds\nbroadcast (play v)\nrepeat (10)\n    change [ghost v] effect by (12)\nend\nhide\n\nwhen flag clicked\nif <touching (_edge_ v)?> then\n    next costume\nend\n\n@Spikes\n\nwhen [s v] key pressed\nnext costume\n\nwhen flag clicked\nif <touching (_edge_ v)?> then\n    next costume\nend\n\nwhen I receive [levelup v]\nnext costume\n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\ngo to [front v] layer\nshow\nswitch costume to (01 v)\n\n