Sunrise - A Platformer

Instructions: -------------------------------------------------------------------------\n                       ѕυηяιѕє α ρℓαтƒσямєя\n-------------------------------------------------------------------------\nFRONT PAGED ON 10.07.2021!!!\nTʜᴀɴᴋ ʏᴏᴜ ꜱᴏᴏ ᴍᴜᴄʜ @Yadesh123 ꜰᴏʀ ᴄᴜʀᴀᴛɪɴɢ ᴍʏ ᴘʀᴏᴊᴇᴄᴛ!      \n✎ INSTRUCTIONS:-\n⇒ Uꜱᴇ ᴛʜᴇ ᴀʀʀᴏᴡ ᴋᴇʏꜱ ᴛᴏ ᴏᴘᴇʀᴀᴛᴇ ᴛʜᴇ ᴘʟᴀʏᴇʀ ᴀɴᴅ \n    ʜᴇʟᴘ ɪᴛ ᴄʀᴏꜱꜱ ᴀʟʟ ᴛʜᴇ ʟᴇᴠᴇʟꜱ.\n⇒ Mᴀᴋᴇ ꜱᴜʀᴇ ʏᴏᴜ ᴅᴏɴ'ᴛ ᴛᴏᴜᴄʜ ᴛʜᴇ ᴅᴀɴɢᴇʀ! Bᴇᴡᴀʀᴇ!\n⇒ Eɴᴊᴏʏ Sᴜɴʀɪꜱᴇ!\n ------------------------------------------------------------------------\n✎Cʀᴇᴅɪᴛs:-\n⨀ Cᴏᴅᴇ - ʙʏ ᴍᴇ\n⨀ Aʀᴛ - ʙʏ ᴍᴇ\n⨀  Sᴘʀɪᴛᴇꜱ - ꜰᴇᴡ ꜰʀᴏᴍ Gᴏᴏɢʟᴇ \n⨀  Mᴜꜱɪᴄ - Bᴇɴꜱᴏᴜɴᴅᴢ\n⨀ Tʜᴀɴᴋꜱ ᴛᴏ Cᴀɴᴠᴀ ꜰᴏʀ ᴛʜᴇ ꜰᴏɴᴛꜱ.\n------------------------------------------------------------------------\n✂¦ Tᴀɢꜱ :-\nsunrise#platformer#fun#creative#easy#all#\n------------------------------------------------------------------------\nMᴀᴋᴇ ꜱᴜʀᴇ ʏᴏᴜ ʟᴇᴀᴠᴇ ᴀ ʟᴏᴠᴇ ᴀɴᴅ ꜰᴀᴠ ɪꜰ ʏᴏᴜ ʟɪᴋᴇ ɪᴛ!\n-------------------------------------------------------------------------\nTʜᴀɴᴋ Yᴏᴜ!

