Elements 2:A Platformer. Ice. #Games #All

Instructions: Use w ,a ,s ,d or arrow keys to move. You are the hero who must collect four element keys to defeat the evil king. Please love, star and maybe follow. If you beat the game comment, "I got the Ice Key!"Go to my sister, \ncs4050919. https://scratch.mit.edu/users/cs4050919/\nShe has something big coming in a few weeks.

@Stage\n\n@Sprite1\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [cover v]\nhide\nwait (3) seconds\nshow\nswitch backdrop to (lev.1 v)\nset [y v] to [0]\nswitch costume to (costume1 v)\ngo to x: (-163) y: (74)\nshow\nforever\n    if <touching color (#00ffff)?> then\n        set [y v] to [0]\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            set [y v] to [11]\n        end\n    end\n    change y by (y)\n    change [y v] by (-1)\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(x position) > (mouse x)>>> then\n        change [x v] by (-0.8)\n        switch costume to (costume2 v)\n    end\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        switch costume to (costume1 v)\n        change [x v] by (0.8)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (sprite4 v)?> then\n        switch backdrop to (next backdrop v)\n        go to x: (-163) y: (74)\n    end\n    if <<touching (sprite5 v)?> or <<touching color (#bbbbbb)?> or <touching color (#ff0000)?>>> then\n        go to x: (-163) y: (74)\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\nshow\ngo to x: (-9) y: (-16)\npoint in direction (90)\nswitch costume to (ninja chrismas v)\nswitch backdrop to (backdrop1 v)\nset size to (100) %\nset [ghost v] effect to (0)\nrepeat (14)\n    set size to (100) %\n    wait (0.4) seconds\n    set size to (110) %\nend\nwait (0.5) seconds\nrepeat (50)\n    set size to (100) %\n    wait (0.1) seconds\n    set size to (110) %\nend\nrepeat (10)\n    change size by (10)\nend\nrepeat (14)\n    set size to (100) %\n    wait (0.4) seconds\n    set size to (110) %\nend\nrepeat (24)\n    turn left (15) degrees\nend\nswitch costume to (costume1 v)\nrepeat (10)\n    set size to (100) %\n    wait (0.4) seconds\n    set size to (110) %\nend\nrepeat (24)\n    turn left (15) degrees\nend\nswitch backdrop to (backdrop2 v)\nrepeat (14)\n    set size to (100) %\n    wait (0.4) seconds\n    set size to (110) %\nend\nrepeat (15)\n    change [ghost v] effect by (5)\nend\nhide\nwait (3) seconds\nswitch backdrop to (cover v)\nwait (3) seconds\nswitch backdrop to (lev.1 v)\n\nwhen backdrop switches to [cover v]\nstop [other scripts in sprite v]\nhide\n\n@Sprite3\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [lev.1 v]\nshow\ngo to [back v] layer\nforever\n    go to x: (446) y: (-1)\n    glide (3) secs to x: (-467) y: (-19)\nend\n\n@Confetti\n\nwhen flag clicked\nhide\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nclear graphic effects\npoint in direction (90)\nswitch costume to (pick random (1) to (6))\nset size to (pick random (50) to (150)) %\nset [brightness v] effect to (pick random (-25) to (25))\ngo to [front v] layer\nshow\nset [s v] to (pick random (1) to (2))\nif <(S) = [1]> then\n    go to x: (-240) y: (-1000)\n    set [v v] to (pick random (5) to (10))\n    set [d v] to [5]\nelse\n    if <(S) = [2]> then\n        set [v v] to (pick random (-5) to (-10))\n        go to x: (240) y: (-1000)\n        set [d v] to [-5]\n    end\nend\nset [i v] to (pick random (15) to (30))\nchange y by (I)\nrepeat until <(y position) < [-179]>\n    turn right (D) degrees\n    change [ghost v] effect by (2)\n    change y by (I)\n    change [i v] by (-1)\n    change x by (V)\n    set [v v] to ((V) * (.995))\nend\ndelete this clone\n\nwhen backdrop switches to [cover v]\nstop [other scripts in sprite v]\nhide\n\n@Sprite4\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [lev.1 v]\ngo to x: (-1) y: (-1)\nshow\n\n@Sprite5\n\n@Sprite6\n\nwhen flag clicked\ngo to x: (197) y: (-37)\nset size to (100) %\ngo to [front v] layer\nshow\n\nwhen this sprite clicked\nswitch backdrop to (cover v)\nhide\n\n@Guide\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [lev.1 v]\ngo to x: (-17) y: (57)\nset size to (100) %\nshow\nsay [Hello] for (1) seconds\nsay (username) for (1) seconds\nsay [You made it to the Ice realm.] for (2.5) seconds\n\nwhen backdrop switches to [lev.2 v]\nstop [other scripts in sprite v]\ngo to x: (-17) y: (57)\nset size to (100) %\nshow\nsay [The ice key is at the end of frozen mountains.] for (2) seconds\nsay [Avoid holes.] for (1) seconds\n\nwhen backdrop switches to [lev.3 v]\nstop [other scripts in sprite v]\ngo to x: (-17) y: (57)\nset size to (100) %\nshow\nsay [You must remember the stuff you stay clear of.] for (2) seconds\n\nwhen backdrop switches to [lev.4 v]\nstop [other scripts in sprite v]\ngo to x: (-17) y: (57)\nset size to (100) %\nshow\nsay [Hang upside down on your head.] for (2.5) seconds\n\nwhen backdrop switches to [lev.5 v]\nstop [other scripts in sprite v]\ngo to x: (-17) y: (57)\nset size to (100) %\nshow\nsay [A cave that leads through frozen mountains.] for (2.5) seconds\n\nwhen backdrop switches to [lev.7 v]\nstop [other scripts in sprite v]\ngo to x: (-17) y: (57)\nset size to (100) %\nshow\nsay [Icicle spikes. Watch out!] for (2) seconds\n\nwhen backdrop switches to [lev.8 v]\nstop [other scripts in sprite v]\ngo to x: (-17) y: (57)\nset size to (100) %\nshow\nsay [Razors!] for (2) seconds\n\nwhen backdrop switches to [lev.10 v]\nstop [other scripts in sprite v]\ngo to x: (-17) y: (57)\nset size to (100) %\nshow\nsay [That razor moves.] for (2) seconds\n\nwhen backdrop switches to [lev.11 v]\nstop [other scripts in sprite v]\ngo to x: (-17) y: (57)\nset size to (100) %\nshow\nsay [You are going up into the lava level of the mountain] for (3.5) seconds\n\nwhen backdrop switches to [lev.12 v]\nstop [other scripts in sprite v]\ngo to x: (-17) y: (57)\nset size to (100) %\nshow\nsay [Lava!] for (2) seconds\n\nwhen backdrop switches to [lev.13 v]\nstop [other scripts in sprite v]\ngo to x: (-17) y: (57)\nset size to (100) %\nshow\nsay [We are on the other side of the mountain.] for (3) seconds\n\nwhen backdrop switches to [backdrop3 v]\nhide\n\n@Sprite7\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\n\nwhen backdrop switches to [lev.1 v]\nset size to (80) %\ngo to x: (-88) y: (-159)\ngo to [front v] layer\nshow\n\nwhen this sprite clicked\nif <(volume) = [100]> then\n    switch costume to (costume2 v)\n    set volume to (0) %\nelse\n    switch costume to (costume1 v)\n    set volume to (100) %\nend\n\nwhen flag clicked\nstop all sounds\nset volume to (100) %\nrepeat (1)\n    play sound [Tobu - Nostalgia3 v] until done\nend\n\nwhen backdrop switches to [backdrop2 v]\nwait (8) seconds\nrepeat (10)\n    change volume by (-10)\n    wait (0.1) seconds\nend\nstop all sounds\n\nwhen backdrop switches to [cover v]\nstop all sounds\nset volume to (100) %\nforever\n    play sound [Music v] until done\nend\n\n@Sprite8\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [lev.8 v]\nshow\nset size to (60) %\ngo to x: (22) y: (-67)\nforever\n    switch costume to (costume2 v)\n    wait (0.1) seconds\n    switch costume to (costume3 v)\n    wait (0.1) seconds\n    switch costume to (costume4 v)\n    wait (0.1) seconds\n    switch costume to (costume5 v)\n    wait (0.1) seconds\n    switch costume to (costume6 v)\n    wait (0.1) seconds\n    switch costume to (costume7 v)\n    wait (0.1) seconds\n    switch costume to (costume8 v)\n    wait (0.1) seconds\nend\n\nwhen backdrop switches to [lev.9 v]\nstop [other scripts in sprite v]\nshow\nset size to (60) %\ngo to x: (22) y: (-67)\nforever\n    switch costume to (costume2 v)\n    wait (0.1) seconds\n    switch costume to (costume3 v)\n    wait (0.1) seconds\n    switch costume to (costume4 v)\n    wait (0.1) seconds\n    switch costume to (costume5 v)\n    wait (0.1) seconds\n    switch costume to (costume6 v)\n    wait (0.1) seconds\n    switch costume to (costume7 v)\n    wait (0.1) seconds\n    switch costume to (costume8 v)\n    wait (0.1) seconds\nend\n\nwhen backdrop switches to [lev.10 v]\nstop [other scripts in sprite v]\nshow\nset size to (60) %\ngo to x: (22) y: (-67)\nforever\n    glide (1) secs to x: (22) y: (-67)\n    switch costume to (costume2 v)\n    wait (0.1) seconds\n    switch costume to (costume3 v)\n    wait (0.1) seconds\n    switch costume to (costume4 v)\n    wait (0.1) seconds\n    switch costume to (costume5 v)\n    wait (0.1) seconds\n    switch costume to (costume6 v)\n    wait (0.1) seconds\n    switch costume to (costume7 v)\n    wait (0.1) seconds\n    switch costume to (costume8 v)\n    wait (0.1) seconds\n    glide (1) secs to x: (-146) y: (-70)\nend\n\nwhen backdrop switches to [lev.11 v]\nhide\n\nwhen backdrop switches to [lev.14 v]\nstop [other scripts in sprite v]\nshow\nset size to (60) %\ngo to x: (22) y: (-67)\nforever\n    switch costume to (costume2 v)\n    wait (0.1) seconds\n    switch costume to (costume3 v)\n    wait (0.1) seconds\n    switch costume to (costume4 v)\n    wait (0.1) seconds\n    switch costume to (costume5 v)\n    wait (0.1) seconds\n    switch costume to (costume6 v)\n    wait (0.1) seconds\n    switch costume to (costume7 v)\n    wait (0.1) seconds\n    switch costume to (costume8 v)\n    wait (0.1) seconds\nend\n\nwhen backdrop switches to [backdrop3 v]\nhide\n\n