Snow! || A Mobile Friendly Platformer #games

Instructions:                         ❄️Snow! A Platformer❄️\n                  ❄️EVERY LEVEL IS POSSIBLE!❄️\n❄️Use arrow keys to move \n❄️If your on mobile, use mobile controls!\n❄️Avoid Blue Spikes, Saws, Lava, and Enemies\n❄️Get Pass 10 different levels\n❄️Get to the green flag for the next level\n❄️Have fun!

@Stage\n\n@Player\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to [back v] layer\ngo to x: (-200) y: (0)\nset size to (90) %\nforever\n    wait (pick random (2) to (4)) seconds\n    repeat (14)\n        next costume\n    end\n    wait (pick random (0.3) to (0.5)) seconds\n    repeat (14)\n        switch costume to ((costume [number v]) - (1))\n    end\nend\n\nwhen flag clicked\nReset\nforever\n    if <<<key (d v) pressed?> or <key (right arrow v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        create clone of (_myself_ v)\n        change [x velocity v] by (1)\n        point in direction (90)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        create clone of (_myself_ v)\n        change [x velocity v] by (-1)\n        point in direction (-90)\n    end\n    set [x velocity v] to ((X Velocity) * (0.9))\n    change x by (X Velocity)\n    if <touching (ground v)?> then\n        change y by (2)\n        if <touching (ground v)?> then\n            change y by (2)\n            if <touching (ground v)?> then\n                change y by (2)\n                if <touching (ground v)?> then\n                    change x by ((0) - (X Velocity))\n                    change y by (-6)\n                    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <((mouse y) - (y position)) > [50]>>> then\n                        if <(X Velocity) > [0]> then\n                            set [x velocity v] to [-7]\n                        else\n                            set [x velocity v] to [7]\n                        end\n                        set [y velocity v] to [10]\n                    else\n                        set [x velocity v] to [0]\n                    end\n                end\n            end\n        end\n    end\n    change [y velocity v] by (-1)\n    change y by (Y Velocity)\n    if <touching (ground v)?> then\n        change y by ((0) - (Y Velocity))\n        set [y velocity v] to [0]\n    end\n    change y by (-1)\n    if <touching (ground v)?> then\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <((mouse y) - (y position)) > [50]>>> then\n            set [y velocity v] to [14.39]\n        end\n    end\n    change y by (1)\n    if <touching (smasher v)?> then\n        Reset\n    end\n    if <touching (smasher2 v)?> then\n        Reset\n    end\n    if <touching (spikes v)?> then\n        Reset\n    end\n    if <touching (_saw_ v)?> then\n        Reset\n    end\n    if <touching (_saw_2 v)?> then\n        Reset\n    end\n    if <touching (_saw_3 v)?> then\n        Reset\n    end\n    if <touching (_saw_4 v)?> then\n        Reset\n    end\n    if <touching (saw v)?> then\n        Reset\n    end\n    if <touching (saw2 v)?> then\n        Reset\n    end\n    if <touching (_enemy_ v)?> then\n        Reset\n    end\n    if <touching (flag v)?> then\n        broadcast (Next Level v)\n        Reset\n    end\n    if <(x position) < [-240]> then\n        Reset\n    end\n    if <(x position) > [240]> then\n        Reset\n    end\n    if <touching (portal v)?> then\n        broadcast (End v)\n        stop [this script v]\n    end\nend\n\ndefine Reset\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nset [x velocity v] to [0]\nset [y velocity v] to [0]\ngo to x: (-200) y: (0)\npoint in direction (90)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I start as a clone\nrepeat (7)\n    change size by (-7)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I receive [die v]\nReset\n\ngo to [front v] layer\n\nwhen flag clicked\nforever\n    if <touching color (#d90505)?> then\n        Reset\n    end\nend\n\nwhen flag clicked\nstart sound [Vexento - Pixel Party v]\n\n@Flag\n\nwhen flag clicked\ngo to x: (200) y: (-117)\nshow\nforever\n    next costume\n    wait (0.03) seconds\nend\n\nwhen flag clicked\nif <(Level) = [12]> then\n    hide\nend\n\nshow\ngo to [front v] layer\n\n@Ground\n\nwhen flag clicked\nshow\nswitch costume to (level 1 v)\ngo to x: (0) y: (0)\n\nwhen I receive [next level v]\nchange [level v] by (1)\nnext costume\n\nwhen flag clicked\nstart sound [The Fat Rat - Unity \(Without female voice\).mp3 v]\n\n@Spikes\n\nwhen flag clicked\nshow\nswitch costume to (level 1 v)\ngo to x: (0) y: (0)\n\nwhen I receive [next level v]\nnext costume\n\n@Snow\n\nwhen flag clicked\nset [tick v] to [0]\nhide\nforever\n    wait (pick random (0.3) to (0.5)) seconds\n    change [tick v] by (3)\n    create clone of (_myself_ v)\n    if <(Tick) > [3]> then\n        set [tick v] to [0]\n    end\nend\n\nwhen I start as a clone\ngo to x: (pick random (-240) to (240)) y: (180)\nset [me v] to (pick random (-30) to (30))\nset size to (pick random (30) to (50)) %\npoint in direction (180)\ngo to [back v] layer\nshow\nrepeat until <<<touching (ground v)?> or <(y position) < [-120]>> or <<touching (player v)?> or <<(x position) < [-240]> or <(x position) > [240]>>>>\n    turn right (([sin v] of ((Me) - (Tick)) ) / (2)) degrees\n    move (([abs v] of (size) ) / (25)) steps\n    if <(y position) > [181]> then\n        delete this clone\n    end\nend\ndelete this clone\n\n@saw\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset [level v] to [1]\nhide\nforever\n    if <(Level) = [7]> then\n        go to x: (80) y: (-116)\n        show\n        forever\n            wait (0.0.1) seconds\n            turn left (15) degrees\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [8]> then\n        hide\n    end\nend\n\nwhen flag clicked\nif <touching (player v)?> then\n    broadcast (die v)\nend\n\n@saw2\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset [level v] to [1]\nhide\nforever\n    if <(Level) = [7]> then\n        go to x: (25) y: (-116)\n        show\n        forever\n            wait (0.0.1) seconds\n            turn left (15) degrees\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [8]> then\n        hide\n    end\nend\n\nwhen flag clicked\nif <touching (player v)?> then\n    broadcast (die v)\nend\n\n@_saw_\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset [level v] to [1]\nhide\nforever\n    if <(Level) = [9]> then\n        show\n        forever\n            wait (0.0.1) seconds\n            turn left (15) degrees\n        end\n    end\nend\n\ngo to x: (25) y: (-116)\n\nwhen flag clicked\nforever\n    if <(Level) = [10]> then\n        hide\n    end\nend\n\nwhen flag clicked\nif <touching (player v)?> then\n    broadcast (die v)\nend\n\nshow\n\n@_saw_2\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset [level v] to [1]\nhide\nforever\n    if <(Level) = [9]> then\n        show\n        forever\n            wait (0.0.1) seconds\n            turn left (15) degrees\n        end\n    end\nend\n\ngo to x: (25) y: (-116)\n\nwhen flag clicked\nforever\n    if <(Level) = [10]> then\n        hide\n    end\nend\n\nwhen flag clicked\nif <touching (player v)?> then\n    broadcast (die v)\nend\n\nshow\n\n@_saw_3\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset [level v] to [1]\nhide\nforever\n    if <(Level) = [9]> then\n        show\n        forever\n            wait (0.0.1) seconds\n            turn left (15) degrees\n        end\n    end\nend\n\ngo to x: (25) y: (-116)\n\nwhen flag clicked\nforever\n    if <(Level) = [10]> then\n        hide\n    end\nend\n\nwhen flag clicked\nif <touching (player v)?> then\n    broadcast (die v)\nend\n\nshow\n\n@Lava\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <(Level) = [3]> then\n        show\n        switch costume to (costume1 v)\n        wait (0.5) seconds\n        switch costume to (costume2 v)\n        wait (0.5) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [4]> then\n        hide\n    end\nend\n\n@_saw_4\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset [level v] to [1]\nhide\nforever\n    if <(Level) = [2]> then\n        show\n        forever\n            wait (0.0.1) seconds\n            turn left (15) degrees\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [3]> then\n        hide\n    end\nend\n\nwhen flag clicked\nif <touching (player v)?> then\n    broadcast (die v)\nend\n\n@Thumbnail\n\nwhen flag clicked\nhide\n\ngo to [front v] layer\nshow\n\n@Love fave\n\nwhen flag clicked\ngo to [front v] layer\nset [costume v] to [0]\nhide\nforever\n    if <not <<(LOVED__) = [1]> and <(FAVED___) = [1]>>> then\n        wait (pick random (15) to (20)) seconds\n        switch costume to (follow! v)\n        go to x: (0) y: (50)\n        show\n        go to [front v] layer\n        start sound [pop v]\n        repeat (9)\n            change y by (-6)\n        end\n        repeat (5)\n            change y by (3)\n        end\n        repeat (5)\n            change y by (-1)\n        end\n        wait (2) seconds\n        repeat (15)\n            change y by (7)\n        end\n        hide\n    end\n    if <(Costume) > [0]> then\n        hide\n        stop [this script v]\n    end\nend\n\n@_enemy_\n\nwhen flag clicked\ngo to x: (90) y: (-96)\nset size to (100) %\nhide\nforever\n    if <(Level) = [11]> then\n        show\n        glide (1) secs to x: (61) y: (-96)\n        glide (1) secs to x: (-60) y: (-96)\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <(my variable) = [4]>> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [11]> then\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [12]> then\n        hide\n    end\nend\n\n