Mount everest II A platformer


@Stage\n\nwhen I receive [start v]\nset [level v] to [1]\n\nwhen I receive [start v]\nforever\n    play sound [Easy Go v] until done\nend\n\n@1\n\ndefine Platform (jump heigh) (graity) (friction) (running speed)\nif <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>> then\n    change [xvel v] by (running speed)\nend\nif <<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)) * (-2))\n        end\n    end\n    if <<(([abs v] of (Yvel) ) / (Yvel)) = [-1]> and <<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 [scrollx v] to ((x position) * (-0.5))\nset [scrolly v] to ((y position) * (-0.5))\n\nwhen I receive [play da gaem v]\ngo to x: (-190) y: (-32)\nshow\nforever\n    Platform [13] [-1] [0.7] [3]\n    if <(y position) < [-190]> then\n        go to x: (-190) y: (-32)\n    end\n    if <key (r v) pressed?> then\n        go to x: (-190) y: (-32)\n        wait until <not <key (r v) pressed?>>\n    end\n    if <key (s v) pressed?> then\n        go to x: (-190) y: (-32)\n        change [level v] by (1)\n        wait until <not <key (s v) pressed?>>\n    end\n    if <(x position) > [232]> then\n        go to x: (-190) y: (-32)\n        change [level v] by (1)\n    end\n    if <touching (spikes v)?> then\n        go to x: (-190) y: (-32)\n    end\nend\n\nwhen flag clicked\nhide\n\n@level\n\nwhen flag clicked\nhide\n\nwhen I receive [play da gaem v]\nforever\n    show\n    switch costume to (level)\n    go to x: (Scrollx) y: (Scrolly)\nend\n\n@intro\n\nwhen flag clicked\npoint in direction (90)\nclear graphic effects\ngo to x: (0) y: (0)\nhide\nswitch costume to (back v)\ncreate clone of (_myself_ v)\nwait (.1) seconds\nswitch costume to (logo v)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(costume [number v]) = [2]> then\n    go to x: (0) y: (0)\n    show\n    forever\n        repeat (10)\n            change [brightness v] effect by (1)\n        end\n        repeat (10)\n            change [brightness v] effect by (-1)\n        end\n    end\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [1]> then\n    go to x: (0) y: (0)\n    set size to (200) %\n    show\n    set [ghost v] effect to (100)\n    repeat (20)\n        change size by (-5)\n        change [ghost v] effect by (-5)\n    end\n    forever\n        go to [front v] layer\n    end\nend\n\nwhen flag clicked\nplay sound [avengers v] until done\nstart sound [Crunch v]\nswitch costume to (block v)\ncreate clone of (_myself_ v)\nplay sound [Revenge v] until done\nwait (.5) seconds\nbroadcast (start v)\n\nwhen I start as a clone\nif <(costume [number v]) = [3]> then\n    go to x: (0) y: (0)\n    show\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [1]> then\n    wait (2) seconds\n    forever\n        repeat (10)\n            change y by (1)\n        end\n        repeat (10)\n            change y by (-1)\n        end\n    end\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [3]> then\n    go to x: (0) y: (0)\n    show\n    forever\n        repeat (10)\n            change y by (1)\n        end\n        repeat (10)\n            change y by (-1)\n        end\n    end\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [1]> then\n    wait (2) seconds\n    forever\n        repeat (10)\n            turn right (1) degrees\n        end\n        repeat (20)\n            turn left (1) degrees\n        end\n        repeat (10)\n            turn right (1) degrees\n        end\n    end\nend\n\nwhen I receive [start v]\ndelete this clone\n\n@Shadow\n\nwhen I receive [play da gaem v]\nforever\n    go to [back v] layer\n    set [ghost v] effect to (86)\n    set [brightness v] effect to (-100)\n    show\n    switch costume to (level)\n    go to (level v)\nend\n\nwhen flag clicked\nhide\n\ngo to x: (Scrollx) y: (Scrolly)\n\n@Spikes\n\nwhen I receive [play da gaem v]\nforever\n    show\n    switch costume to (level)\n    go to x: (Scrollx) y: (Scrolly)\nend\n\nwhen flag clicked\nhide\n\n@Play\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\nforever\n    set y to (0)\n    set x to ((0) + (([cos v] of (((timer) - (3)) * (200)) ) * (20)))\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [120]>\n            change size by (10)\n        end\n        if <mouse down?> then\n            broadcast (Play da gaem v)\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (-10)\n        end\n    end\nend\n\nwhen I receive [play da gaem v]\nhide\n\n@Text thingy\n\nwhen I receive [play da gaem v]\nhide\n\nwhen I receive [start v]\nshow\nforever\n    set y to (30)\n    set x to (0)\n    point in direction ((90) + (([cos v] of (((timer) - (3)) * (200)) ) * (20)))\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [play da gaem v]\nhide\n\n@Thumbnail\n\nwhen flag clicked\nforever\n    show\n    go to [front v] layer\n    set [ghost v] effect to (100)\n    go to x: (0) y: (0)\nend\n\n