Marshmallow's Mission- A Platformer
@Stage\n\nwhen flag clicked\nset [haspressedspacekey v] to [no]\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [next v]\nnext backdrop\n\nwhen flag clicked\nset [level v] to [0]\n\nwhen flag clicked\nforever\n    set [level v] to (backdrop [number v])\nend\n\nwhen [space v] key pressed\nif <(HasPressedSpaceKey) = [Yes]> then\n    set [haspressedspacekey v] to [no]\n    show variable [how many times i have been dipped in hot sauce: v]\nelse\n    set [haspressedspacekey v] to [yes]\n    hide variable [how many times i have been dipped in hot sauce: v]\nend\n\nwhen I receive [game has started v]\nswitch backdrop to (backdrop12 v)\n\nwhen flag clicked\nforever\n    if <(Level) = [11]> then\n        wait (5) seconds\n        next backdrop\n        broadcast (Animation v)\n    end\nend\n\n@Sprite1\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    if <(Begin) = [no]> then\n        show\n    else\n        hide\n    end\nend\n\n@Player\n\nwhen flag clicked\nset [toasted v] to [no]\nswitch costume to (costume1 v)\ngo to x: (-215) y: (-40)\nhide\n\nwhen flag clicked\nset [xv v] to [0]\nset [yv v] to [0]\nset [how many times i have been dipped in hot sauce: v] to [0]\n\nwhen flag clicked\nforever\n    if <(Begin) = [yes]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (sprite2 v)?> then\n        go to x: (-215) y: (-40)\n        broadcast (Next v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#e6e6e6)?> then\n        set [yv v] to [20]\n    end\n    if <touching color (#ff5a10)?> then\n        go to x: (-215) y: (-40)\n        change [how many times i have been dipped in hot sauce: v] by (1)\n    end\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (1)\n    end\n    if <key (left 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 (#91d872)?> then\n        change y by (1)\n        if <touching color (#91d872)?> then\n            change y by (1)\n            if <touching color (#91d872)?> then\n                change y by (1)\n                if <touching color (#91d872)?> then\n                    change y by (1)\n                    if <touching color (#91d872)?> then\n                        change y by (1)\n                        if <touching color (#91d872)?> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <key (up arrow v) pressed?> then\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-4]\n                                else\n                                    set [xv v] to [4]\n                                end\n                                set [yv v] to [9]\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <touching color (#91d872)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#91d872)?> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [15]\n        end\n    end\n    change y by (1)\nend\n\nwhen I receive [game has started v]\nswitch costume to (costume2 v)\nrepeat until <(Toasted) = [yes]>\n    go to (mouse-pointer v)\nend\n\nwhen I receive [game has started v]\nrepeat (10)\n    change [color v] effect by (2)\n    change [brightness v] effect by (-0.3)\n    wait (0.3) seconds\nend\nset [toasted v] to [yes]\n\nwhen flag clicked\nforever\n    if <(Level) = [11]> then\n        wait (5) seconds\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [12]> then\n        hide\n    end\nend\n\n@Yes Button\n\nwhen this sprite clicked\nhide\nset [begin v] to [yes]\n\nwhen flag clicked\nset [begin v] to [no]\nshow\ngo to x: (-38) y: (-69)\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (25) %\n    else\n        set size to (20) %\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\ngo to x: (220) y: (-95)\nhide\n\nwhen flag clicked\nforever\n    if <(Begin) = [yes]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    forever\n        switch costume to (costume1 v)\n        wait (0.1) seconds\n        switch costume to (costume2 v)\n        wait (0.1) seconds\n        switch costume to (costume3 v)\n        wait (0.1) seconds\n        switch costume to (costume4 v)\n        wait (0.1) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(Level) = [11]> or <(Level) = [12]>> then\n        hide\n        go to x: (300) y: (300)\n    end\nend\n\n@Animation\n\nwhen I receive [animation v]\nshow\nglide (1) secs to x: (25) y: (-86)\nrepeat (4)\n    wait (0.35) seconds\n    next costume\nend\ngo to x: (145) y: (22)\nwait (0.4) seconds\nnext costume\nwait (0.4) seconds\nnext costume\nwait (0.4) seconds\nnext costume\nwait (0.4) seconds\nsay [Wow! Look at me! I am a smore, just like I always wanted to be!] for (2) seconds\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to x: (-111) y: (-79)\nhide\n\n
~Thank you so much for curating me, @natsd! You are what a model scratcher should be- kind, caring, and an *awesome* friend. Congrats on being curator! <3~\n\n*MUST PRESS GREEN FLAG TWICE!*\n\nHey guys! I have had so much fun making this, and I hope you have fun playing it! You use the arrow keys to move, and you just follow the directions. You have to get to the spark at the end of each level. Also, if you want to see how many times you have touched the hot sauce, just press space (press space again to hide it). Also, every level IS possible, though some are very difficult. At the end of the platformer, if you wait 5 seconds, there with be a super quick animation. 