✦ Icy Valley || A Platformer ✦
@Stage\n\n@Player\n\nwhen flag clicked\npoint in direction (90)\ngo to x: (0) y: (0)\nset size to (100) %\nswitch costume to (1 v)\nswitch backdrop to (home v)\nhide\n\nwhen I receive [intro3 v]\ngo to [front v] layer\ngo [backward v] (1) layers\nshow\n\nwhen I receive [intro3 v]\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nswitch costume to (1 v)\nrepeat (10)\n    change size by (-6)\n    change [ghost v] effect by (8)\nend\ndelete this clone\n\nwhen I receive [play !!! v]\nstop all sounds\nforever\n    play sound [MountainSiffle2 v] until done\nend\n\nwhen I receive [play !!! v]\nswitch backdrop to (mountain v)\n\nwhen I receive [play !!! v]\nshow\ngo to [front v] layer\nset size to (75) %\nglide (0.25) secs to x: (-200) y: (0)\nset [ma variable v] to [0]\nset [yv v] to [0]\nforever\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > [0]>>>> then\n        point in direction (90)\n        change [ma variable v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <[0] > (mouse x)>>>> then\n        point in direction (-90)\n        change [ma variable v] by (-1)\n    end\n    set [ma variable v] to ((ma variable) * (0.9))\n    change x by (ma variable)\n    if <touching (level v)?> then\n        change y by (1)\n        if <touching (level v)?> then\n            change y by (1)\n            if <touching (level v)?> then\n                change y by (1)\n                if <touching (level v)?> then\n                    change y by (1)\n                    if <touching (level v)?> then\n                        change y by (1)\n                        if <touching (level v)?> then\n                            change x by ((ma variable) * (-1))\n                            change y by (-5)\n                        end\n                        if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n                            if <(ma variable) > [0]> then\n                                set [ma variable v] to [-5]\n                            else\n                                set [ma variable v] to [5]\n                            end\n                            set [yv v] to [10]\n                        else\n                            set [yv v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <touching (level v)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching (level v)?> then\n        if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            set [yv v] to [15]\n        end\n    end\n    change y by (1)\n    if <(x position) > [220]> then\n        set [ma variable v] to [0]\n        set [yv v] to [0]\n        start sound [Magic Spell v]\n        broadcast (new v)\n        go to x: (-200) y: (0)\n    end\n    if <[-160] > (y position)> then\n        💀\n    end\n    if <touching (spikes v)?> then\n        💀\n    end\n    if <touching (dangers v)?> then\n        💀\n    end\n    if <touching (sprouïck v)?> then\n        💀\n    end\n    if <touching (bounces v)?> then\n        set [yv v] to [22]\n    end\nend\n\nwhen I receive [change v]\n\nwhen I receive [change v]\nnext costume\n\nwhen I receive [play !!! v]\nwait until <([costume # v] of [level v]) = [17]>\nstop [other scripts in sprite v]\nswitch backdrop to (end v)\nglide (0.2) secs to x: (0) y: (0)\npoint in direction (90)\nstop all sounds\nforever\n    play sound [MountainSiffle v] until done\nend\n\nwhen I receive [new v]\ngo to x: (-200) y: (50)\n\nwhen I receive [skip 1 v]\nwait (0.00000000000001) seconds\ngo to x: (-200) y: (0)\n\ndefine 💀\nset [ma variable v] to [0]\nset [yv v] to [0]\nstart sound [Crunch v]\nrepeat (20)\n    change [ghost v] effect by (5)\n    change y by (2)\n    change size by (.2)\n    change [brightness v] effect by (8)\nend\nset size to (15) %\nclear graphic effects\ngo to x: (-200) y: (0)\nset size to (75) %\n\n@level\n\nwhen flag clicked\nswitch costume to (1 v)\nhide\n\nwhen I receive [play !!! v]\ngo to [front v] layer\nshow\n\nwhen I receive [new v]\nnext costume\n\nif <(costume [number v]) = [17]> then\n    broadcast (END + v)\nend\n\nwhen I receive [end v]\nswitch costume to (t18 v)\nstop [other scripts in sprite v]\n\nwhen I receive [new v]\nwait until <(costume [number v]) = [8]>\nbroadcast (skip 1 v)\n\nwhen I receive [new v]\nwait until <(costume [number v]) = [9]>\nbroadcast (skip 1 v)\n\nwhen I receive [new v]\nwait until <(costume [number v]) = [9]>\nswitch backdrop to (cave v)\n\nwhen I receive [new v]\nwait until <(costume [number v]) = [10]>\nbroadcast (skip 1 v)\n\nwhen I receive [new v]\nwait until <(costume [number v]) = [12]>\nswitch backdrop to (cavend v)\n\nwhen I receive [new v]\nwait until <(costume [number v]) = [13]>\nswitch backdrop to (mountain pics v)\n\nwhen I receive [new v]\nwait until <(costume [number v]) = [13]>\nbroadcast (skip 1 v)\n\nwhen I receive [new v]\nwait until <(costume [number v]) = [16]>\nswitch backdrop to (mountain pics2 v)\n\nwhen flag clicked\n\nwait until <(costume [number v]) = [17]>\nbroadcast (end v)\n\nwhen I receive [💀 v]\n\n@Sprite2\n\nwhen I receive [intro3 v]\nhide\nforever\n    create clone of (_myself_ v)\n    wait (0.2) seconds\nend\n\nwhen I start as a clone\nshow\ngo to [back v] layer\nset [ghost v] effect to (pick random (45) to (90))\nset size to (pick random (40) to (70)) %\ngo to x: (240) y: (pick random (-180) to (180))\nglide (pick random (1) to (3)) secs to x: (-240) y: (pick random (-180) to (180))\ndelete this clone\n\nwhen flag clicked\nhide\n\n@SuperCookii\n\nwhen flag clicked\ngo to x: (0) y: (0)\nclear graphic effects\npoint in direction (90)\nswitch costume to (1 v)\nset size to (200) %\nchange [ghost v] effect by (10)\nshow\nrepeat (20)\n    change size by (-10)\n    change [ghost v] effect by (-5)\nend\nrepeat (24)\n    change size by (4)\nend\nset size to (125) %\nwait (0.2) seconds\nset size to (100) %\nbroadcast (intro1 v)\n\nwhen flag clicked\nplay sound [MountainSiffle v] until done\nstop [other scripts in sprite v]\nbroadcast (intro3 v)\nrepeat (5)\n    change [ghost v] effect by (20)\nend\nhide\n\nwhen I receive [intro2 v]\nset size to (90) %\npoint in direction (90)\nset rotation style [all around v]\nrepeat (10)\n    turn right (1) degrees\n    change size by (2.5)\nend\nrepeat (10)\n    turn left (1) degrees\nend\nwait (0.1) seconds\nrepeat (10)\n    turn left (1) degrees\n    change size by (-2.5)\nend\nglide (0.1) secs to x: (0) y: (70)\nrepeat (10)\n    turn right (1) degrees\n    change size by (-2)\nend\ngo to x: (0) y: (0)\nbroadcast (message1 v)\nset size to (100) %\nswitch costume to (2 v)\n\nwhen flag clicked\nrepeat until <(backdrop [name v]) = [Black Cloud]>\n    go to [front v] layer\n    go [backward v] (1) layers\nend\n\nwhen I receive [end v]\nhide\n\nwhen I receive [intro3 v]\ngo to [back v] layer\nshow\nset rotation style [all around v]\nforever\n\nset size to (100) %\n\nchange [color v] effect by (-1.5)\n\n@SuperCookiiTitle\n\nwhen I receive [message1 v]\nclear graphic effects\nset size to (200) %\nset [color v] effect to (100)\ngo to [front v] layer\nshow\nrepeat (25)\n    change size by (-2)\n    change [color v] effect by (-4)\nend\nset size to (100) %\nwait (2) seconds\nhide\n\nchange [pixelate v] effect by (-4)\n\nwhen flag clicked\nhide\n\nwhen I receive [intro3 v]\nrepeat (5)\n    change [ghost v] effect by (20)\nend\n\nset [pixelate v] effect to (100)\n\n@Transitions\n\nwhen flag clicked\nhide\nclear graphic effects\nswitch costume to (4 v)\ngo to [back v] layer\nshow\n\nwhen I receive [intro1 v]\nswitch costume to (1 v)\nshow\ncreate clone of (_myself_ v)\nwait (0.5) seconds\nswitch costume to (3 v)\ncreate clone of (_myself_ v)\nwait (0.5) seconds\ngo to x: (0) y: (0)\nswitch costume to (4 v)\nbroadcast (intro2 v)\n\nwhen I start as a clone\ngo to [front v] layer\ngo [backward v] (1) layers\nchange [color v] effect by (50)\ngo to x: (500) y: (0)\nglide (0.6) secs to x: (-500) y: (0)\ndelete this clone\n\nwhen I receive [intro3 v]\nswitch costume to (1 v)\nshow\ncreate clone of (_myself_ v)\nwait (0.6) seconds\nhide\n\n@change\n\nwhen flag clicked\nswitch costume to (1 v)\nset size to (160) %\npoint in direction (90)\nhide\n\nwhen I receive [intro3 v]\ngo to [back v] layer\nshow\n\nwhen this sprite clicked\nbroadcast (change v)\n\nwhen I receive [play !!! v]\nhide\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (2 v)\n    else\n        switch costume to (1 v)\n    end\nend\n\n@play\n\nwhen flag clicked\nset size to (150) %\npoint in direction (90)\nhide\n\nwhen I receive [intro3 v]\ngo to [back v] layer\nshow\nset rotation style [all around v]\nforever\n    repeat (10)\n        turn right (1) degrees\n        change size by (1)\n    end\n    repeat (10)\n        turn left (1) degrees\n    end\n    wait (1) seconds\n    repeat (10)\n        turn left (1) degrees\n        change size by (-1)\n    end\n    repeat (10)\n        turn right (1) degrees\n    end\nend\n\nwhen I receive [intro3 v]\nrepeat until <(backdrop [number v]) = [3]>\n    play sound [... v] until done\nend\n\nwhen this sprite clicked\nbroadcast (PLAY !!! v)\nhide\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (2 v)\n    else\n        switch costume to (1 v)\n    end\nend\n\n@skip\n\nwhen flag clicked\nset size to (2) %\npoint in direction (90)\nhide\n\nwhen this sprite clicked\nbroadcast (new v)\n\nwhen I receive [play !!! v]\nset size to (70) %\ngo to [front v] layer\nshow\ngo to x: (-210) y: (-150)\n\nwhen [s v] key pressed\nif <(size) = [70]> then\n    broadcast (new v)\nend\n\nwhen I receive [end v]\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        go to [front v] layer\n        switch costume to (1 v)\n        change [color v] effect by (0.5)\n    else\n        switch costume to (2 v)\n        go to [front v] layer\n    end\nend\n\nwhen I receive [play !!! v]\nwait until <([costume # v] of [level v]) = [17]>\nset size to (2) %\nhide\n\n@FAVE DETECT\n\nwhen flag clicked\nwait until <(fav) = [1]>\nbroadcast (FAVE v)\n\nif <[3] < (timer)> then\n\nrepeat (10)\n\nwhen flag clicked\nwait until <(timer) > [5]>\nforever\n    set [fav v] to <touching (mouse-pointer v)?>\nend\n\n@LOVE DETECT\n\nwhen flag clicked\nwait until <(timer) > [5]>\nforever\n    set [love? v] to <touching (mouse-pointer v)?>\nend\n\nwhen flag clicked\nwait until <(love?) = [1]>\nbroadcast (LOVE v)\n\n@Mess\n\nwhen flag clicked\nhide\nwait (40) seconds\nswitch costume to (mess cool v)\nT2\n\ndefine T1\nclear graphic effects\nset [color v] effect to (200)\nset [ghost v] effect to (200)\ngo to x: (0) y: (0)\nshow\nrepeat (25)\n    change [color v] effect by (-8)\n    change [ghost v] effect by (-8)\nend\nwait (0.5) seconds\nhide\n\nwhen I receive [love v]\nswitch costume to (love cool v)\nT2\n\nwhen I receive [fave v]\nswitch costume to (fave cool v)\nT2\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nreset timer\n\ndefine T2\nclear graphic effects\nset [ghost v] effect to (200)\ngo to x: (0) y: (0)\nshow\nrepeat (25)\n    change [ghost v] effect by (-8)\nend\nwait (2.5) seconds\nrepeat (25)\n    change [ghost v] effect by (8)\nend\nhide\n\nwhen I receive [💀 v]\n\nif <(ALERT) = [1]> then\n    switch costume to (oops not cool v)\n    T3\nelse\n    hide\nend\n\ndefine T3\nclear graphic effects\nset [ghost v] effect to (200)\ngo to x: (0) y: (0)\nshow\nrepeat (25)\n    change [ghost v] effect by (-8)\nend\nwait (0.5) seconds\nrepeat (25)\n    change [ghost v] effect by (8)\nend\nhide\n\nT2\n\nwhen I receive [new v]\n\nif <(ALERT) = [1]> then\n    switch costume to (next cool v)\n    T1\nelse\n    hide\nend\n\n@Spikes\n\nwhen flag clicked\nswitch costume to (1 v)\nhide\n\nwhen I receive [play !!! v]\nshow\nforever\n    go to [back v] layer\nend\n\nwhen I receive [new v]\nnext costume\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\n@Bounces\n\nwhen flag clicked\nswitch costume to (1 v)\nhide\n\nwhen I receive [new v]\nnext costume\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [play !!! v]\nshow\nforever\n    go to [back v] layer\nend\n\n@Dangers\n\nwhen I receive [play !!! v]\nshow\nforever\n    go to [back v] layer\nend\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\nset size to (100) %\ngo to x: (0) y: (-120)\nswitch costume to (1 v)\nhide\n\nwhen I receive [new v]\nnext costume\n\nwhen I receive [play !!! v]\nforever\n    set rotation style [all around v]\n    turn right (3) degrees\nend\n\n@Sprite1\n\nwhen flag clicked\nchange [ghost v] effect by (500)\nforever\n    go to [front v] layer\nend\n\n
☃︎☃︎☃︎☃︎☃︎✦ Icy Valley || A Platformer ✦☃︎☃︎☃︎☃︎☃︎\n\nPlease ❤️, ⭐️, Comment, Remix & Follow For More ☻ :)\n\n--- Instuctions ---\n\n✭ Use the arrows, WASD or Mobile to advance or jump !\n✭ Don't touch the spikes or dangers !\n✭ Win and have fun ;) ! [ 16 LEVELS ]\n✭ "S" to skip the level ;) 100% POSSIBLE !\n\n--- Making Off, Credits & Tags ---\n\n✭ ≈ 3 days of Work !\n✭ ❤️ & ⭐️ Detector by @TimMcCool\n✭ Particule by @rolibdan32\n✭ Music : Time Lapse by TheFatRat\n✭ Tags : #SuperCookii #Platformer #French \n✭ ✘⨂✘⨂✘ AD = Delete ✘⨂✘⨂✘\n\n--- Achievements ---\n\n✭ 1st Of The French Trending ✅\n✭ 1k View ✅\n✭ 250 Loves ✅\n✭ 10 Remix ✅\n✭ 2,5k View ✅