The Pound // A Mobile-Friendly Platformer

Instructions: This is the last platformer in the Mobile-Friendly Platformer series!\n\nControls - \nMobile - Tap or swipe\nComputer - Arrow keys\nPress S to skip a level\n\nYou know where Kitty is, so save her! :3 Don't waste any time reading this :P

@Stage\n\n@Player\n\nwhen flag clicked\ngo to [front v] layer\nbroadcast (Start v)\ngo to x: (0) y: (0)\nshow\n\nwhen I receive [start v]\nshow\nswitch costume to (costume1 v)\npoint in direction (90)\nset [xvel v] to [0]\nset [yvel v] to [0]\nforever\n    set rotation style [left-right v]\n    if <<<mouse down?> and <(x position) > (mouse x)>> or <key (left arrow v) pressed?>> then\n        change [xv v] by (-1)\n    end\n    if <<<mouse down?> and <(x position) < (mouse x)>> or <key (right arrow v) pressed?>> then\n        change [xv v] by (1)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching color (#a23f3f)?> then\n        change y by (1)\n        if <touching color (#a23f3f)?> then\n            change y by (1)\n            if <touching color (#a23f3f)?> then\n                change y by (1)\n                if <touching color (#a23f3f)?> then\n                    change y by (1)\n                    if <touching color (#a23f3f)?> then\n                        change y by (1)\n                        if <touching color (#a23f3f)?> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <<<mouse down?> and <(y position) < (mouse y)>> or <key (up arrow v) pressed?>> then\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-7]\n                                else\n                                    set [xv v] to [7]\n                                end\n                                set [yv v] to [10]\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (-1)\n    if <touching color (#a23f3f)?> then\n        if <<<mouse down?> and <(y position) < (mouse y)>> or <key (up arrow v) pressed?>> then\n            set [yv v] to [15]\n        end\n    end\n    change y by (1)\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <touching color (#a23f3f)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    hide variable [xv v]\n    if <(x position) > [230]> then\n        broadcast (next level v)\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        set [yv v] to [0]\n        set [xv v] to [0]\n        go to x: (-200) y: (-40)\n        set [ghost v] effect to (0)\n    end\n    if <(y position) < [-158]> then\n        go to x: (-200) y: (80)\n    end\n    if <<touching color (#ffe8c8)?> or <<touching color (#ffffff)?> or <touching color (#bbd2a4)?>>> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        set [yv v] to [0]\n        set [xv v] to [0]\n        go to x: (-200) y: (-40)\n        set [ghost v] effect to (0)\n    end\n    if <touching color (#f6ff63)?> then\n        set [yv v] to [21]\n    end\n    set [xv v] to (Xv)\nend\n\nwhen I receive [kitty v]\nswitch costume to (costume2 v)\n\nwhen flag clicked\nforever\n    play sound [Theme Song v] until done\nend\n\nwhen I receive [end v]\nhide\n\n@Platforms\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nnext costume\nif <(costume [number v]) = [11]> then\n    broadcast (kitty v)\nend\nif <(costume [number v]) = [14]> then\n    broadcast (end v)\nend\n\nwhen [s v] key pressed\nbroadcast (next level v)\n\n@Thumbnail\n\nwhen flag clicked\nhide\n\n