Snow Explosion! || Platformer
@Stage\n\nwhen flag clicked\nset [pitch v] effect to (30)\nforever\n    play sound [Lil Mosey - Jet To The West \[Audio\] v] until done\nend\n\n@For Zero Lag\n\n@Player\n\nwhen flag clicked\n\nwhen flag clicked\nshow\nreset timer\ngo to [front v] layer\nswitch costume to (center v)\ngo to x: (-186) y: (-12)\nset [x vel v] to [0]\nset [y vel v] to [0]\nforever\n    broadcast (play v)\nend\n\nwhen I receive [play v]\nPlay\n\ndefine Play\nif <key (right arrow v) pressed?> then\n    change [x vel v] by (1)\nend\nif <key (left arrow v) pressed?> then\n    change [x vel v] by (-1)\nend\nchange x by (X vel)\nset [x vel v] to ((X vel) * (0.9))\nif <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 ((X vel) * (-1))\n                        change y by (-5)\n                        if <key (up arrow v) pressed?> then\n                            if <(X vel) > [0]> then\n                                set [x vel v] to [-10]\n                            else\n                                set [x vel v] to [10]\n                            end\n                            set [y vel v] to [15]\n                        else\n                            set [x vel v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nchange [y vel v] by (-1)\nchange y by (Y vel)\nif <touching (level v)?> then\n    change y by ((Y vel) * (-1))\n    set [y vel v] to [0]\nend\nchange y by (-1)\nif <key (up arrow v) pressed?> then\n    if <touching (level v)?> then\n        set [y vel v] to [13]\n    end\nend\nchange y by (1)\nchange [scroll y v] by ((y position) * (-1))\nif <touching (spikes v)?> then\n    go to x: (-196) y: (-61)\nend\nif <[240] < (x position)> then\n    go to x: (-196) y: (-61)\n    broadcast (next level 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\nswitch costume to (images-animated-gif v)\n\nwhen flag clicked\nforever\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > [20]>>>> then\n        switch costume to (2a v)\n        if <<<mouse down?> and <(mouse y) > ((y position) + (20))>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n            switch costume to (4a v)\n        end\n    else\n        if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < [-20]>>>> then\n            switch costume to (1a v)\n            if <<<(mouse y) > ((y position) + (20))> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n                switch costume to (5a v)\n            end\n        else\n            switch costume to (3a v)\n            if <<<(mouse y) > ((y position) + (20))> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n                switch costume to (6a v)\n            end\n        end\n    end\n    if <<<(YV) < [-1.5]> and <<(PARACHUTE) = [1]> and <(water) < [3]>>> and <<key (space v) pressed?> or <mouse down?>>> then\n        switch costume to (join (letter (1) of (costume [name v])) [b])\n    end\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@Level\n\nwhen flag clicked\nset [ghost v] effect to (0)\nshow\nswitch costume to (costume1 v)\ngo to x: (34) y: (3)\n\nwhen I receive [next level v]\nnext costume\n\n@Spikes\n\nwhen flag clicked\nset [ghost v] effect to (20)\nshow\nswitch costume to (costume2 v)\ngo to x: (1) y: (-33)\ngo to [front v] layer\n\nwhen I receive [next level v]\nnext costume\n\n@Background\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\ngo to [back v] layer\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [12]> then\n        broadcast (snowwwww v)\n    end\nend\n\n@thumbnail\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\n@Snow\n\nwhen flag clicked\nset [tick v] to [0]\nset [fade v] to [0.7]\nforever\n    create clone of (_myself_ v)\n    wait (fade) seconds\n    change [tick v] by (4)\n    if <[0] < (fade)> then\n        change [fade v] by (-0.1)\n    end\nend\n\nwhen I start as a clone\nswitch costume to (snow v)\nswitch costume to (big v)\nset size to (pick random (30) to (400)) %\nswitch costume to (snow v)\nset [me v] to (pick random (30) to (-30))\nset [ghost v] effect to (pick random (0) to (70))\ngo to x: (pick random (-240) to (240)) y: (200)\npoint in direction (pick random (170) to (150))\nrepeat until <<[140] < (x position)> or <(y position) < [-100]>>\n    move ((0.5) + ((size) * (0.01))) steps\n    turn right ((1) * ([sin v] of ((2) * ((tick) + (me))) )) degrees\nend\ndelete this clone\n\nwhen flag clicked\n\nwhen I receive [snowwwww v]\nforever\n    switch costume to (costume1 v)\nend\n\n@Shadow\n\nwhen flag clicked\nset [ghost v] effect to (40)\nforever\n    set x to ((140) + ((14) * ([sin v] of ((tick) * (2)) )))\n    set y to ((-90) + ((24) * ([sin v] of ((tick) * (1.3)) )))\nend\n\nwhen flag clicked\nset [color v] effect to (74)\ngo to [front v] layer\nforever\n    go to (player v)\nend\n\nset [ghost v] effect to (20)\n\nchange [color v] effect by (1)\n\n@Grant_4_Lyf\n\nwhen flag clicked\ngo to x: (-148) y: (144)\nset size to (40) %\nset [ghost v] effect to (30)\ngo to [front v] layer\n\nset size to (60) %\n\n
~~~~~~~~~Snow Explosion! || Platformer~~~~~~~~~\n\no Use WASD to move!\no Heart and star!\no Add your comments on advice\no enjoy!\n-@Grant_4_Lyf @Tik_KashLexing_Tok\n\nNumber 30 trending studio: 2/5/2021 https://scratch.mit.edu/studios/28230075/ \n\nMore Games:\n@Grant_4_Lyf