@Stage\n\nwhen flag clicked\nforever\n    if <([costume # v] of [platform v]) = [10]> then\n        broadcast (Game Over v) and wait\n    end\nend\n\nwhen backdrop switches to [game over v]\nbroadcast (hide v)\nstop [all v]\n\nwhen I receive [game over v]\nswitch backdrop to (game over v) and wait\n\nwhen flag clicked\nswitch backdrop to (fp v)\n\nwhen flag clicked\nforever\n    play sound [Bg Music v] until done\nend\n\n@Player\n\nwhen I receive [tick v]\nHandle y\nHandle x\n\nwhen I receive [next level v]\nset x to (-185)\n\nwhen I receive [hide v]\nhide\n\ndefine Handle y\nchange y by (speed y)\nif <touching (platform v)?> then\n    if <(speed y) > [0]> then\n        repeat until <not <touching (platform v)?>>\n            change y by (-1)\n        end\n        set [speed y v] to [0]\n    end\n    if <(speed y) < [0]> then\n        set [on the ground v] to [TRUE]\n        repeat until <not <touching (platform v)?>>\n            change y by (1)\n        end\n        set [speed y v] to [0]\n    end\nelse\n    set [on the ground v] to [FALSE]\nend\nchange [speed y v] by (-2)\n\ndefine Handle x\nchange x by (speed x)\nif <touching (platform v)?> then\n    if <(speed x) > [0]> then\n        repeat until <not <touching (platform v)?>>\n            change x by (-1)\n        end\n        set [speed x v] to [0]\n    end\n    if <(speed x) < [0]> then\n        repeat until <not <touching (platform v)?>>\n            change x by (1)\n        end\n        set [speed x v] to [0]\n    end\nend\nif <(speed x) > [0]> then\n    change [speed x v] by (-1)\nend\nif <(speed x) < [0]> then\n    change [speed x v] by (1)\nend\n\nwhen backdrop switches to [game play v]\nshow\ngo to x: (-185) y: (-43)\nset [on the ground v] to [TRUE]\nset [speed x v] to [0]\nset [speed y v] to [0]\nforever\n    if <touching (danger v)?> then\n        repeat (5)\n            set [ghost v] effect to (100)\n            wait (0.1) seconds\n            set [ghost v] effect to (0)\n            wait (0.1) seconds\n        end\n        show\n        set x to (-185)\n    end\n    if <touching (right edge v)?> then\n        broadcast (next level v) and wait\n    end\n    if <key (left arrow v) pressed?> then\n        set [speed x v] to [-7]\n    end\n    if <key (right arrow v) pressed?> then\n        set [speed x v] to [7]\n    end\n    if <mouse down?> then\n        if <(mouse x) > [0]> then\n            set [speed x v] to [7]\n        end\n    end\n    if <mouse down?> then\n        if <[0] > (mouse x)> then\n            set [speed x v] to [-7]\n        end\n    end\n    if <<key (up arrow v) pressed?> and <(on the ground) = [TRUE]>> then\n        set [speed y v] to [25]\n    end\n    if <mouse down?> then\n        if <(mouse y) > [-100]> then\n            if <(on the ground) = [TRUE]> then\n                set [speed y v] to [25]\n            end\n        end\n    end\nend\n\nwhen backdrop switches to [game play v]\nshow\nset [speed y v] to [0]\ngo to [front v] layer\nforever\n    broadcast (tick v) and wait\nend\n\nwhen backdrop switches to [front page v]\nhide\n\nwhen flag clicked\nswitch backdrop to (game play v)\n\nwhen backdrop switches to [fp v]\nhide\n\nwhen backdrop switches to [game play v]\nshow\n\n@Platform\n\nwhen I receive [next level v]\nnext costume\n\nwhen I receive [hide v]\nhide\n\nwhen backdrop switches to [game play v]\nshow\nswitch costume to (level 1 v)\ngo to x: (0) y: (0)\n\nwhen backdrop switches to [fp v]\nhide\n\n@Danger\n\nwhen I receive [next level v]\nnext costume\n\nwhen I receive [hide v]\nhide\n\nwhen backdrop switches to [game play v]\nshow\nswitch costume to (level 1 v)\ngo to [front v] layer\n\nwhen backdrop switches to [fp v]\nhide\n\n@Decorations\n\nwhen I receive [hide v]\nhide\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\n\nwhen backdrop switches to [game play v]\ngo to [front v] layer\nshow\n\nwhen backdrop switches to [fp v]\nhide\n\n@right edge\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\n\nwhen I receive [game over v]\nhide\n\nwhen backdrop switches to [game play v]\nshow\n\nwhen backdrop switches to [fp v]\nhide\n\nwhen flag clicked\nforever\n    if <touching (birds v)?> then\n        broadcast (new v) and wait\n    end\nend\n\n@Play\n\nwhen flag clicked\nset size to (100) %\ngo to x: (-14) y: (-22)\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (85) %\n        set [ghost v] effect to (30)\n    else\n        set size to (100) %\n        set [ghost v] effect to (-10)\n    end\nend\n\nwhen this sprite clicked\nswitch backdrop to (game play v)\n\nwhen backdrop switches to [fp v]\nshow\n\nwhen backdrop switches to [game play v]\nhide\n\n@Thumbnail\n\nwhen flag clicked\ngo to [front v] layer\nset [ghost v] effect to (100)\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.01)\nhide variable [my variable v]\nhide variable [ᴇʀᴀꜱᴇʀ ꜱɪᴢᴇ v]\nshow\ngo to [front v] layer\nset [brightness v] effect to (100)\nset [ghost v] effect to (100)\nrepeat (20)\n    change [brightness v] effect by (-5)\n    change [ghost v] effect by (-5)\nend\n\n@Birds\n\nwhen flag clicked\nset size to (75) %\ngo to x: (-207) y: (123)\nset [move bird v] to [4]\nhide\n\nwhen backdrop switches to [game play v]\nshow\nforever\n    move (move bird) steps\n    wait (0.1) seconds\n    next costume\nend\n\nwhen I receive [new v]\ngo to x: (-300) y: (126)\n\nwhen backdrop switches to [game over v]\nhide\n\nwhen backdrop switches to [fp v]\nhide\n\n