Volcano - A Platformer    

Instructions: Curated by @tornadoyay1! Tysm!\n\n««« Volcano - A Platformer »»» \n( Mobile Friendly! )\n\nWelcome to my first platformer on this account (somewhat generic), and one of my first games on this account! (my new account)\n\nNote:  May be laggy or have glitches.\n\nControls:\n- < ^ > ( arrow keys) to move around\n- use your touchscreen if on mobile\n\nUpdates:\n- made all levels possible\n

@Stage\n\nwhen flag clicked\nforever\n    play sound [ParagonX9 - Chaoz Fantasy v] until done\nend\n\n@Thumbnail\n\nwhen flag clicked\nhide\n\nshow\ngo to [front v] layer\n\n@Player\n\nwhen flag clicked\nset [level v] to [1]\ngo to x: (X Spawn) y: (Y Spawn)\nswitch backdrop to (backdrop1 v)\nshow\nset size to (120) %\nset [x v] to [0]\nset [y v] to [0]\nforever\n    Run Engine\nend\n\ndefine Run Engine\nchange [y v] by (-0.5)\nif <<key (left arrow v) pressed?> or <<(x position) > (mouse x)> and <mouse down?>>> then\n    change [x v] by (-0.9)\n    switch costume to (costume2 v)\nend\nif <<key (right arrow v) pressed?> or <<(mouse x) > (x position)> and <mouse down?>>> then\n    change [x v] by (0.9)\n    switch costume to (costume1 v)\nend\nset [x v] to ((x) * (0.9))\nchange x by (x)\nif <<<<touching color (#8e6924)?> or <touching color (#a07842)?>> or <touching color (#ab8746)?>> or <touching color (#74cf2e)?>> then\n    change y by (1)\n    if <<<<touching color (#8e6924)?> or <touching color (#a07842)?>> or <touching color (#ab8746)?>> or <touching color (#74cf2e)?>> then\n        change y by (1)\n        if <<<<touching color (#8e6924)?> or <touching color (#a07842)?>> or <touching color (#ab8746)?>> or <touching color (#74cf2e)?>> then\n            change y by (1)\n            if <<<<touching color (#8e6924)?> or <touching color (#a07842)?>> or <touching color (#ab8746)?>> or <touching color (#74cf2e)?>> then\n                change y by (1)\n                if <<<<touching color (#8e6924)?> or <touching color (#a07842)?>> or <touching color (#ab8746)?>> or <touching color (#74cf2e)?>> then\n                    change y by (1)\n                    if <<<<touching color (#8e6924)?> or <touching color (#a07842)?>> or <touching color (#ab8746)?>> or <touching color (#74cf2e)?>> then\n                        change y by (1)\n                        if <<<<touching color (#8e6924)?> or <touching color (#a07842)?>> or <touching color (#ab8746)?>> or <touching color (#74cf2e)?>> then\n                            change y by (-6)\n                            change x by ((x) * (-1))\n                            if <<key (up arrow v) pressed?> or <<(mouse y) > (y position)> and <mouse down?>>> then\n                                set [y v] to [9]\n                                if <(x) > [0]> then\n                                    set [x v] to [-10]\n                                else\n                                    set [x v] to [10]\n                                end\n                            else\n                                set [x v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nchange y by (y)\nif <<<<touching color (#8e6924)?> or <touching color (#a07842)?>> or <touching color (#ab8746)?>> or <touching color (#74cf2e)?>> then\n    change y by ((y) * (-1))\n    set [y v] to [0]\nend\nchange y by (-0.5)\nif <<<<<<touching color (#8e6924)?> or <touching color (#a07842)?>> or <touching color (#ab8746)?>> or <touching color (#74cf2e)?>> and <key (up arrow v) pressed?>> or <<<<<touching color (#8e6924)?> or <touching color (#a07842)?>> or <touching color (#ab8746)?>> or <touching color (#74cf2e)?>> and <<(mouse y) > (y position)> and <mouse down?>>>> then\n    set [y v] to [9.5]\nend\nchange y by (0.5)\nif <<<<<<touching color (#bcbcbc)?> or <touching color (#8a8a8a)?>> or <touching color (#d04040)?>> or <touching color (#c03c3c)?>> or <touching color (#d9663f)?>> or <touching color (#d94210)?>> then\n    go to x: (X Spawn) y: (Y Spawn)\n    set [x v] to [0]\n    set [y v] to [0]\nend\nif <<touching color (#c03a0d)?> or <touching color (#d9572b)?>> then\n    go to x: (X Spawn) y: (Y Spawn)\n    set [x v] to [0]\n    set [y v] to [0]\nend\nif <touching color (#d8597b)?> then\n    set [y v] to [12]\nend\nif <(x position) > [290]> then\n    go to x: (X Spawn) y: (Y Spawn)\n    change [level v] by (1)\n    next backdrop\n    set [x v] to [0]\n    set [y v] to [0]\nend\n\nwhen I start as a clone\nrepeat (10)\n    wait (0.05) seconds\n    change [ghost v] effect by (10)\n    change size by (-5)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    if <<(Level) < [10]> or <(Level) > [10]>> then\n        set [y spawn v] to [-30]\n        set [x spawn v] to [-150]\n    else\n        set [y spawn v] to [-60]\n        set [x spawn v] to [-150]\n    end\nend\n\nwhen I receive [restart v]\ngo to x: (X Spawn) y: (Y Spawn)\n\n@Particles\n\nwhen flag clicked\nforever\n    wait (0.07) seconds\n    go to x: (280) y: (pick random (-180) to (180))\n    set [ghost v] effect to (pick random (65) to (75))\n    set size to (pick random (40) to (85)) %\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nrepeat (22)\n    wait (0.05) seconds\n    change x by (-20)\nend\ndelete this clone\n\n@lava\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop3 v]\nshow\n\nwhen backdrop switches to [backdrop4 v]\nhide\n\n@Restart Button\n\nwhen flag clicked\nshow\ngo to [front v] layer\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (10)\n    else\n        clear graphic effects\n    end\nend\n\nwhen this sprite clicked\nbroadcast (restart v)\n\n