Winter  II A platformer #Games II  
@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\n@player\n\ndefine Platformer Physics (speed) (friction) (jump height)\nchange [y vel v] by (-1)\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    change [x vel v] by (speed)\n    switch costume to (costume1 v)\nend\nif <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n    change [x vel v] by ((speed) * (-1))\n    switch costume to (costume2 v)\nend\nset [x vel v] to ((X vel) * (friction))\nchange x by (X vel)\nset [slope v] to [0]\nif <touching (level v)?> then\n    repeat until <<not <touching (level v)?>> or <(slope) = [-8]>>\n        change [slope v] by (-1)\n        change y by (1)\n    end\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 vel) ) / (X vel)) * (-1))\n    end\n    if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n        if <(X vel) > [0]> then\n            set [x vel v] to [-12]\n        else\n            set [x vel v] to [12]\n        end\n        set [y vel v] to [12]\n    else\n        set [x vel v] to [0]\n    end\nend\nchange y by (Y vel)\nif <touching (level v)?> then\n    repeat until <not <touching (level v)?>>\n        change y by ((([abs v] of (Y vel) ) / (Y vel)) * (-1))\n    end\n    set [y vel v] to [0]\nend\nchange y by (-1)\nif <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <touching (level v)?>> then\n    set [y vel v] to (jump height)\nend\nchange y by (1)\n\nwhen flag clicked\n\nwhen I receive [end v]\ngo to x: (-198) y: (-10)\n\nwhen I receive [intro v]\nwait (2) seconds\nshow\ngo to [front v] layer\nset [level v] to [1]\nset [x vel v] to [0]\nset [y vel v] to [0]\nswitch costume to (costume1 v)\ngo to x: (-198) y: (-10)\npoint in direction (90)\nforever\n    Platformer Physics [1] [0.9] [13]\n    if <<<<touching (danger v)?> or <touching (crusher v)?>> or <touching (snow monsters v)?>> or <touching (imposter v)?>> then\n        start sound [Roblox Death Sound - OOF Sound Effect v]\n        go to x: (-198) y: (-10)\n    end\n    if <touching ( ice trampoline v)?> then\n        set [y vel v] to [20]\n    end\n    if <touching (golden diamond v)?> then\n        start sound [Tada v]\n        broadcast (enter v)\n    end\nend\n\nwhen I receive [intro v]\nwait (2) seconds\nforever\n    play sound [recording3 v] until done\nend\n\nwhen flag clicked\nset [level v] to [1]\nhide\n\nwhen I receive [hurt v]\nstart sound [recording1 v]\ngo to x: (-198) y: (-10)\n\nwhen I receive [intro v]\nwait (2) seconds\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nswitch costume to (effect v)\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-5)\nend\ndelete this clone\n\n@level\n\nwhen flag clicked\nhide\ngo to x: (-2) y: (6)\nswitch costume to (costume1 v)\n\nwhen I receive [end v]\nnext costume\n\nwhen I receive [intro v]\nwait (1.60) seconds\nshow\n\n@end\n\nwhen flag clicked\nhide\n\nwhen I receive [intro v]\nwait (1) seconds\nshow\ngo to x: (136) y: (-4)\nforever\n    if <touching (player v)?> then\n        broadcast (end v)\n    end\nend\n\n@text\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\n\nwhen I receive [end v]\nnext costume\n\nwhen I receive [intro v]\nwait (2) seconds\nshow\n\n@thumbnail\n\nwhen flag clicked\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\n@right arrow\n\nwhen flag clicked\nhide\n\nwhen I receive [intro v]\ngo to x: (-155) y: (-152)\nshow\nset size to (90) %\nhide\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        broadcast (right v)\n    end\nend\n\n@danger\n\nwhen flag clicked\nhide\ngo to x: (-2) y: (6)\nswitch costume to (costume1 v)\n\nwhen I receive [end v]\nshow\ngo to [back v] layer\nnext costume\n\nwhen I receive [intro v]\nshow\n\nwhen flag clicked\npoint in direction (90)\nforever\n    if <(costume [number v]) = [2]> then\n        go to [back v] layer\n        glide (0.75) secs to x: (-2) y: (-4)\n        glide (0.75) secs to x: (-2) y: (6)\n    end\n    if <(costume [number v]) = [3]> then\n        go to [back v] layer\n        glide (0.75) secs to x: (-2) y: (-4)\n        glide (0.75) secs to x: (-2) y: (6)\n    end\n    if <(costume [number v]) = [4]> then\n        go to [back v] layer\n        glide (0.75) secs to x: (-2) y: (-4)\n        glide (0.75) secs to x: (-2) y: (6)\n    end\n    if <(costume [number v]) = [6]> then\n        go to [back v] layer\n        glide (0.75) secs to x: (-2) y: (-4)\n        glide (0.75) secs to x: (-2) y: (6)\n    end\n    if <(costume [number v]) = [9]> then\n        go to [back v] layer\n        glide (0.75) secs to x: (-2) y: (-4)\n        glide (0.75) secs to x: (-2) y: (6)\n    end\n    if <(costume [number v]) = [10]> then\n        go to [back v] layer\n        glide (0.75) secs to x: (-2) y: (-4)\n        glide (0.75) secs to x: (-2) y: (6)\n    end\n    if <(costume [number v]) = [12]> then\n        go to [back v] layer\n        glide (0.75) secs to x: (-2) y: (-4)\n        glide (0.75) secs to x: (-2) y: (6)\n    end\n    if <(costume [number v]) = [13]> then\n        go to [back v] layer\n        glide (0.75) secs to x: (-2) y: (-4)\n        glide (0.75) secs to x: (-2) y: (6)\n    end\n    if <(costume [number v]) = [14]> then\n        go to [back v] layer\n        glide (0.75) secs to x: (-2) y: (-4)\n        glide (0.75) secs to x: (-2) y: (6)\n    end\n    if <(costume [number v]) = [15]> then\n        go to [back v] layer\n        glide (0.75) secs to x: (-2) y: (-4)\n        glide (0.75) secs to x: (-2) y: (6)\n    end\n    if <(costume [number v]) = [17]> then\n        go to [back v] layer\n        glide (0.75) secs to x: (-2) y: (-4)\n        glide (0.75) secs to x: (-2) y: (6)\n    end\n    if <(costume [number v]) = [18]> then\n        go to [back v] layer\n        glide (0.75) secs to x: (-2) y: (-4)\n        glide (0.75) secs to x: (-2) y: (6)\n    end\n    if <(costume [number v]) = [19]> then\n        go to [back v] layer\n        glide (0.75) secs to x: (-2) y: (-4)\n        glide (0.75) secs to x: (-2) y: (6)\n    end\n    if <(costume [number v]) = [20]> then\n        go to [back v] layer\n        glide (0.75) secs to x: (14) y: (-44)\n        glide (0.75) secs to x: (14) y: (106)\n    end\n    if <(costume [number v]) = [22]> then\n        go to x: (-2) y: (6)\n        go to [back v] layer\n        glide (0.75) secs to x: (-2) y: (-4)\n        glide (0.75) secs to x: (-2) y: (6)\n    end\nend\n\n@crusher\n\nwhen flag clicked\nhide\nwait (1) seconds\nforever\n    repeat (10)\n        change y by (5)\n    end\n    wait (1) seconds\n    repeat (10)\n        change y by (-5)\n    end\nend\n\nwhen I receive [intro v]\ngo to x: (36) y: (5)\nforever\n    if <(level) = [5]> then\n        show\n    end\n    if <(level) = [6]> then\n        hide\n    end\nend\n\n@nothing\n\nwhen I receive [end v]\nchange [level v] by (1)\n\n@snow monsters\n\nwhen flag clicked\ngo to x: (182) y: (-62)\nhide\nforever\n    if <(level) = [7]> then\n        show\n        glide (3) secs to x: (-181) y: (-62)\n        glide (3) secs to x: (181) y: (-62)\n    end\n    if <(level) = [21]> then\n        show\n        glide (3) secs to x: (-181) y: (-62)\n        glide (3) secs to x: (181) y: (-62)\n    end\nend\n\nwhen I receive [end v]\n\nwhen flag clicked\nforever\n    if <(level) = [8]> then\n        hide\n    end\n    if <(level) = [22]> then\n        hide\n    end\nend\n\n@Clouds\n\nwhen I receive [intro v]\nwait (2) seconds\nhide\nrepeat (5)\n    create clone of (_myself_ v)\n    wait (1) seconds\nend\n\nwhen I start as a clone\nshow\nforever\n    switch costume to (pick random (1) to (2))\n    set size to (pick random (70) to (80)) %\n    go to [back v] layer\n    set [ghost v] effect to (pick random (5) to (20))\n    if <(pick random (1) to (2)) = [1]> then\n        show\n        go to x: (200) y: (pick random (20) to (180))\n        repeat (50)\n            change x by (2)\n        end\n        if <touching (_edge_ v)?> then\n            hide\n        end\n        wait (pick random (1) to (5)) seconds\n    end\n    switch costume to (pick random (1) to (2))\n    set size to (pick random (70) to (80)) %\n    go to [back v] layer\n    set [ghost v] effect to (pick random (5) to (20))\n    if <(pick random (1) to (2)) = [2]> then\n        show\n        go to x: (220) y: (pick random (20) to (180))\n        repeat (110)\n            change x by (-4)\n        end\n        hide\n        wait (pick random (1) to (5)) seconds\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\n\n@ ice Trampoline\n\nwhen flag clicked\nhide\n\nwhen I receive [intro v]\nforever\n    if <(level) = [11]> then\n        show\n        go to x: (-9) y: (-79)\n    end\n    if <(level) = [12]> then\n        go to x: (-79) y: (-79)\n        show\n    end\n    if <(level) = [13]> then\n        hide\n    end\n    if <(level) = [14]> then\nend\n\n@intro\n\nwhen flag clicked\nstart sound ((0) + (1))\nset volume to (100) %\nset [ghost v] effect to (100)\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\nset size to (100) %\npoint in direction (90)\ncreate clone of (_myself_ v)\nrepeat (2)\n    Screen Refresh # [1] i [100]\n    wait (0.6) seconds\n    Screen Refresh # [1] i [0]\n    wait (0.6) seconds\nend\ngo to x: (0) y: (0)\nswitch costume to (c1 v)\ncreate clone of (_myself_ v)\nset [brightness v] effect to (0)\nrepeat (30)\n    switch costume to (c2 v)\n    create clone of (_myself_ v)\nend\nwait (0.5) seconds\nswitch costume to (name v)\ncreate clone of (_myself_ v)\nScreen Refresh # [2] i [0]\nwait (2.5) seconds\nset [brightness v] effect to (5)\nswitch costume to (slide v)\ngo to x: (0) y: (-300)\nrepeat (3)\n    create clone of (_myself_ v)\n    wait (0.2) seconds\n    change [brightness v] effect by (30)\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [1]> then\n    repeat (2)\n        clear graphic effects\n        wait (0.6) seconds\n        set [brightness v] effect to (100)\n        wait (0.6) seconds\n    end\nelse\n    if <(costume [number v]) = [2]> then\n        set [ghost v] effect to (0)\n        wait (i1) seconds\n        repeat (10)\n            change size by (-6)\n            change [ghost v] effect by (10)\n        end\n    else\n        if <(costume [number v]) = [3]> then\n            set [brightness v] effect to (0)\n            set size to (0) %\n            repeat (30)\n                change size by (((100) - (size)) / (10))\n                change [ghost v] effect by (-4)\n            end\n            repeat (18)\n                switch costume to (blank v)\n                change size by ((size) / (4))\n                switch costume to (c1 v)\n            end\n        else\n            if <(costume [number v]) = [4]> then\n                go to (random position v)\n                repeat (10)\n                    change x by ((x position) / (-4))\n                    change y by ((y position) / (-4))\n                    change [ghost v] effect by (-10)\n                end\n                delete this clone\n            else\n                if <(costume [number v]) = [6]> then\n                    set [i1 v] to [50]\n                    set size to (0) %\n                    clear graphic effects\n                    repeat (64)\n                        change size by (((100) - (size)) / (4))\n                        point in direction ((90) + (([tan v] of (i1) ) * (5)))\n                        change [i1 v] by (5)\n                    end\n                    repeat (9)\n                        turn right (((180) - (direction)) / (4)) degrees\n                        change size by ((size) / (-4))\n                        change [ghost v] effect by (20)\n                    end\n                else\n                    if <<(costume [number v]) > [6]> and <(costume [number v]) < [9]>> then\n                        clear graphic effects\n                        set size to (pick random (40) to (50)) %\n                        repeat (30)\n                            change x by (i1)\n                            change y by (i2)\n                            change [i2 v] by (-1)\n                            change [ghost v] effect by (3.5)\n                        end\n                    else\n                        if <(costume [number v]) = [9]> then\n                            set [ghost v] effect to (0)\n                            repeat (18)\n                                change x by ((x position) / (-4))\n                                change y by ((y position) / (-4))\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nwait (1.65) seconds\nbroadcast (intro v)\nhide\n\ndefine Screen Refresh # (#) i (i)\nif <(#) = [1]> then\n    set [i1 v] to [0.03]\n    switch costume to (costume2 v)\n    set [brightness v] effect to (i)\n    go to x: (0) y: (-150)\n    repeat (10)\n        create clone of (_myself_ v)\n        change y by (40)\n        change [i1 v] by (0.03)\n    end\nelse\n    if <(#) = [2]> then\n        repeat (30)\n            set [i1 v] to (pick random (-5) to (5))\n            set [i2 v] to (pick random (10) to (15))\n            switch costume to (pick random (7) to (8))\n            create clone of (_myself_ v)\n        end\n    end\nend\n\n@snow particles\n\nwhen flag clicked\nhide\n\nwhen I receive [intro v]\nwait (2) seconds\nforever\n    wait (.001) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\nswitch costume to (costume1 v)\nset [ghost v] effect to (pick random (10) to (90))\nset size to (pick random (50) to (100)) %\ngo to (random position v)\nset y to (300)\npoint in direction (180)\nrepeat until <touching (level v)?>\n    change [ym v] by (1)\n    move (ym) steps\nend\nhide\ndelete this clone\n\n@volume button\n\nwhen flag clicked\nhide\nswitch costume to (on v)\ngo to x: (210) y: (155)\nforever\n    if <(costume [number v]) = [1]> then\n        set volume to (100) %\n    else\n        if <(costume [number v]) = [2]> then\n            set volume to (0) %\n        end\n    end\n    if <touching (mouse-pointer v)?> then\n        set size to (125) %\n    else\n        set size to (100) %\n    end\nend\n\nwhen I receive [intro v]\nwait (2.50) seconds\nshow\nforever\n    play sound [idk song someone tell me v] until done\nend\n\nwhen this sprite clicked\nnext costume\n\nwhen flag clicked\nforever\n    point in direction ((([sin v] of ((timer) * (1000)) ) * (4)) + (90))\nend\n\n@Sprite1\n\nwhen I receive [intro v]\nwait (2) seconds\nshow\ngo to x: (-189) y: (-157)\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (20)\n    else\n        set [brightness v] effect to (0)\n    end\n    if <(level) = [23]> then\n        hide\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nbroadcast (end v)\nwait (1) seconds\n\nwhen flag clicked\nif <(level) = [23]> then\n    hide\nend\n\n
                    Welcome to my third platformer. :)        \n Task- Get the cold player back to his home! :)\n- Controls -\n- Arrow Keys or WASD to move\n- Up Arrow To Jump ( You can wall jump )\n- Dodge The Dangerous Things And fun dangerous stuff!! :D\nPlease Leave a ❤️ and ⭐ will be highly appreciated.\nIf you think this level is hard click on the skip button.\nIf you don't want the music, click the volume button.\n