Hammy: A Platformer

Instructions: Use arrow keys to move Hammy!\nAll levels are possible!\nPlease tell me about any glitches!\n\nAnother Platformer made by me:\nhttps://scratch.mit.edu/projects/195670039/

@Stage\n\nwhen flag clicked\nswitch backdrop to (start v)\nplay sound [Morning - Animal Crossing Pocket Camp Music.mp3 v] until done\n\n@Hammy\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\ngo to x: (-200) y: (-50)\nswitch backdrop to (entry v)\nshow variable [deaths: v]\nshow variable [☁ world deaths v]\nhide variable [y v]\nhide variable [x v]\nset [deaths: v] to [0]\nset [y v] to [0]\nset [x v] to [0]\nset [deaths: v] to [0]\nforever\n    change [y v] by (-0.5)\n    if <<key (d v) pressed?> or <key (right arrow v) pressed?>> then\n        switch costume to (costume1 v)\n        change [x v] by (0.75)\n    end\n    if <<key (a v) pressed?> or <key (left arrow v) pressed?>> then\n        switch costume to (costume2 v)\n        change [x v] by (-0.75)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching color (#e4d3ae)?> then\n        change y by (1)\n        if <touching color (#e4d3ae)?> then\n            change y by (1)\n            if <touching color (#e4d3ae)?> then\n                change y by (1)\n                if <touching color (#e4d3ae)?> then\n                    change y by (1)\n                    if <touching color (#e4d3ae)?> then\n                        change y by (1)\n                        if <touching color (#e4d3ae)?> then\n                            change y by (1)\n                            if <touching color (#e4d3ae)?> then\n                                change y by (-5)\n                                change x by ((x) * (-1))\n                                if <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n                                    set [y v] to [10]\n                                    if <(x) > [0]> then\n                                        set [x v] to [-10]\n                                    else\n                                        set [x v] to [10]\n                                    end\n                                else\n                                    set [x v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (y)\n    if <touching color (#e4d3ae)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-0.5)\n    if <<touching color (#e4d3ae)?> and <<key (w v) pressed?> or <key (up arrow v) pressed?>>> then\n        set [y v] to [10]\n    end\n    change y by (0.5)\n    if <touching color (#c3a086)?> then\n        go to x: (-200) y: (-50)\n        change [deaths: v] by (1)\n        change [☁ world deaths v] by (1)\n    end\n    if <(x) > [215]> then\n        switch backdrop to (next backdrop v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (next level v)?> then\n        switch backdrop to (next backdrop v)\n        go to x: (-200) y: (-50)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ffcccc)?> then\n        change [y v] by (0.5)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#c7e1a6)?> then\n        change [y v] by (0.48)\n    end\nend\n\n@next level\n\nwhen flag clicked\nshow\ngo to x: (4) y: (-41)\n\n@Thumb\n\nwhen flag clicked\ngo to [front v] layer\nset [ghost v] effect to (100)\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\ngo to [front v] layer\nshow\ngo to [front v] layer\n\n