I C E | A platformer 


@Stage\n\nwhen flag clicked\nswitch backdrop to (title v)\nset volume to (200) %\nforever\n    play sound [Vexento - Keep Fighting.mp3 v] until done\nend\n\nwhen I receive [play v]\nswitch backdrop to (level 1 v)\n\nwhen I receive [next level v]\nnext backdrop\n\n@Sprite1\n\nwhen flag clicked\nset [ghost v] effect to (0)\nshow\ngo to x: (-1) y: (-82)\n\nwhen I receive [play v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\n@Sprite2\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to x: (-170) y: (130)\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        start sound [Ice Freezing v]\n        repeat (3)\n            wait (0) seconds\n            next costume\n        end\n        wait until <not <touching (mouse-pointer v)?>>\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen this sprite clicked\nbroadcast (Play v)\n\nwhen I receive [play v]\nhide\nstop [other scripts in sprite v]\n\n@char\n\ndefine Touch ground\nchange [falling v] by (1)\nrepeat until <not <<touching color (#ffffff)?> or <touching color (#a0d8a0)?>>>\n    change y by (1)\n    set [falling v] to [0]\n    set [sy v] to [0]\nend\n\ndefine Jump\nif <(falling) < [3]> then\n    if <key (up arrow v) pressed?> then\n        set [sy v] to [12]\n    end\nend\n\ndefine None\npoint in direction (direction)\nchange x by (speed)\nset [slope v] to [0]\nrepeat until <<(Slope) = [8]> or <not <touching color (#ffffff)?>>>\n    change y by (1)\n    change [slope v] by (1)\nend\nif <(Slope) = [8]> then\n    change x by ((0) - (speed))\n    change y by ((0) - (Slope))\nend\n\ndefine Ceiling <>\nchange [falling v] by (1)\nrepeat until <not <<touching color (#ffffff)?> or <touching color (#a0d8a0)?>>>\n    if <touch?> then\n        change y by (-1)\n    else\n        change y by (1)\n        set [falling v] to [0]\n    end\n    set [sy v] to [0]\nend\n\nwhen flag clicked\nforever\n    Jump\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [next level v]\nshow\ngo to x: (-182) y: (66)\n\nwhen flag clicked\nset [sy v] to [0]\nset [sx v] to [0]\nforever\n    change [sy v] by (-1)\n    change y by (SY)\n    Ceiling <(SY) > [0]>\n    if <key (left arrow v) pressed?> then\n        Walk (-90) (-6)\n    end\n    if <key (right arrow v) pressed?> then\n        Walk (90) (6)\n    end\nend\n\nchange y by (10)\n\nwhen I receive [play v]\nshow\ngo to x: (-182) y: (66)\nforever\n    if <touching (sprite3 v)?> then\n        start sound [Ice v]\n        broadcast (Next Level v)\n    else\n    end\n    if <touching color (#aea392)?> then\n        start sound [Jump v]\n        set [sy v] to [25]\n    else\n    end\nend\n\nwhen I receive [play v]\nforever\n    if <<(y position) < [-180]> or <touching color (#ff9b12)?>> then\n        go to x: (-182) y: (66)\n    else\n    end\n    if <touching color (#ccffff)?> then\n        move (10) steps\n    end\nend\n\nwhen backdrop switches to [level 13 v]\nforever\n    if <<(y position) < [-158]> or <touching color (#ff9b12)?>> then\n        broadcast (DIE v)\n        go to x: (-182) y: (66)\n    else\n    end\n    if <touching color (#ccffff)?> then\n        move (10) steps\n    end\nend\n\n@Sprite3\n\nwhen flag clicked\ngo to x: (197) y: (-32)\nhide\n\nwhen I receive [play v]\nshow\nforever\n    glide (1) secs to x: (197) y: (-26)\n    glide (1) secs to x: (197) y: (-32)\nend\n\n@Sprite4\n\nwhen flag clicked\ngo to x: (-203) y: (158)\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [play v]\nforever\n    if <(backdrop [name v]) = [Level 6]> then\n        show\n        if <touching (char v)?> then\n            switch costume to (costume2 v)\n            broadcast (Button v)\n            stop [this script v]\n        else\n        end\n    else\n    end\nend\n\nwhen I receive [play v]\nforever\n    if <(backdrop [name v]) = [Level 7]> then\n        hide\n    else\n    end\nend\n\n@Sprite5\n\nwhen flag clicked\nhide\nset [ghost v] effect to (100)\n\nwhen I receive [button v]\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [play v]\nforever\n    if <(backdrop [name v]) = [Level 7]> then\n        hide\n    else\n    end\nend\n\n@Sprite6\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\nhide\n\nwhen I receive [play v]\nswitch costume to (costume1 v)\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [next level v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nnext costume\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\n@Sprite8\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\n\nwhen backdrop switches to [level 13 v]\nbroadcast (LAST v)\n\nwhen I receive [last v]\nshow\nrepeat until <(costume [number v]) = [6]>\n    wait (0.4) seconds\n    next costume\nend\n\nwhen I receive [die v]\nswitch costume to (costume1 v)\nbroadcast (LAST v)\n\nwhen backdrop switches to [level 14 v]\nhide\n\nwhen I receive [die v]\nswitch costume to (costume1 v)\nbroadcast (LAST v)\n\n@Sprite7\n\nwhen flag clicked\nhide\n\nshow\ngo to x: (0) y: (0)\ngo to [front v] layer\n\n