Frost - A Neon platformer
@Stage\n\nwhen flag clicked\nforever\n    play sound [Tobu - Cloud 9 v] until done\n    play sound [Tobu - Hope \(Original Mix\).mp3 v] until done\nend\n\n@Thumbnail\n\nwhen flag clicked\nhide\ngo to [front v] layer\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.0000000001)\nshow\nforever\n    go to [front v] layer\nend\n\n@Player\n\nwhen flag clicked\nforever\n    if <key (r v) pressed?> then\n        wait until <not <key (r v) pressed?>>\n        broadcast (Restart v)\n        go to x: (-190) y: (0)\n        set [playerx v] to [0]\n        set [playery v] to [0]\n    end\nend\n\ndefine Player Physics\ngo to [front v] layer\ngo [backward v] (9) layers\nif <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>>> then\n    change [playerx v] by (1.5)\n    switch costume to (player - right v)\nend\nif <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>>> then\n    change [playerx v] by (-1.5)\n    switch costume to (player - left v)\nend\nif <<<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>>> and <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>>> then\n    switch costume to (player - upright v)\nend\nif <<<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>>> and <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>>> then\n    switch costume to (player - upleft v)\nend\nif <not <<key (right arrow v) pressed?> or <<key (left arrow v) pressed?> or <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<key (a v) pressed?> or <<key (d v) pressed?> or <<<mouse down?> and <(mouse x) > (x position)>> or <<mouse down?> and <(mouse x) < (x position)>>>>>>>>>> then\n    switch costume to (player - normal v)\nend\nchange x by (PlayerX)\nif <touching (platforms v)?> then\n    change x by ((PlayerX) * (-1))\n    if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n        if <(PlayerX) > [0]> then\n            set [playerx v] to [-15]\n            set [playery v] to [10]\n        else\n            set [playerx v] to [15]\n            set [playery v] to [10]\n        end\n    else\n        set [playerx v] to [0]\n    end\nelse\n    set [playerx v] to ((PlayerX) * (0.8))\nend\nchange y by (PlayerY)\nif <touching (platforms v)?> then\n    change y by ((PlayerY) * (-1))\n    set [playery v] to [0]\n    if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n        switch costume to (player - up v)\n        if <(Jumping?) = [yes]> then\n            set [playery v] to [12]\n            set [jumping? v] to [no]\n        end\n    end\nelse\n    change [playery v] by (-1)\n    set [jumping? v] to [yes]\nend\nif <(x position) > [239]> then\n    change [level v] by (1)\n    go to x: (-190) y: (20)\n    broadcast (Restart v)\n    set [playerx v] to [0]\n    set [playery v] to [0]\nend\nif <touching (bouncy v)?> then\n    if <(Jumping?) = [yes]> then\n        set [playery v] to [16]\n        set [jumping? v] to [no]\n    end\nend\nif <<<touching (danger v)?> or <(y position) < [-178]>> or <<touching (saws v)?> or <touching (lava v)?>>> then\n    go to x: (-190) y: (50)\n    set [playerx v] to [0]\n    set [playery v] to [0]\n    change [death v] by (1)\nend\n\nif <<key (down arrow v) pressed?> or <<key (s v) pressed?> or <<mouse down?> and <(mouse y) < (y position)>>>> then\n    switch costume to (player - bent v)\nend\n\nwhen flag clicked\nhide\nset [level v] to [1]\nset [death v] to [0]\nset [signal v] to [disactivated]\nhide variable [death v]\nshow\npoint in direction (90)\ngo to x: (-190) y: (20)\nset [playerx v] to [0]\nset [playery v] to [0]\nforever\n    Player Physics\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@Danger\n\nwhen flag clicked\nshow\nforever\n    switch costume to (Level)\n    go to [back v] layer\nend\n\n@Platforms\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nforever\n    switch costume to (Level)\nend\n\n@Light\n\nwhen flag clicked\ngo to [back v] layer\nforever\n    go to x: ([x position v] of [player v]) y: ([y position v] of [player v])\nend\n\n@Saws\n\ndefine New Saw at (x) (y)\ngo to x: (x) y: (y)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nshow\ngo to [back v] layer\nforever\n    turn right (5) degrees\nend\n\nwhen I receive [restart v]\nwait (0.01) seconds\nset size to (200) %\nhide\nif <(Level) = [2]> then\n    set size to (225) %\n    New Saw at [-70] [-60]\nend\nif <(Level) = [3]> then\nif <(Level) = [4]> then\n    New Saw at [-23] [-70]\n    New Saw at [75] [-70]\nend\nif <(Level) = [5]> then\n    New Saw at [-110] [-91]\n    New Saw at [184] [15]\nend\nif <(Level) = [6]> then\n    New Saw at [-15] [15]\n    New Saw at [51] [22]\n    New Saw at [111] [180]\nend\nif <(Level) = [7]> then\n\nwhen I receive [restart v]\ndelete this clone\n\n@Clouds\n\nwhen flag clicked\nhide\nforever\n    wait (pick random (2) to (4)) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\nset [ghost v] effect to (pick random (20) to (30))\ngo to x: (-340) y: (pick random (140) to (80))\nswitch costume to (pick random (1) to (3))\nset size to (pick random (85) to (100)) %\nglide (pick random (5) to (10)) secs to x: (340) y: (y position)\ndelete this clone\n\n@Text\n\nwhen flag clicked\nshow\nforever\n    switch costume to (Level)\n    set [ghost v] effect to (50)\n    go to [front v] layer\nend\n\n@Lava\n\nwhen flag clicked\ngo to [back v] layer\nshow\nforever\n    switch costume to (Level)\n    go to [back v] layer\nend\n\nwhen I receive [end v]\nhide\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    repeat (30)\n        change y by (-0.4)\n    end\n    repeat (30)\n        change y by (0.4)\n    end\nend\n\n@Sprite2\n\ndefine size (zz)\nset size to (0) %\nset [ghost v] effect to (100)\nshow\nrepeat (30)\n    change size by (((zz) - (size)) / (5))\n    change [ghost v] effect by (-1)\nend\nwait (0.1) seconds\nrepeat (30)\n    change [ghost v] effect by (1)\nend\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    point in direction (pick random (0) to (360))\n    set size to (pick random (1) to (3)) %\n    create clone of (_myself_ v)\n    wait (0.5) seconds\n    switch costume to (pick random (1) to (3))\nend\n\nwhen I receive [start game v]\nforever\n    create clone of (_myself_ v)\n    wait (0.5) seconds\nend\n\nwhen I start as a clone\nshow\ngo to [back v] layer\npoint in direction (pick random (0) to (360))\ngo to (random position v)\nswitch costume to (pick random (1) to (3))\nsize (pick random (50) to (200))\n\n@Bouncy\n\nwhen flag clicked\nhide\n\ndefine Trampoline @ (x) (y)\ngo to x: (x) y: (y)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nshow\nforever\n    if <touching (player v)?> then\n        repeat (7)\n            next costume\n        end\n    end\nend\n\nwhen I receive [restart v]\nhide\nwait (0.00000001) seconds\nif <(Level) = [1]> then\nif <(Level) = [2]> then\nif <(Level) = [3]> then\nif <(Level) = [4]> then\nif <(Level) = [5]> then\nif <(Level) = [6]> then\n    Trampoline @ [-130] [-70]\nend\nif <(Level) = [7]> then\nif <(Level) = [8]> then\n\nwhen I receive [restart v]\ndelete this clone\n\n@Bouncy2\n\nwhen flag clicked\nhide\n\ndefine Trampoline @ (x) (y)\ngo to x: (x) y: (y)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nshow\nforever\n    if <touching (player v)?> then\n        repeat (7)\n            next costume\n        end\n    end\nend\n\nwhen I receive [restart v]\nhide\nwait (0.00000001) seconds\nif <(Level) = [1]> then\nif <(Level) = [2]> then\nif <(Level) = [3]> then\nif <(Level) = [4]> then\nif <(Level) = [5]> then\nif <(Level) = [6]> then\n    Trampoline @ [-130] [-70]\nend\nif <(Level) = [7]> then\nif <(Level) = [8]> then\n\nwhen I receive [restart v]\ndelete this clone\n\n
As this is my first shared game I'm going to start simple - a basic platformer. Hope you like it!\nDon't forget to comment!\n\nI'll be posting more soon, don't forget to follow!