~Upside Down - a platformer~ #games

Instructions: WASD Space and arrow keys to move.\nTouch controlls for mobile.\n\nMake a breakfast to win.\n\nThere are 13 levels currently.

@Stage\n\nwhen flag clicked\nforever\n    play sound [ Theme v] until done\nend\n\n@Jelly\n\nwhen I start as a clone\nset size to (25) %\nrepeat (7)\n    change [ghost v] effect by (14)\n    change size by (-3)\nend\ndelete this clone\n\nwhen this sprite clicked\n\nwhen flag clicked\ngo to x: (-185) y: (-65)\npoint in direction (90)\nset rotation style [left-right v]\nset size to (20) %\nswitch backdrop to (1 v)\nswitch costume to (orange v)\nshow\nset [x velocity v] to [0]\nset [y velocity v] to [0]\nforever\n    change [y velocity v] by (-0.5)\n    if <<<key (d v) pressed?> or <key (right arrow v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [x velocity v] by (.75)\n        point in direction (90)\n    end\n    if <<<key (a v) pressed?> or <key (left arrow v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [x velocity v] by (-.75)\n        point in direction (-90)\n    end\n    set [x velocity v] to ((X Velocity) * (0.9))\n    change x by (X Velocity)\n    if <touching (level v)?> then\n        change y by (1)\n        if <touching (level v)?> then\n            change y by (1)\n            if <touching (level v)?> then\n                change y by (1)\n                if <touching (level v)?> then\n                    change y by (1)\n                    if <touching (level v)?> then\n                        change y by (1)\n                        if <touching (level v)?> then\n                            change x by ((X Velocity) * (-1))\n                            change x by (-.8)\n                            change y by (-5)\n                            change x by (.8)\n                            if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n                                if <(X Velocity) > [0]> then\n                                    set [x velocity v] to [-2]\n                                else\n                                    set [x velocity v] to [2]\n                                end\n                                set [y velocity v] to [8]\n                            else\n                                set [x velocity v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (Y Velocity)\n    if <touching (level v)?> then\n        change y by ((Y Velocity) * (-1))\n        set [y velocity v] to [0]\n    end\n    change y by (-1)\n    if <touching (level v)?> then\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            set [y velocity v] to [8]\n        end\n    end\n    change y by (1)\nend\n\nwhen flag clicked\nforever\n    if <[230] < (x position)> then\n        change [level v] by (1)\n        broadcast (next lvl v)\n        set x to (-220)\n    end\nend\n\nwhen flag clicked\nset [atrail v] to [Yes]\nset size to (20) %\nforever\n    if <(aTrail) = [Yes]> then\n        create clone of (_myself_ v)\n    end\nend\n\nnext costume\nif <(costume [name v]) = [Hitbox]> then\n    switch costume to (red v)\nend\n\nset [atrail v] to [Yes]\n\nset [atrail v] to [No]\n\n@Level\n\nwhen flag clicked\nset [level v] to [1]\nswitch costume to (1 v)\n\nwhen I receive [next lvl v]\nnext backdrop\n\nwhen I receive [next lvl v]\nswitch costume to (Level)\n\n@Thumbnail!\n\nwhen flag clicked\nshow\ngo to [front v] layer\nswitch costume to (costume1 v)\nwait (.1) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nhide\nclear graphic effects\n\n@Trail toggle\n\nwhen flag clicked\ngo to x: (204) y: (-146)\nswitch costume to (yes v)\nwait (.3) seconds\nshow\n\nwhen this sprite clicked\nif <(aTrail) = [Yes]> then\n    set [atrail v] to [No]\n    switch costume to (no v)\nelse\n    if <(aTrail) = [No]> then\n        set [atrail v] to [Yes]\n        switch costume to (yes v)\n    end\nend\n\n@Scratch Icons\n\n