Bunny Platformer

Instructions: \n▶︎ Hello everyone! Welcome to Bunny Platformer! \n↳ I am super happy that I got the idea to make this game, because in my opinion it looks pretty good! :D\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n             \n                                   INSTRUCTIONS:\n▶︎ Start this game by smashing the green flag!\n▶︎ Use arrow keys as controls (I am sorry to the people who are comfortable with WASD )\n▶︎ The goal in this game is to get to the end of the platformer, and find the golden carrot! :D\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n                                      \n                                       Credits:\n▶︎ Thanks to @ShiftClickLearn for his YouTube tutorial! Check it out here ꜜ\nhttps://www.youtube.com/watch?v=m0dX1LYTeGI&t=0s\n\n▶︎ rest of code/art/everything is by me :D\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\n        Thank you everyone for viewing this project :D\n ▶︎ If you like it please consider leaving an heart or a star!\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\n@--DoodlesDay-- is signing out.....................\n\nThanks and bye!\n\n\n

@Stage\n\nwhen flag clicked\nforever\n    play sound [Flute music v] until done\nend\n\nwhen flag clicked\nforever\n    play sound [Rain v] until done\nend\n\n@player\n\nwhen flag clicked\nset [level v] to [1]\nbroadcast (next level v)\nforever\n    movement\n    if <(x position) > [234]> then\n        change [level v] by (1)\n        broadcast (next level v) and wait\n    end\n    if <touching (obstacles v)?> then\n        broadcast (next level v)\n        show\n    end\nend\n\ndefine movement\nset [xinput v] to (<key (right arrow v) pressed?> - <key (left arrow v) pressed?>)\nchange [xspeed v] by ((Xinput) * (2))\nset [xspeed v] to ((xSpeed) * (0.8))\nchange [yspeed v] by (-2)\nchange y by (ySpeed)\nif <(ySpeed) < [0]> then\n    repeat until <not <touching (ground v)?>>\n        change y by (1)\n        set [yspeed v] to [0]\n        set [can jump v] to [true]\n    end\nelse\n    repeat until <not <touching (ground v)?>>\n        change y by (-1)\n        set [yspeed v] to [0]\n        set [can jump v] to [false]\n    end\nend\nchange x by (xSpeed)\nif <<key (up arrow v) pressed?> and <(can jump) = [true]>> then\n    set [yspeed v] to [20]\n    set [can jump v] to [false]\nend\nset [slope v] to [0]\nrepeat until <<(slope) = [8]> or <not <touching (ground v)?>>>\n    change [slope v] by (1)\n    change y by (1)\nend\nif <(slope) = [8]> then\n    change x by ((xSpeed) * (-1))\n    change y by ((slope) * (-1))\n    set [xspeed v] to [0]\nend\n\nwhen I receive [next level v]\nset [yspeed v] to [0]\nset [xspeed v] to [0]\nset x to (-208)\npoint in direction (90)\ngo to [front v] layer\n\nwhen flag clicked\nforever\n    if <(y position) < [-171]> then\n        go to x: (-212) y: (-94)\n    end\nend\n\ndefine lose\nset [ghost v] effect to (100)\n\nwhen flag clicked\nshow\n\n@ground\n\nwhen I receive [next level v]\nswitch costume to (level)\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen flag clicked\nshow\ngo to x: (36) y: (28)\n\ngo to x: (0) y: (0)\n\nwhen flag clicked\nshow\n\n@obstacles\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\n\nwhen I receive [next level v]\nswitch costume to (level)\n\nwhen flag clicked\nshow\n\n@thumbnail\n\nwhen flag clicked\nshow\ngo to [front v] layer\nhide\n\n