Fire and Ice - Platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (play v)\n\nwhen I receive [start the game v]\nnext backdrop\n\nwhen I receive [next level v]\nwait (.3) seconds\nnext backdrop\n\n@Player\n\nwhen flag clicked\nset [level v] to [0]\nswitch costume to (black v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [gravity v] to [0]\nset size to (90) %\ngo to x: (-200) y: (-65)\nset [brightness v] effect to (-16)\n\nwhen flag clicked\nforever\n    if <(x position) > [240]> then\n        broadcast (next level v)\n    end\nend\n\nwhen I receive [next level v]\ngo to x: (-200) y: (0)\nglide (.7) secs to x: (x position) y: (y position)\nset [x v] to [0]\nset [y v] to [0]\n\nwhen I receive [start the game v]\n\nwhen I receive [start the game v]\nset [level v] to [1]\nshow\nwait (.5) seconds\nforever\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < ((x position) + (-15))>>> then\n        change [x v] by (-1.2)\n    end\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <((x position) + (15)) < (mouse x)>>> then\n        change [x v] by (1.2)\n    end\n    change x by (x)\n    if <<touching color (#680000)?> or <touching (barrier v)?>> then\n        change y by (1)\n        if <<touching color (#680000)?> or <touching (barrier v)?>> then\n            change y by (1)\n            if <<touching color (#680000)?> or <touching (barrier v)?>> then\n                change y by (1)\n                if <<touching color (#680000)?> or <touching (barrier v)?>> then\n                    change y by (1)\n                    if <<touching color (#680000)?> or <touching (barrier v)?>> then\n                        change y by (1)\n                        if <<touching color (#680000)?> or <touching (barrier v)?>> then\n                            change y by (1)\n                            if <<touching color (#680000)?> or <touching (barrier v)?>> then\n                                change x by ((x) * (-1))\n                                change y by (-6)\n                                if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > ((y position) + (17))>>> then\n                                    if <(x) > [0]> then\n                                        set [x v] to [-10]\n                                    else\n                                        set [x v] to [10]\n                                    end\n                                    set [y v] to [12]\n                                else\n                                    set [x v] to [0]\n                                end\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    change y by (10.1)\n    change y by (-10)\n    if <<touching color (#680000)?> or <touching (barrier v)?>> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n        if <not <<touching color (#680000)?> or <touching (barrier v)?>>> then\n            change y by (-.1)\n        end\n    end\n    change y by (-1)\n    if <<touching color (#680000)?> or <touching (barrier v)?>> then\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > ((y position) + (17))>>> then\n            set [y v] to [13]\n        end\n    end\n    change y by (1)\n    go to [front v] layer\n    if <[-175] > (y position)> then\n        wait (.09) seconds\n        broadcast (restart v)\n    end\nend\n\nwhen flag clicked\nforever\n    wait (.02) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I receive [restart v]\ngo to x: (-200) y: (-20)\nglide (.0) secs to x: (x position) y: (y position)\nset [x v] to [0]\nset [y v] to [0]\n\nwhen I start as a clone\nswitch costume to (white v)\nrepeat (20)\n    change [brightness v] effect by (999)\n    change size by (-4)\n    change [ghost v] effect by (4)\nend\ndelete this clone\n\nwhen I receive [next level v]\nset [level v] to (backdrop [number v])\n\nwhen I receive [next level v]\nwait (.7) seconds\nif <(level) = [15]> then\n    go to x: (-200) y: (-68)\nend\n\n@Play\n\nwhen flag clicked\nset [color v] effect to (0)\npoint in direction (90)\nhide\ngo to x: (400) y: (-80)\nset size to (60) %\nwait (.1) seconds\nshow\nglide (.1) secs to x: (80) y: (-80)\nforever\n    change [random v] by (3.999)\nend\n\nwhen this sprite clicked\nrepeat (3)\n    change size by (4)\nend\nwait (.07) seconds\nhide\nbroadcast (Begin v)\n\nwhen flag clicked\nforever\n    change y by ([sin v] of (random) )\nend\n\n@Ice\n\nwhen flag clicked\nhide\ngo to x: (20) y: (-75)\nset size to (100) %\nset [ghost v] effect to (0)\n\nwhen I receive [start the game v]\nswitch costume to (1 v)\nshow\nforever\n    if <touching (player v)?> then\n        set [x v] to ((x) * (.88))\n    else\n        set [x v] to ((x) * (.8))\n    end\n    switch costume to (level)\nend\n\nwhen I receive [next level v]\nwait (.5) seconds\nif <(costume [name v]) = [10]> then\n    repeat until <(costume [name v]) = [11]>\n        glide (0) secs to (moving platforms v)\n    end\n    go to x: (20) y: (-75)\nend\n\n@Fire\n\nwhen flag clicked\nclear graphic effects\nset size to (80) %\nshow\ngo to x: (0) y: (0)\n\nwhen flag clicked\nforever\n    change y by (([sin v] of (random) ) * (.4))\n    if <(level) = [0]> then\n        switch costume to (0 v)\n    end\n    if <(level) = [1]> then\n        switch costume to (1 v)\n    end\n    if <(level) = [2]> then\n        switch costume to (2 v)\n    end\n    if <(level) = [3]> then\n        switch costume to (3 v)\n    end\n    if <(level) = [4]> then\n        switch costume to (4 v)\n    end\n    if <(level) = [5]> then\n        switch costume to (5 v)\n    end\n    if <(level) = [6]> then\n        switch costume to (6 v)\n    end\n    if <(level) = [7]> then\n        switch costume to (7 v)\n    end\n    if <(level) = [8]> then\n        switch costume to (8 v)\n    end\n    if <(level) = [9]> then\n        switch costume to (9 v)\n    end\n    if <(level) = [10]> then\n        switch costume to (10 v)\n    end\n    if <(level) = [11]> then\n        switch costume to (11 v)\n    end\n    if <(level) = [12]> then\n        switch costume to (12 v)\n    end\n    if <(level) = [13]> then\n        switch costume to (13 v)\n    end\n    if <(level) = [14]> then\n        switch costume to (14 v)\n    end\nend\n\nwhen flag clicked\nhide variable [level v]\nforever\n\nwhen I receive [start the game v]\nwait (.5) seconds\nshow variable [level v]\n\nwhen I receive [next level v]\nwait (.5) seconds\nif <(level) = [0]> then\n    go to x: (0) y: (0)\nend\nif <(level) = [1]> then\n    go to x: (0) y: (0)\nend\nif <(level) = [2]> then\n    go to x: (0) y: (-59)\nend\nif <(level) = [3]> then\n    go to x: (0) y: (0)\nend\nif <(level) = [4]> then\n    go to x: (150) y: (-59)\nend\nif <(level) = [5]> then\n    go to x: (0) y: (0)\nend\nif <(level) = [6]> then\n    go to x: (150) y: (-59)\n    set size to (80) %\nend\nif <(level) = [7]> then\n    go to x: (16) y: (-50)\n    set size to (100) %\nend\nif <(level) = [8]> then\n    go to x: (16) y: (-50)\n    set size to (100) %\nend\nif <(level) = [9]> then\n    go to x: (0) y: (0)\n    set size to (80) %\nend\nif <(level) = [10]> then\n    go to x: (0) y: (-30)\n    set size to (100) %\nend\nif <(level) = [11]> then\n    go to x: (-12) y: (0)\n    set size to (100) %\nend\nif <(level) = [11]> then\n    go to x: (131) y: (0)\n    set size to (100) %\nend\nif <(level) = [12]> then\n    go to x: (113) y: (0)\n    set size to (100) %\nend\nif <(level) = [11]> then\n    go to x: (131) y: (0)\n    set size to (100) %\nend\nif <(level) = [12]> then\n    go to x: (113) y: (0)\n    set size to (100) %\nend\nif <(level) = [13]> then\n    go to x: (131) y: (0)\n    set size to (100) %\nend\nif <(level) = [14]> then\n    go to x: (52) y: (-51)\n    set size to (100) %\nend\n\n\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        broadcast (restart v)\n    end\n    if <(level) = [15]> then\n        hide\n    else\n        show\n    end\nend\n\nwhen flag clicked\nwait (1) seconds\ngo to [front v] layer\n\n@Next Level\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\nforever\n    go to [front v] layer\nend\n\nwhen I receive [begin v]\nswitch costume to (costume7 v)\nshow\nrepeat (5)\n    wait (.03) seconds\n    next costume\nend\nwait (.4) seconds\nrepeat (5)\n    wait (.03) seconds\n    switch costume to ((costume [number v]) - (1))\nend\nhide\n\nwhen I receive [begin v]\nwait (.4) seconds\nbroadcast (start the game v)\n\nwhen I receive [next level v]\nswitch costume to (costume7 v)\nshow\nrepeat (5)\n    next costume\nend\nwait (.4) seconds\nrepeat (5)\n    switch costume to ((costume [number v]) - (1))\nend\nhide\n\n@Cool picture\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    change [ghost v] effect by (100)\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@sound\n\nwhen flag clicked\ngo to x: (208) y: (149)\nset [volume v] to [100]\nset [pitch v] effect to (0)\nset [pan left/right v] effect to (0)\nforever\n    set volume to (Volume) %\nend\n\nwhen flag clicked\nforever\n    play sound [Inferno v] until done\nend\n\n@Moving Platforms\n\nwhen I receive [start the game v]\n\nwhen flag clicked\nhide\nforever\n    go to [front v] layer\n    if <(level) = [9]> then\n        repeat until <(level) = [10]>\n            go to x: (-97) y: (-83)\n            glide (2) secs to x: (107) y: (-83)\n            glide (2) secs to x: (-96) y: (-83)\n        end\n    end\n    if <(level) = [10]> then\n        repeat until <(level) = [11]>\n            go to x: (-97) y: (-83)\n            glide (2) secs to x: (107) y: (-83)\n            glide (2) secs to x: (-97) y: (-83)\n        end\n    end\nend\n\nwhen I receive [next level v]\nwait (.4) seconds\nif <(level) = [1]> then\n    hide\nend\nif <(level) = [9]> then\n    show\nend\nif <(level) = [10]> then\n    show\nend\nif <(level) = [11]> then\n    hide\nend\n\n@barrier\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [ghost v] effect to (99)\nforever\n    if <(level) = [15]> then\n        show\n    else\n        hide\n    end\nend\n\n
Ice makes you go faster, and fire makes you restart the level.\nArrow keys or ADW to move your player, also touch screen!\nBest if played in full screen.\nAll Levels are 100% Possible.\nLike, Fav, and Follow for more!\n