cheesy puff-a platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [lll v]\nnext backdrop\n\n@Cheesy puffs\n\nhide variable [xv v]\nhide variable [yv v]\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\ngo to x: (-206) y: (-99)\nset [xv v] to [0]\nset [yv v] to [0]\nset [level v] to [1]\nforever\n    change [yv v] by (-1)\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (1)\n        switch costume to (costume1 v)\n    end\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-1)\n        switch costume to (costume2 v)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching color (#ffe600)?> then\n        change y by (1)\n        if <touching color (#ffe600)?> then\n            change y by (1)\n            if <touching color (#ffe600)?> then\n                change y by (1)\n                if <touching color (#ffe600)?> then\n                    change y by (1)\n                    if <touching color (#ffe600)?> then\n                        change y by (1)\n                        if <touching color (#ffe600)?> then\n                            change y by (1)\n                            change y by (-5)\n                            if <key (up arrow v) pressed?> then\n                                set [yv v] to [15]\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-10]\n                                else\n                                    set [xv v] to [10]\n                                end\n                            else\n                                change x by ((Xv) * (-1))\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (Yv)\n    if <touching color (#ffe600)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#ffe600)?> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [15]\n        end\n    end\n    change y by (1)\n    if <<touching color (#ff0000)?> or <touching color (#ff4343)?>> then\n        go to x: (-206) y: (-99)\n    end\n    if <(x position) > [243]> then\n        go to x: (-206) y: (-99)\n        broadcast (lll v)\n    end\n    if <touching color (#000fff)?> then\n        set [yv v] to [20]\n    end\n    if <(y position) < [-198]> then\n        go to x: (-206) y: (-99)\n    end\n    if <key (s v) pressed?> then\n        broadcast (lll v)\n        go to x: (-206) y: (-99)\n        wait (1) seconds\n    end\nend\n\n@Sprite1\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\n\n
sorry I can't work on this game because school has started:(\nuse arrow keys\ns key to skip\nwill not add more levels\n\n10/10/19: deleted words and added a levels