Snowy parallax l a platformer


@Stage\n\n@Player\n\ndefine Platform (jump heigh) (graity) (friction) (running speed)\nif <<key (d v) pressed?> or <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>>> then\n    change [xvel v] by (running speed)\nend\nif <<key (a v) pressed?> or <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>>> then\n    change [xvel v] by ((running speed) * (-1))\nend\nset [xvel v] to ((Xvel) * (friction))\nchange x by (Xvel)\nif <touching (level v)?> then\n    set [slope v] to [0]\n    repeat until <<(Slope) = [8]> or <not <touching (level v)?>>>\n        change [slope v] by (1)\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by ((Slope) * (-1))\n        repeat ([ceiling v] of ([abs v] of (Xvel) ) )\n            if <touching (level v)?> then\n                change x by ((([abs v] of (Xvel) ) / (Xvel)) * (-1))\n            end\n        end\n        set [xvel v] to [0]\n    end\nend\nchange y by (Yvel)\nif <touching (level v)?> then\n    repeat ([ceiling v] of ([abs v] of (Yvel) ) )\n        if <touching (level v)?> then\n            change y by ((([abs v] of (Yvel) ) / (Yvel)) * (-1))\n        end\n    end\n    if <<(([abs v] of (Yvel) ) / (Yvel)) = [-1]> and <<key (w v) pressed?> or <<key (space v) pressed?> or <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (50))>>>>>> then\n        set [yvel v] to (jump heigh)\n    else\n        set [yvel v] to [0]\n    end\nelse\n    change [yvel v] by (-1)\nend\nset [paralaxx v] to ((x position) * (-0.5))\nset [paralaxy v] to ((y position) * (-0.5))\n\nwhen I receive [play v]\nset size to (100) %\ngo to x: (-201) y: (8)\nset [xvel v] to [0]\nset [yvel v] to [0]\nforever\n    Platform [13] [-1] [0.8] [1.7]\n    create clone of (_myself_ v)\n    if <(y position) < [-189]> then\n        go to x: (-201) y: (8)\n    end\n    if <(x position) > [247]> then\n        go to x: (-201) y: (8)\n        change [level v] by (1)\n    end\n    if <key (r v) pressed?> then\n        go to x: (-201) y: (8)\n    end\nend\n\nwhen flag clicked\nswitch costume to (player1 v)\nshow\nset size to (150) %\ngo to x: (0) y: (0)\nset [level v] to [1]\n\nwhen I start as a clone\nclear graphic effects\nset size to (100) %\nrepeat (20)\n    change [ghost v] effect by (10)\n    change size by (-10)\nend\ndelete this clone\n\nshow\n\nwhen I receive [before player v]\nswitch costume to ((costume [number v]) - (1))\n\nwhen I receive [next player v]\nnext costume\n\n@Level\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\nforever\n    switch costume to (Level)\n    go to x: (ParalaxX) y: (ParalaxY)\nend\n\nwhen I receive [play v]\nshow\n\n@Particle\n\nwhen I start as a clone\nshow\nclear graphic effects\nset size to (pick random (1) to (500)) %\nset [ghost v] effect to (pick random (79) to (111))\ngo to x: (400) y: (pick random (-170) to (180))\nglide (pick random (1.01) to (5)) secs to x: (-240) y: (pick random (-180.1) to (180))\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\nforever\n    create clone of (_myself_ v)\nend\n\n@Text\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\nforever\n    switch costume to (Level)\n    go to x: (ParalaxX) y: (ParalaxY)\nend\n\nwhen I receive [play v]\nshow\n\n@Mountain\n\nwhen flag clicked\nforever\n    go to [back v] layer\n    go to x: ((([x position v] of [player v]) / (10)) * (-1)) y: ((([y position v] of [player v]) / (13)) * (-1))\nend\n\n@Clouds\n\nwhen flag clicked\ngo to [back v] layer\nforever\n    go to [back v] layer\n    go to x: ((([x position v] of [player v]) / (14)) * (-2)) y: ((([y position v] of [player v]) / (15)) * (-2))\nend\n\n@Play\n\nwhen flag clicked\ngo to x: (0) y: (-80)\nshow\ngo to [front v] layer\nforever\n    set y to ((-80) + (([cos v] of (((timer) - (3)) * (400)) ) * (10)))\n    set x to ((0) + (([cos v] of (((timer) - (2)) * (300)) ) * (10)))\n    if <touching (mouse-pointer v)?> then\n        set size to ((120) + (([cos v] of (((timer) - (3)) * (400)) ) * (10))) %\n        if <mouse down?> then\n            broadcast (Play v)\n            hide\n        end\n    else\n        set size to (100) %\n    end\nend\n\n@Name\n\nwhen flag clicked\ngo to x: (0) y: (89)\nshow\nforever\n    point in direction ((90) + (([cos v] of (((timer) - (3)) * (400)) ) * (10)))\nend\n\nwhen I receive [play v]\nhide\n\n@Music\n\nwhen flag clicked\nforever\n    play sound [paths – cactus flower v] until done\nend\n\n@Thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\nclear graphic effects\nshow\nrepeat (2)\n    go to [front v] layer\nend\nwait (3) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nforever\n    if <(username) = [levi_minecraft]> then\n        if <key (5 v) pressed?> then\n            show\n            go to x: (0) y: (0)\n            go to [front v] layer\n        end\n    end\nend\n\nhide\n\n@Before player\n\nwhen flag clicked\ngo to x: (-58) y: (0)\nshow\n\nwhen this sprite clicked\nbroadcast (Before player v)\n\nwhen I receive [play v]\nhide\n\n@Next player\n\nwhen flag clicked\ngo to x: (58) y: (0)\nshow\n\nwhen this sprite clicked\nbroadcast (Next player v)\n\nwhen I receive [play v]\nhide\n\n