Snow II Platformer (mobile friendly) #all #games
@Stage\n\nwhen I receive [start v]\nforever\n    play sound [TheFatRat - Fly Away feat. Anjulie.mp3 v] until done\nend\n\nwhen I receive [unmute v]\nset volume to (100) %\n\nwhen I receive [mute v]\nset volume to (0) %\n\nwhen flag clicked\n\nwhen I receive [start project v]\nbroadcast (Start v)\n\n@Player\n\ndefine Spin off screen\nset rotation style [all around v]\nset [player death v] to [1]\nstart sound [crashed oof v]\nset [y v v] to [15]\nrepeat until <(y position) < [-178]>\n    go to [front v] layer\n    turn right (10) degrees\n    change y by (Y v)\n    change [y v v] by (-1)\nend\nset [player death v] to [0]\ngo to [back v] layer\nset rotation style [left-right v]\npoint in direction (90)\ngo [forward v] (3) layers\ngo to [front v] layer\n\nnext backdrop\n\nwhen I start as a clone\nclear graphic effects\nset size to (100) %\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-10)\nend\ndelete this clone\n\nwhen I receive [start v]\nhide variable [☁ world record v]\nhide variable [☁ your time v]\nreset timer\nswitch costume to (1 v)\nswitch backdrop to (2 v)\nshow\nforever\n    change y by (1)\n    change [y v] by (-1)\n    if <<key (right arrow v) pressed?> or <<(mouse x) > [1]> and <mouse down?>>> then\n        change [x v] by (1)\n        point in direction (90)\n        create clone of (_myself_ v)\n    end\n    if <<key (left arrow v) pressed?> or <<(mouse x) < [-1]> and <mouse down?>>> then\n        change [x v] by (-1)\n        point in direction (-90)\n        create clone of (_myself_ v)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        set [y v] to [0]\n        if <<key (up arrow v) pressed?> or <<(mouse y) > [50]> and <mouse down?>>> then\n            set [y v] to [15]\n            if <(x) > [0]> then\n                set [x v] to [-10]\n            else\n                set [x v] to [10]\n            end\n        else\n            set [y v] to [0]\n        end\n    end\n    change y by (y)\n    if <touching (ground v)?> then\n        change y by ((0) - (y))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<<key (up arrow v) pressed?> and <touching (ground v)?>> or <<mouse down?> and <<touching (ground v)?> and <(mouse y) > [50]>>>> then\n        start sound [suck1 v]\n        set [y v] to [15]\n        create clone of (_myself_ v)\n    end\n    if <touching (magma v)?> then\n        Spin off screen\n    end\n    if <touching (spike v)?> then\n        Spin off screen\n    else\n        if <[-166] > (y position)> then\n            go to x: (-199) y: (-60)\n        end\n    end\n    if <touching color (#ffff00)?> then\n        start sound [smw_spring_jump @ToadfanSchool v]\n        set [y v] to [23]\n        create clone of (_myself_ v)\n        broadcast (アニメーション v)\n    end\n    if <<key (down arrow v) pressed?> or <<[-50] > (mouse y)> and <mouse down?>>> then\n        broadcast (Crouch v)\n        switch costume to (4 v)\n        if <[-166] > (y position)> then\n            go to x: (-199) y: (-60)\n        end\n    else\n        switch costume to (3 v)\n    end\n    if <(Stage) = [9]> then\nend\n\nwhen flag clicked\ngo [forward v] (10) layers\nhide variable [☁ world record v]\nhide variable [☁ your time v]\nhide\n\nwhen I receive [start v]\ngo [forward v] (3) layers\ngo to x: (-199) y: (-60)\nset rotation style [left-right v]\npoint in direction (90)\nset size to (100) %\nset [x v] to [0]\nset [y v] to [0]\nshow\n\nSpin off screen\n\n@Ground\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [back v] layer\ngo [forward v] (5) layers\nforever\n    switch costume to (Stage)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\n\nwhen flag clicked\nset [stage v] to [1]\n\nwhen I receive [goal v]\nchange [stage v] by (1)\n\n@Spike\n\nwhen flag clicked\nswitch costume to (コスチューム3 v)\nhide variable [☁ world record v]\nhide variable [☁ your time v]\nhide\n\nwhen I receive [goal v]\nwait (0.5) seconds\nnext costume\n\nwhen I receive [start v]\nshow\nswitch costume to (コスチューム1 v)\n\n@Magma\n\nwhen I receive [start v]\nshow\n\nwhen I receive [goal v]\nwait (0.5) seconds\nnext costume\n\nwhen flag clicked\ngo [forward v] (5) layers\nhide\nswitch costume to (コスチューム1 v)\nforever\n    repeat (3)\n        change y by ((8) * (0.9))\n    end\n    wait (0.4) seconds\n    repeat (3)\n        change y by ((-8) * (0.9))\n    end\nend\n\nwhen flag clicked\ngo to x: (0) y: (0)\n\nset y to (12)\n\nwhen flag clicked\nset y to (0)\nforever\n    change y by (YYY)\nend\n\nwhen flag clicked\nset [yyy v] to [0]\nforever\n    repeat (10)\n        change [☁ world record v] by (-0.1)\n    end\n    repeat (20)\n        change [☁ world record v] by (0.1)\n    end\n    repeat (10)\n        change [☁ world record v] by (-0.1)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Stage) = [5]> then\n        go to [back v] layer\n    else\n        go [forward v] (5) layers\n    end\nend\n\n@スプライト1\n\nwhen flag clicked\nshow\nset [ghost v] effect to (50)\ngo to [front v] layer\ngo [forward v] (5) layers\n\n@skip\n\nwhen flag clicked\nswitch costume to (grass v)\nhide\nset size to (75) %\nforever\n    point in direction (([sin v] of ((timer) * (1200)) ) + (90))\n    wait (..2) seconds\n    if <(Stage) > [6]> then\n        switch costume to (cave v)\n    else\n        switch costume to (grass v)\n    end\n    if <(Stage) = [11]> then\n        hide\n    end\nend\n\nwhen I receive [start v]\nshow\ngo to [front v] layer\ngo to x: (-180) y: (-155)\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\nend\n\nwhen this sprite clicked\nbroadcast (Goal v)\n\nwhen I receive [cutscene boss v]\nhide\n\n@スプライト3\n\nwhen I receive [start v]\ngo to x: (-201) y: (138)\nswitch costume to (100% v)\nshow\nforever\n    go to [back v] layer\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        if <(costume [name v]) = [0%]> then\n            switch costume to (100% v)\n            broadcast (Unmute v)\n        else\n            switch costume to (0% v)\n            broadcast (Mute v)\n        end\n        wait until <not <mouse down?>>\n    end\nend\n\nwhen flag clicked\nhide\n\n@:D\n\nwhen flag clicked\nset [ghost v] effect to (100)\nshow\ngo to [front v] layer\n\n@スプライト4\n\n@transition\n\nwhen flag clicked\nhide\n\nwhen I receive [goal v]\nset [trans on or off v] to [On]\ngo to [front v] layer\ngo [forward v] (1) layers\nset x to (500)\nshow\nrepeat (6)\n    change x by (-80)\nend\nchange x by (-15)\nwait (0.6) seconds\nset [trans on or off v] to [Off]\nrepeat (5)\n    change x by (-80)\nend\nhide\n\n@Awesome Particles\n\nwhen I start as a clone\nset [ghost v] effect to (65)\ngo to [back v] layer\nshow\nif <(size) > [99]> then\n    glide (6) secs to x: (x position) y: (-200)\n    delete this clone\nend\nif <(size) > [80]> then\n    glide (5) secs to x: (x position) y: (-200)\n    delete this clone\nend\nif <(size) > [65]> then\n    glide (4) secs to x: (x position) y: (-200)\n    delete this clone\nend\nif <(size) > [50]> then\n    glide (3) secs to x: (x position) y: (-200)\n    delete this clone\nend\nif <(size) > [40]> then\n    glide (2.5) secs to x: (x position) y: (-200)\n    delete this clone\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nforever\n    set [brightness v] effect to (pick random (-10) to (10))\n    set size to (pick random (41) to (90)) %\n    go to x: (pick random (-200) to (200)) y: (180)\n    create clone of (_myself_ v)\n    wait (pick random (0.2) to (0.6)) seconds\nend\n\nwhen I receive [stop all v]\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\n@shadow\n\nwhen flag clicked\ngo to [back v] layer\nset [ghost v] effect to (75)\nforever\n    go to (player v)\nend\n\n@Intro\n\nwhen I start as a clone\nif <(Clone ID) = [Watermark]> then\n    Keyframe [1.8]\n    show\n    switch costume to (watermark v)\n    set size to (100) %\n    switch costume to (pos hack v)\n    go to x: (0) y: (-50)\n    repeat until <(timer) > [8]>\n        switch costume to (pos hack v)\n        change y by (((0) - (y position)) / (10))\n        switch costume to (watermark v)\n    end\n    repeat (50)\n        switch costume to (pos hack v)\n        change y by (((-50) - (y position)) / (10))\n        switch costume to (watermark v)\n    end\nend\n\nwhen flag clicked\nStart Intro\n\ndefine Start Intro\nreset timer\nset volume to (100) %\nstart sound [Music v]\nhide\nclear graphic effects\nset [clone id v] to [Parent]\nset [var 1 v] to [0.1]\nset [var 2 v] to [-5]\ndelete all of [intro v]\nadd [0] to [intro v]\nadd [0] to [intro v]\nadd [100] to [intro v]\nadd [90] to [intro v]\nCreate Particles\nCreate Clone [Keyframe]\nCreate Clone [Back]\npoint in direction (90)\nrepeat (8)\n    turn right (45) degrees\n    Create Clone [Line]\nend\nCreate Clone [Text]\nCreate Clone [Circle]\nCreate Clone [Top0.5]\nCreate Clone [Bottom0.5]\nCreate Clone [Top000]\nCreate Clone [Bottom000]\nCreate Clone [Pos Master]\nCreate Clone [Watermark]\n\ndefine Create Clone (id)\nset [# v] to (Clone ID)\nset [clonex v] to (x position)\nset [cloney v] to (y position)\nset [clonedir v] to (direction)\nset [clone size v] to (size)\nset [clone id v] to (id)\ngo to x: (0) y: (0)\npoint in direction (90)\nset size to (100) %\ncreate clone of (_myself_ v)\ngo to x: (CloneX) y: (CloneY)\npoint in direction (CloneDir)\nset size to (Clone Size) %\nset [clone id v] to (#)\n\ndefine Set Size to (size)\nset [costume # v] to (costume [number v])\nif <(size) > [100]> then\n    switch costume to (size hack v)\nend\nset size to (size) %\nswitch costume to (Costume #)\n\ndefine Go to (x) (y)\nset [costume # v] to (costume [number v])\nswitch costume to (pos hack v)\ngo to x: (x) y: (y)\nswitch costume to (Costume #)\n\ndefine Go to (x) (y) (z) (focal length)\nset [costume # v] to (costume [number v])\nswitch costume to (pos hack v)\nset [x v] to ((focal length) * (((x) + (item (1) of [intro v])) / ((z) + (item (3) of [intro v]))))\nset [intro: y v] to ((focal length) * (((y) + (item (2) of [intro v])) / ((z) + (item (3) of [intro v]))))\npoint in direction (item (4) of [intro v])\ngo to x: (X) y: (Intro: Y)\nswitch costume to (Costume #)\n\nwhen I start as a clone\nif <(Clone ID) = [Keyframe]> then\n    Keyframe [1.8]\n    Beat [2]\n    Size Thing [2.7] [1]\n    Create Clone [Left]\n    Create Clone [Right]\n    Size Thing [3.5] [2]\n    Size Thing [4.4] [1]\n    Size Thing [5.2] [2]\n    Create Clone [Left]\n    Create Clone [Right]\n    Size Thing [6.1] [1]\n    Size Thing [7.0] [2]\n    Size Thing [7.8] [1]\n    Create Clone [Left]\n    Create Clone [Right]\n    Size Thing [8.7] [2]\n    broadcast (Start Project v)\nend\nif <(Clone ID) = [Pos Master]> then\n    repeat until <(timer) > [4]>\n        replace item (4) of [intro v] with ((([cos v] of ((timer) * (100)) ) * (5)) + (90))\n    end\n    point in direction (item (4) of [intro v])\n    set [var 1 v] to [1]\n    repeat (15)\n        turn right (Var 1) degrees\n        change [var 1 v] by ((Var 1) / (4))\n        replace item (4) of [intro v] with (direction)\n    end\n    repeat (20)\n        turn right (((90) - (direction)) / (5)) degrees\n        replace item (4) of [intro v] with (direction)\n    end\n    repeat until <(timer) > [6.1]>\n        replace item (4) of [intro v] with ((([cos v] of ((timer) * (100)) ) * (5)) + (90))\n    end\n    repeat until <(timer) > [7.0]>\n        replace item (2) of [intro v] with ((item (2) of [intro v]) + (((-500) - (item (2) of [intro v])) / (5)))\n        replace item (4) of [intro v] with ((([cos v] of ((timer) * (100)) ) * (5)) + (90))\n    end\n    repeat until <(timer) > [7.8]>\n        replace item (2) of [intro v] with ((item (2) of [intro v]) + (((300) - (item (2) of [intro v])) / (5)))\n        replace item (4) of [intro v] with ((([cos v] of ((timer) * (100)) ) * (5)) + (90))\n    end\n    repeat until <(timer) > [10]>\n        replace item (2) of [intro v] with ((item (2) of [intro v]) + (((0) - (item (2) of [intro v])) / (5)))\n        replace item (4) of [intro v] with ((([cos v] of ((timer) * (100)) ) * (5)) + (90))\n    end\nend\n\ndefine Size Thing (time) (type)\nrepeat until <(timer) > (time)>\n    replace item (3) of [intro v] with ((item (3) of [intro v]) + (Var 2))\n    change [var 2 v] by (0.4)\nend\nBeat (type)\nset [var 1 v] to [0.1]\nset [var 2 v] to [-5]\n\ndefine Keyframe (time)\nwait until <(timer) > (time)>\n\nwhen I start as a clone\nif <(Clone ID) = [Text]> then\n    show\n    switch costume to (oc v)\n    repeat until <(timer) > [4.5]>\n        point in direction (item (4) of [intro v])\n        go to x: (0) y: (0)\n        Set Size to (item (3) of [intro v])\n    end\n    switch costume to (text  v)\n    set [color v] effect to (0)\n    repeat until <(timer) > [6.1]>\n        point in direction (item (4) of [intro v])\n        go to x: (0) y: (0)\n        Set Size to (item (3) of [intro v])\n    end\n    repeat until <(timer) > [7]>\n        point in direction (item (4) of [intro v])\n        go to x: (0) y: ((y position) + (((50) - (y position)) / (5)))\n        Set Size to (item (3) of [intro v])\n    end\n    repeat until <(timer) > [7.8]>\n        point in direction (item (4) of [intro v])\n        go to x: (0) y: ((y position) + (((-50) - (y position)) / (5)))\n        Set Size to (item (3) of [intro v])\n    end\n    repeat until <(timer) > [10]>\n        point in direction (item (4) of [intro v])\n        go to x: (0) y: ((y position) + (((0) - (y position)) / (5)))\n        Set Size to (item (3) of [intro v])\n    end\nend\nif <(Clone ID) = [Circle]> then\n    show\n    set [brightness v] effect to (-100)\n    switch costume to (circle2 v)\n    Keyframe [1.8]\n    switch costume to (circle v)\n    set [var 1 v] to [20]\n    repeat (8)\n        Set Size to ((size) + (Var 1))\n        change [var 1 v] by (10)\n        go to [front v] layer\n    end\n    repeat (30)\n        Set Size to ((size) + (Var 1))\n        change [var 1 v] by (((0) - (Var 1)) / (7))\n        go to [front v] layer\n    end\n    delete this clone\nend\nif < (Clone ID) contains [Top]?> then\n    show\n    switch costume to (top v)\n    wait (join (letter (4) of (Clone ID)) (join (letter (5) of (Clone ID)) (letter (6) of (Clone ID)))) seconds\n    set [var 1 v] to [0.1]\n    repeat until <(timer) > [5]>\n        Go to (x position) ((y position) + (Var 1))\n        change [var 1 v] by ((Var 1) / (5))\n    end\nend\nif < (Clone ID) contains [Bottom]?> then\n    show\n    switch costume to (bottom v)\n    wait (join (letter (7) of (Clone ID)) (join (letter (8) of (Clone ID)) (letter (9) of (Clone ID)))) seconds\n    set [var 1 v] to [0.1]\n    repeat until <(timer) > [5]>\n        Go to (x position) ((y position) - (Var 1))\n        change [var 1 v] by ((Var 1) / (5))\n    end\nend\nif <(Clone ID) = [Diamond 1]> then\n    show\n    switch costume to (diamond 1 v)\n    set [var 2 v] to [100]\n    set [var 1 v] to [0]\n    Set Size to [0]\n    forever\n        Go to [0] [0] (size) (size)\n        Set Size to (((Var 1) + (item (3) of [intro v])) / (2))\n        change [var 1 v] by (((Var 2) - (Var 1)) / (5))\n    end\nend\nif <(Clone ID) = [Diamond 3]> then\n    show\n    switch costume to (diamond 1 v)\n    set [var 2 v] to [100]\n    set [var 1 v] to [0]\n    set [brightness v] effect to (-100)\n    set [ghost v] effect to (85)\n    Set Size to [0]\n    forever\n        Set Size to ((((Var 1) + (item (3) of [intro v])) / (2)) - (0))\n        change [var 1 v] by (((Var 2) - (Var 1)) / (5))\n        Go to ((size) / (5)) ((size) / (-5)) (size) (size)\n    end\nend\nif <(Clone ID) = [Diamond 2]> then\n    show\n    switch costume to (diamond 2 v)\n    set [var 2 v] to [100]\n    set [var 1 v] to [0]\n    Set Size to [0]\n    forever\n        Go to [0] [0] (size) (size)\n        Set Size to (((Var 1) + (item (3) of [intro v])) / (2))\n        change [var 1 v] by (((Var 2) - (Var 1)) / (5))\n    end\nend\nif <(Clone ID) = [Diamond 4]> then\n    show\n    switch costume to (diamond 2 v)\n    set [var 2 v] to [100]\n    set [var 1 v] to [0]\n    set [brightness v] effect to (-100)\n    set [ghost v] effect to (85)\n    Set Size to [0]\n    forever\n        Set Size to ((((Var 1) + (item (3) of [intro v])) / (2)) - (0))\n        change [var 1 v] by (((Var 2) - (Var 1)) / (5))\n        Go to ((size) / (10)) ((size) / (-10)) (size) (size)\n    end\nend\n\nwhen I receive [{intro} beat v]\nif <(Clone ID) = [Diamond 1]> then\n    change [var 2 v] by ((Var 2) / (0.5))\nend\nif <(Clone ID) = [Diamond 3]> then\n    change [var 2 v] by ((Var 2) / (0.5))\nend\nif <(Clone ID) = [Diamond 2]> then\n    change [var 2 v] by ((Var 2) / (0.5))\nend\nif <(Clone ID) = [Diamond 4]> then\n    change [var 2 v] by ((Var 2) / (0.5))\nend\n\ndefine Beat (type)\nif <(type) = [1]> then\n    broadcast ({Intro} Beat v)\n    Create Clone [Diamond 3]\n    Create Clone [Diamond 1]\nend\nif <(type) = [2]> then\n    broadcast ({Intro} Beat v)\n    Create Clone [Diamond 4]\n    Create Clone [Diamond 2]\nend\n\nwhen I start as a clone\nif <(Clone ID) = [Back]> then\n    show\n    switch costume to (back v)\n    forever\n        go to [back v] layer\n    end\nend\nif <(Clone ID) = [Line]> then\n    Keyframe [1.8]\n    show\n    switch costume to (line 1 v)\n    set [var 1 v] to [10]\n    point in direction (CloneDir)\n    repeat (11)\n        move (Var 1) steps\n        set [var 1 v] to ((Var 1) * (0.9))\n    end\n    repeat (11)\n        move (Var 1) steps\n        set [var 1 v] to ((Var 1) * (0.9))\n        next costume\n        change [ghost v] effect by (10)\n    end\n    delete this clone\nend\nif <(Clone ID) = [Left]> then\n    show\n    switch costume to (left v)\n    set [brightness v] effect to (100)\n    Go to [-400] [0]\n    repeat (30)\n        Go to ((x position) + (((400) - (x position)) / (10))) [0]\n    end\n    delete this clone\nend\nif <(Clone ID) = [Right]> then\n    show\n    switch costume to (right v)\n    set [brightness v] effect to (100)\n    Go to [400] [0]\n    repeat (30)\n        Go to ((x position) + (((-400) - (x position)) / (10))) [0]\n    end\n    delete this clone\nend\n\nwhen I receive [start project v]\nif <(Clone ID) = [Text]> then\n    stop [other scripts in sprite v]\n    point in direction (90)\n    repeat (30)\n        set [x v] to (([sin v] of ((timer) * (750)) ) * (((25) - (size)) * (0.75)))\n        set [intro: y v] to (([cos v] of ((timer) * (750)) ) * (((25) - (size)) * (0.75)))\n        go to x: (X) y: (Intro: Y)\n        change size by (((25) - (size)) / (10))\n    end\n    repeat (20)\n        set [x v] to (([sin v] of ((timer) * (750)) ) * (((25) - (size)) * (0.75)))\n        set [intro: y v] to (([cos v] of ((timer) * (750)) ) * (((25) - (size)) * (0.75)))\n        go to x: (X) y: (Intro: Y)\n        change size by (((25) - (size)) / (10))\n        change [ghost v] effect by (5)\n    end\n    delete this clone\nelse\n    stop [other scripts in sprite v]\n    delete this clone\nend\n\ndefine Create Particles\nrepeat (150)\n    Create Clone [Particle]\nend\n\nwhen I start as a clone\nif <(Clone ID) = [Particle]> then\n    Keyframe [1]\n    set [var 1 v] to (pick random (-180) to (180))\n    set [var 2 v] to (pick random (1) to (1000))\n    show\n    switch costume to (particle v)\n    set [brightness v] effect to (100)\n    set [ghost v] effect to (25)\n    set size to (10) %\n    forever\n        set [x v] to (([sin v] of ((Var 1) + (item (4) of [intro v])) ) * (((Var 2) + (item (3) of [intro v])) / (2)))\n        set [intro: y v] to (([cos v] of ((Var 1) + (item (4) of [intro v])) ) * (((Var 2) + (item (3) of [intro v])) / (2)))\n        Go to ((X) + (item (1) of [intro v])) ((Intro: Y) + (item (2) of [intro v]))\n    end\nend\n\n
NEW ANIMATION! https://scratch.mit.edu/projects/473547733\n\nHow to move - Use arrow keys or mobile controls\nDo not touch - Spike - Magma\nHow to skip  -  Click skip button\n\nFollow MY ALT @-TNTMC-