~Fire (Platformer)~

Instructions: ~MUST READ!~\n\n-Arrow keys to move.\n-Don't touch blue.\n-You can swim in lava.\n-Yellow is bouncy.\n-Press r to restart your current level.\n∆∆∆∆∆∆∆∆∆∆∆∆∆∆∆∆∆∆∆∆∆∆∆∆∆∆∆∆∆∆∆∆∆∆∆∆∆∆∆∆∆∆∆∆∆∆∆\n\nBackground:\n     You are a fire creature. Raised secretly in a volcano, you are tough, hardy and never give up. One of your mysterious caretakers (you don't know who they were) told you a story when you were little that you still believe. Here's the story:\n\nOne day, a long time ago, there was a town near an ocean, a town near a volcano, and a town near a beautiful forest. These towns weren't ordinary - everyone in the forest town could control nature, everyone in the ocean town could control water, and everyone in the volcano town could control fire. However, far away, there was a being called the darkness. The darkness was mean and heartless. He would wander into the towns from time to time, bringing destruction and death. One day, the darkness decided to wipe out the three towns of all life - little did he know that three creatures survived. One was a water creature, another a nature creature, and the third a fire creature.\nYou are that fire creature.\n\nºººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººººº\n©2018\n(Copyright strictly enforced by the copyright beaver.)

@Stage\n\nwhen flag clicked\nplay sound [The Beginning of the End.mp3 v] until done\nstop all sounds\nplay sound [Vicetone - United We Dance.mp3 v] until done\nstop all sounds\n\nwhen flag clicked\nbroadcast (start v)\nswitch backdrop to (backdrop1 v)\n\nwhen backdrop switches to [backdrop24 v]\nbroadcast (THUMBNAIL ACTIVATE v)\n\n@Fire\n\nwhen I receive [start v]\ngo to x: (-210) y: (-110)\nshow\nforever\n    if <(y position) = [-180]> then\n        broadcast (death v)\n        go to x: (-210) y: (-110)\n    end\n    if <key (right arrow v) pressed?> then\n        switch costume to (ball right v)\n        change [x v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (ball left v)\n        change [x v] by (-1)\n    end\n    set [x v] to ((X) * (0.9))\n    change x by (X)\n    if <touching color (#cc0000)?> then\n        change y by (1)\n        if <touching color (#cc0000)?> then\n            change y by (1)\n            if <touching color (#cc0000)?> then\n                change y by (1)\n                if <touching color (#cc0000)?> then\n                    change y by (1)\n                    if <touching color (#cc0000)?> then\n                        change y by (1)\n                        if <touching color (#cc0000)?> then\n                            change x by ((X) * (-1))\n                            change y by (-5)\n                            if <key (up arrow v) pressed?> then\n                                if <(X) > [0]> then\n                                    set [x v] to [-5]\n                                else\n                                    set [x v] to [5]\n                                end\n                                set [y v] to [10]\n                            else\n                                set [x v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [y v] by (-1)\n    change y by (Y)\n    if <touching color (#cc0000)?> then\n        change y by ((Y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#cc0000)?> then\n        if <key (up arrow v) pressed?> then\n            set [y v] to [15]\n        end\n    end\n    change y by (1)\n    if <touching color (#00ffff)?> then\n        broadcast (death v)\n        go to x: (-210) y: (-110)\n    end\n    if <(x position) > [230]> then\n        go to x: (-210) y: (-110)\n        switch backdrop to (next backdrop v)\n    end\n    if <touching color (#ffff99)?> then\n        set [y v] to [24]\n    end\n    if <touching color (#ffcccc)?> then\n        if <key (up arrow v) pressed?> then\n            set [y v] to [10]\n        else\n            set [y v] to [-1]\n        end\n        if <key (down arrow v) pressed?> then\n            set [y v] to [-5]\n        end\n    end\nend\n\nwhen I receive [death v]\ngo to x: (-210) y: (-110)\n\nwhen flag clicked\nforever\n    if <key (r v) pressed?> then\n        broadcast (death v)\n    end\nend\n\nwhen backdrop switches to [backdrop24 v]\nhide\n\n@Thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [thumbnail activate v]\nwait (5) seconds\nset [ghost v] effect to (0)\nrepeat (10)\n    change [ghost v] effect by (-10)\n    wait (0.1) seconds\nend\nshow\n\n@Ground\n\nwhen flag clicked\nshow\n\ngo to x: (0) y: (0)\n\n