-Frost- | Platformer Game
@Stage\n\n@player\n\nwhen flag clicked\nset [level v] to [1]\nset [x velocity v] to [0]\nset [y velocity v] to [0]\nset [brightness v] effect to (0)\ngo to x: (-214) y: (-120)\nforever\n    Platform Gravity: [-1] Jump Height: [15] Side Movement Speed [3] Friction [.7] Slope: [8]\nend\n\ndefine Platform Gravity: (gravity) Jump Height: (jump height) Side Movement Speed (side movement) Friction (friction) Slope: (slope)\nchange [y velocity v] by (gravity)\nchange y by (Y Velocity)\nif <touching (ground v)?> then\n    repeat until <not <touching (ground v)?>>\n        change y by ((([abs v] of (Y Velocity) ) / (Y Velocity)) * (-1))\n    end\n    set [y velocity v] to (<<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <(([abs v] of (Y Velocity) ) / (Y Velocity)) = [-1]>> * (jump height))\nend\nset [x velocity v] to (((X Velocity) + ((<<key (left arrow v) pressed?> or <key (a v) pressed?>> * ((side movement) * (-1))) + (<<key (right arrow v) pressed?> or <key (d v) pressed?>> * (side movement)))) * (friction))\nchange x by (X Velocity)\nset [slope v] to [0]\nrepeat until <<(Slope) = ((slope) * (-1))> or <not <touching (ground v)?>>>\n    change y by (1)\n    change [slope v] by (-1)\nend\nif <touching (ground v)?> then\n    change y by (Slope)\n    repeat until <not <touching (ground v)?>>\n        change x by ((([abs v] of (X Velocity) ) / (X Velocity)) * (-1))\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (lava v)?> then\n        broadcast (Death v)\n        go to x: (-214) y: (-120)\n    end\n    if <touching (endoflevel v)?> then\n        change [level v] by (1)\n        go to x: (-214) y: (-120)\n    end\n    if <touching (bouncepad v)?> then\n        set [y velocity v] to [22]\n    end\nend\n\nwhen flag clicked\nhide variable [☁ high score v]\nforever\n    if <(Level) = [11]> then\n        set [gameover v] to [true]\n        if <(Your Time) < (☁ High Score)> then\n            wait (.01) seconds\n            set [☁ high score v] to (Your Time)\n            show variable [☁ high score v]\n        end\n    end\nend\n\nset [☁ high score v] to [59]\n\n@ground\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\nset [level v] to [10]\n\n@lava\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\n@endOfLevel\n\n@bouncePad\n\nwhen flag clicked\nforever\n    switch costume to (Level)\n    go to x: (-58) y: (-30)\nend\n\nset [level v] to [10]\n\n@title/end\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to [front v] layer\nshow\nwait (.5) seconds\nhide\n\nwhen flag clicked\nforever\n    if <(Gameover) = [true]> then\n        show\n        switch costume to (costume2 v)\n        wait (1) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    play sound [TheFatRat - Time Lapse v] until done\nend\n\nswitch costume to (costume1 v)\nshow\ngo to [front v] layer\n\n@shadows\n\nwhen flag clicked\nforever\n    switch costume to (Level)\n    go to [back v] layer\nend\n\n@death\n\nwhen I receive [death v]\nswitch costume to (death v)\nwait (.5) seconds\nswitch costume to (normal v)\n\nwhen flag clicked\nswitch costume to (normal v)\n\n@Sprite1\n\nwhen flag clicked\nforever\n    go to (player v)\n    go to [back v] layer\nend\n\n@o\n\nwhen flag clicked\nset [gameover v] to [false]\nset size to (100) %\ngo to x: (230) y: (170)\nforever\n    if <(Your Time) > [10]> then\n        switch costume to (((Your Time) mod (10)) + (1))\n    else\n        switch costume to ((Your Time) + (1))\n    end\nend\n\nwhen flag clicked\nshow\nforever\n    go to [front v] layer\n    if <(Gameover) = [true]> then\n        go to x: (40) y: (40)\n        set size to (300) %\n    end\nend\n\n@t\n\nwhen flag clicked\nshow\nforever\n    go to [front v] layer\n    if <(Gameover) = [true]> then\n        go to x: (0) y: (40)\n        set size to (300) %\n    end\nend\n\nwhen flag clicked\nset size to (100) %\ngo to x: (218) y: (170)\nforever\n    if <(Your Time) > [9]> then\n        switch costume to ((((Your Time) - ((Your Time) mod (10))) / (10)) + (1))\n    else\n        switch costume to (0 v)\n    end\nend\n\nwhen flag clicked\nset [your time v] to [0]\nwait (1) seconds\nwait until <key (any v) pressed?>\nrepeat until <(Gameover) = [true]>\n    change [your time v] by (1)\n    wait (1) seconds\nend\n\n@h\n\nwhen flag clicked\nforever\n    if <(Gameover) = [true]> then\n        go to x: (-40) y: (40)\n        set size to (300) %\n    end\nend\n\nwhen flag clicked\nshow\nset size to (100) %\ngo to x: (206) y: (170)\nforever\n    go to [front v] layer\n    if <(Your Time) > [99]> then\n        switch costume to ((((Your Time) - ((Your Time) mod (100))) / (100)) + (1))\n    else\n        switch costume to (0 v)\n    end\nend\n\n@snowflakes\n\nwhen flag clicked\nhide\nforever\n    wait (.1) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\ngo to [front v] layer\nshow\ngo to x: (pick random (-240) to (240)) y: (180)\nrepeat until <<touching (ground v)?> or <<touching (lava v)?> or <touching (bouncepad v)?>>>\n    change y by (-2)\n    turn right (5) degrees\nend\nif <<touching (ground v)?> or <<touching (lava v)?> or <touching (bouncepad v)?>>> then\n    wait (.5) seconds\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nforever\n    if <<touching (sprite1 v)?> or <touching (shadows v)?>> then\n        set [brightness v] effect to (-30)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\n
GAME INSTRUCTIONS\n-Arrow Keys to move\n-Red- Don't touch, lava\n-Yellow- Bouncy\n\nThe timer only starts when you start\n\nThere are currently 10 levels to complete\nComment what you got!