Fire vs Ice - A Platformer
@Stage\n\nwhen I receive [fire ! v]\nswitch backdrop to (fire v)\n\nwhen I receive [ice ! v]\nswitch backdrop to (ice v)\n\nwhen flag clicked\nswitch backdrop to (choose v)\n\nwhen flag clicked\nstart sound [\[Happy Hardcore\] - nanobii - Rainbow Road \[Monstercat Release\] v]\n\n@Thumbnail\n\nwhen flag clicked\nhide\n\n@Fire \n\nwhen I start as a clone\nswitch costume to (player2 v)\nset [ghost v] effect to (0)\nrepeat (10)\n    change size by (-5)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\ndefine Platformer Engine\nchange [y v] by (-0.5)\nif <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n    change [x v] by (-0.8)\nend\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    change [x v] by (0.8)\nend\nset [x v] to ((X) * (0.9))\nchange x by (X)\nif <touching color (#ec0000)?> then\n    change y by (1)\n    if <touching color (#ec0000)?> then\n        change y by (1)\n        if <touching color (#ec0000)?> then\n            change y by (1)\n            if <touching color (#ec0000)?> then\n                change y by (1)\n                if <touching color (#ec0000)?> then\n                    change y by (1)\n                    if <touching color (#ec0000)?> then\n                        change y by (-6)\n                        change x by ((X) * (-1))\n                        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                            set [y v] to [10]\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\nend\nchange y by (Y)\nif <touching color (#ec0000)?> then\n    change y by ((Y) * (-1))\n    set [y v] to [0]\nend\nchange y by (-0.5)\nif <<touching color (#ec0000)?> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n    set [y v] to [10]\nend\nchange y by (0.5)\nif <(x position) > [217]> then\n    change [level v] by (1)\n    go to x: (XS) y: (YS)\nend\nif <touching color (#363636)?> then\n    go to x: (XS) y: (YS)\nend\nif <touching (trampo fire v)?> then\n    set [y v] to [13]\nend\nif <touching color (#46b5ff)?> then\n    go to x: (XS) y: (YS)\nend\n\nwhen I receive [fire ! v]\nshow\npoint in direction (90)\nset [xs v] to [-179]\nset [ys v] to [-56]\ngo to x: (XS) y: (YS)\nset [x v] to [0]\nset [y v] to [0]\ngo to (random position v)\nforever\n    Platformer Engine\nend\n\nwhen flag clicked\nhide\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I receive [fire ! v]\ngo to x: (XS) y: (YS)\n\n@Ice\n\nwhen I start as a clone\nswitch costume to (player2 v)\nset [ghost v] effect to (0)\nrepeat (10)\n    change size by (-5)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\ndefine Platformer Engine\nchange [y v] by (-0.5)\nif <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n    change [x v] by (-0.8)\nend\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    change [x v] by (0.8)\nend\nset [x v] to ((X) * (0.9))\nchange x by (X)\nif <touching color (#25beff)?> then\n    change y by (1)\n    if <touching color (#25beff)?> then\n        change y by (1)\n        if <touching color (#25beff)?> then\n            change y by (1)\n            if <touching color (#25beff)?> then\n                change y by (1)\n                if <touching color (#25beff)?> then\n                    change y by (1)\n                    if <touching color (#25beff)?> then\n                        change y by (-6)\n                        change x by ((X) * (-1))\n                        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                            set [y v] to [10]\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\nend\nchange y by (Y)\nif <touching color (#25beff)?> then\n    change y by ((Y) * (-1))\n    set [y v] to [0]\nend\nchange y by (-0.5)\nif <<touching color (#25beff)?> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n    set [y v] to [10]\nend\nchange y by (0.5)\nif <(x position) > [217]> then\n    change [level v] by (1)\n    go to x: (XS) y: (YS)\nend\nif <<touching color (#00a5ff)?> or <touching color (#0085cd)?>> then\n    go to x: (XS) y: (YS)\nend\nif <touching (trampo ice v)?> then\n    set [y v] to [13]\nend\nif <touching color (#ff002b)?> then\n    go to x: (XS) y: (YS)\nend\n\nwhen I receive [ice ! v]\nshow\npoint in direction (90)\nset [xs v] to [-179]\nset [ys v] to [-56]\ngo to x: (XS) y: (YS)\nset [x v] to [0]\nset [y v] to [0]\nforever\n    Platformer Engine\nend\n\nwhen flag clicked\nhide\nforever\n    create clone of (_myself_ v)\nend\n\n@Ground\n\nwhen I receive [fire ! v]\nswitch costume to (fire v)\n\nwhen I receive [ice ! v]\nswitch costume to (ice v)\n\nwhen flag clicked\nforever\n    if <([backdrop name v] of [_stage_ v]) = [Choose]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <([backdrop name v] of [_stage_ v]) = [Choose]>> then\n        show\n    end\nend\n\n@Fire X\n\nwhen flag clicked\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        if <mouse down?> then\n    else\n        set size to (100) %\n        clear graphic effects\n    end\nend\n\nwhen this sprite clicked\nbroadcast (Fire ! v)\nhide\n\nwhen I receive [ice ! v]\nhide\n\n@Ice X\n\nwhen flag clicked\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        if <mouse down?> then\n    else\n        set size to (100) %\n        clear graphic effects\n    end\nend\n\nwhen this sprite clicked\nbroadcast (Ice ! v)\nhide\n\nwhen I receive [fire ! v]\nhide\n\n@spikes ice\n\nwhen I receive [ice ! v]\nswitch costume to (level  v)\nshow\n\nwhen flag clicked\nswitch costume to (level  v)\n\nwhen I receive [ice ! v]\nset [level v] to [1]\nforever\n    switch costume to (Level)\nend\n\n@Trampo ice\n\nwhen I receive [ice ! v]\nshow\n\nwhen I receive [ice ! v]\nset [level v] to [1]\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nhide\n\n@Baddy\n\nwhen flag clicked\nhide\n\nwhen I receive [ice ! v]\nforever\n    if <not <([costume name v] of [spikes ice v]) = [Level 1 12]>> then\n        hide\n    end\nend\n\nwhen I receive [ice ! v]\ngo to x: (-81) y: (56)\nforever\n    switch costume to (player v)\n    if <([costume name v] of [spikes ice v]) = [Level 1 12]> then\n        show\n    end\nend\n\nwhen I receive [fire ! v]\ngo to x: (-81) y: (56)\nforever\n    switch costume to (player2 v)\n    if <([costume name v] of [spikes fire v]) = [Level 1 12]> then\n        show\n    end\nend\n\nwhen I receive [fire ! v]\nforever\n    if <not <([costume name v] of [spikes fire v]) = [Level 1 12]>> then\n        hide\n    end\nend\n\n@spikes fire\n\nwhen I receive [fire ! v]\nswitch costume to (level  v)\nshow\n\nwhen flag clicked\nswitch costume to (level  v)\n\nwhen I receive [fire ! v]\nset [level v] to [1]\nforever\n    switch costume to (Level)\nend\n\n@Trampo Fire\n\nwhen I receive [fire ! v]\nshow\n\nwhen I receive [fire ! v]\nset [level v] to [1]\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\n\n
Hit the Green Flag 3 Times for less lag.\n___________________________________________\nWelcome to Fire vs Ice ! You are in a battle between Fire and Ice, You have to go thru obstacles, than you will have to face your Opponent and Win\n___________________________________________\n\nInstructions \nUse Arrow keys or WASD\nDon't Touch Spikes\nTrampolines are Yellow and Bouncy\nIf you Enjoyed Playing, then you can Love, Fav and Follow at @2098324d