Winter Platformer v1.0

Instructions: first game\nDOUBLE CLICK THE FLAG OR THE PORTAL WONT APPEAR!!! Use the arrow keys to move around and avoid the (nearly) frozen water. Winter theme . Also go to the portal to advance to the next level. Ice is slippery. You can also press R to restart. 

@Stage\n\nwhen flag clicked\nset volume to (10) %\nforever\n    play sound [Elektronomia - Sky High \[NCS Release\] v] until done\nend\n\n@Player\n\nwhen flag clicked\nshow\nset [fails: v] to [0]\nset [level number v] to [1]\nset size to (70) %\ngo to x: (-208) y: (-25)\nset [x velocity v] to [0]\nset [y velocity v] to [0]\nforever\n    Platform Gravity: [-1] JumpHeight [12] Side Movement [3] Friction [.7] Slope [8]\nend\n\ndefine Platform Gravity: (gravity) JumpHeight (jumpheight) Side Movement (sidemovement) Friction (friction) Slope (slope)\nchange [y velocity v] by (gravity)\nchange y by (Y Velocity)\nif <touching (level v)?> then\n    repeat until <not <touching (level v)?>>\n        change y by (([abs v] of (Y Velocity) ) / ((Y Velocity) * (-1)))\n    end\n    set [y velocity v] to (<<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <(([abs v] of (Y Velocity) ) / (Y Velocity)) = [-1]>> * (jumpheight))\nend\nset [x velocity v] to (((X Velocity) + ((<<key (a v) pressed?> or <key (left arrow v) pressed?>> * ((sidemovement) * (-1))) + (<<key (right arrow v) pressed?> or <key (d v) pressed?>> * (sidemovement)))) * (friction))\nchange x by (X Velocity)\nset [slope v] to [0]\nrepeat until <<(Slope) = ((slope) * (-1))> or <not <touching (level v)?>>>\n    change y by (1)\n    change [slope v] by (-1)\nend\nif <touching (level v)?> then\n    change y by (Slope)\n    repeat until <not <touching (level v)?>>\n        change x by (([abs v] of (X Velocity) ) / ((X Velocity) * (-1)))\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#00a8b6)?> then\n        go to x: (-208) y: (-25)\n        play sound [Roblox_Death_Sound_-_Sound_Effect_HD\[Youtubetomp3 v] until done\n        change [fails: v] by (1)\n    end\n    if <touching color (#2966ff)?> then\n        change [level number v] by (1)\n        play sound [Collect v] until done\n        wait (1) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (r v) pressed?> then\n        go to x: (-208) y: (-25)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level Number) = [3]> then\n        go to x: (-208) y: (-25)\n        wait (1000000) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level Number) = [2]> then\n        go to x: (-208) y: (-25)\n        wait (100000000000) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level Number) = [4]> then\n        go to x: (-208) y: (-25)\n        wait (100000000000) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level Number) = [6]> then\n        go to x: (-208) y: (-25)\n        wait (100000000000) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level Number) = [7]> then\n        go to x: (-208) y: (-25)\n        wait (100000000000) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level Number) = [10]> then\n        go to x: (-208) y: (-25)\n        wait (100000000000) seconds\n    end\nend\n\n@Level\n\ngo to x: (0) y: (0)\n\nwhen flag clicked\nshow\ngo to [front v] layer\nshow\nforever\n    switch costume to (Level Number)\nend\n\ngo to x: (0) y: (0)\n\nset [color v] effect to (0)\n\n@Water\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nshow\nshow\ngo to [front v] layer\ngo to [back v] layer\nforever\n    if <(Level Number) = [4]> then\n        hide\n    end\n    if <(Level Number) = [6]> then\n        show\n        go to x: (2) y: (-25)\n    end\n    if <(Level Number) = [7]> then\n        show\n    end\n    if <(Level Number) = [8]> then\n        hide\n    end\n    if <(Level Number) = [9]> then\n        show\n    end\n    if <(Level Number) = [10]> then\n        show\n        go to x: (597) y: (-17)\n        go to [back v] layer\n    end\n    if <(Level Number) = [11]> then\n        show\n        go to x: (598) y: (-36)\n        go to [back v] layer\n    end\n    if <(Level Number) = [12]> then\n        show\n        go to x: (-75) y: (-258)\n        switch costume to (costume2 v)\n        go to [back v] layer\n    else\n        if <(Level Number) = [13]> then\n            show\n            go to x: (-4) y: (-252)\n            switch costume to (costume2 v)\n            go to [back v] layer\n        end\n        if <(Level Number) = [14]> then\n            hide\n        end\n    end\nend\n\ngo to x: (0) y: (0)\n\n@Portal\n\nwhen flag clicked\nshow\nforever\n    if <(Level Number) = [1]> then\n        go to x: (212) y: (-55)\n    end\n    if <(Level Number) = [5]> then\n        go to x: (-58) y: (80)\n    end\nend\n\nwhen I receive [hide all v]\nhide\n\nwhen flag clicked\ngo to [front v] layer\nshow\nforever\n    if <(Level Number) = [1]> then\n    if <(Level Number) = [2]> then\n        go to x: (-215) y: (61)\n    end\n    if <(Level Number) = [3]> then\n        go to x: (-214) y: (124)\n    end\n    if <(Level Number) = [6]> then\n        go to x: (-214) y: (133)\n    end\n    if <(Level Number) = [8]> then\n        go to x: (211) y: (-121)\n    end\n    if <(Level Number) = [9]> then\n        go to x: (-212) y: (144)\n    end\n    if <(Level Number) = [10]> then\n        go to x: (-44) y: (155)\n    end\n    if <(Level Number) = [11]> then\n        go to x: (-215) y: (49)\n    end\n    if <(Level Number) = [12]> then\n        go to x: (0) y: (0)\n    end\n    if <(Level Number) = [13]> then\n        go to x: (191) y: (-19)\n    end\n    if <(Level Number) = [14]> then\n        hide\n    end\nend\n\n@Water2\n\nwhen flag clicked\nclear graphic effects\ngo to [back v] layer\nhide\nswitch costume to (costume1 v)\nforever\n    if <(Level Number) = [2]> then\n        show\n        go to x: (-141) y: (44)\n        go to [back v] layer\n    else\n        if <(Level Number) = [4]> then\n            show\n            go to [back v] layer\n            switch costume to (costume2 v)\n            go to x: (141) y: (-99)\n        else\n            if <(Level Number) = [5]> then\n                show\n                go to [back v] layer\n                switch costume to (costume3 v)\n                go to x: (21) y: (-166)\n            else\n                if <(Level Number) = [9]> then\n                    show\n                    go to [back v] layer\n                    go to x: (125) y: (-80)\n                    switch costume to (costume3 v)\n                else\n                    if <(Level Number) = [10]> then\n                        show\n                        go to x: (-179) y: (46)\n                        show\n                        go to [back v] layer\n                        switch costume to (costume4 v)\n                    else\n                        if <(Level Number) = [13]> then\n                            show\n                            go to [back v] layer\n                            switch costume to (costume5 v)\n                            go to x: (165) y: (-109)\n                        else\n                            hide\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\ngo [backward v] (110) layers\n\nwhen flag clicked\nforever\n    if <(Level Number) = [3]> then\n        hide\n    end\n    if <(Level Number) = [11]> then\n        hide\n    end\nend\n\ngo to [front v] layer\n\n@Snow\n\nwhen flag clicked\nhide\nforever\n    wait (.1) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\ngo to (random position v)\nshow\nset size to (pick random (30) to (90)) %\ngo [backward v] (23232323) layers\nrepeat until <touching (_edge_ v)?>\n    change y by (-1)\nend\nforever\n    if <touching (_edge_ v)?> then\n        delete this clone\n    end\nend\n\n@Thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\nclear graphic effects\n\nshow\n\ngo to [front v] layer\n\n@Water3\n\nwhen flag clicked\nhide\ngo to [front v] layer\nforever\n    if <(Level Number) = [8]> then\n        go to [front v] layer\n        show\n    end\n    if <(Level Number) = [9]> then\n        hide\n    end\nend\n\n@Water4\n\nwhen flag clicked\nhide\nhide\ngo to [front v] layer\nforever\n    if <(Level Number) = [8]> then\n        go to [front v] layer\n        show\n    end\n    if <(Level Number) = [9]> then\n        hide\n    end\nend\n\n@Water5\n\ngo [backward v] (110) layers\n\ngo to x: (21) y: (-166)\n\nwhen flag clicked\nhide\nforever\n    if <(Level Number) = [10]> then\n        show\n        show\n        go to x: (87) y: (6)\n        go to [back v] layer\n        switch costume to (costume4 v)\n    else\n        hide\n    end\nend\n\n@Sprite1\n\nwhen flag clicked\nhide\nforever\n    if <(Level Number) = [12]> then\n        show\n        go to x: (-62) y: (57)\n        go to [back v] layer\n    else\n        hide\n    end\nend\n\n