COLD A Platformer Game
@Stage\n\nwhen I receive [1 v]\nswitch backdrop to (backdrop2 v)\nforever\n    broadcast (Start v)\n    play sound [Fade v] until done\nend\n\nwhen I receive [2 v]\nswitch backdrop to (backdrop2 v)\nforever\n    broadcast (Start v)\n    play sound [Electro Light v] until done\nend\n\nwhen I receive [3 v]\nswitch backdrop to (backdrop2 v)\nforever\n    broadcast (Start v)\n    play sound [Invincible v] until done\nend\n\nwhen I receive [4 v]\nswitch backdrop to (backdrop2 v)\nbroadcast (Start v)\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\n@player\n\nwhen I receive [start v]\nforever\n    if <<[240] < (x position)> and <(dead) = [0]>> then\n        broadcast (NAXT LEVEL v)\n        change [lv v] by (1)\n        reset\n    end\nend\n\nwhen flag clicked\nhide variable [xv v]\nhide variable [dead v]\nhide variable [lv v]\nhide variable [yv v]\nhide\n\ndefine reset\nclear graphic effects\npoint in direction (90)\ngo to x: (-220) y: (-16)\nswitch costume to (1 v)\nset [dead v] to [0]\nset [xv v] to [0]\nset [yv v] to [0]\nset size to (20) %\nshow\n\ndefine Dead\nset [dead v] to [1]\nrepeat (25)\n    change [ghost v] effect by (4)\nend\nreset\n\nwhen I start as a clone\nswitch costume to (3 v)\nrepeat (10)\n    change [color v] effect by (30)\n    change [ghost v] effect by (10)\n    change size by (-1.5)\nend\ndelete this clone\n\ndefine Tick\nset [dead v] to [0]\nset [lv v] to [1]\nset size to (20) %\nreset\nforever\n    create clone of (_myself_ v)\n    go to [front v] layer\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        switch costume to (1 v)\n        change [xv v] by (1)\n    end\n    if <<<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> and <(dead) = [0]>> then\n        switch costume to (2 v)\n        change [xv v] by (-1)\n    end\n    set [xv v] to ((Xv) * (.9))\n    change x by (Xv)\n    if <touching (platform v)?> then\n        change y by (2)\n        if <touching (platform v)?> then\n            change y by (2)\n            if <touching (platform v)?> then\n                change y by (2)\n                if <touching (platform v)?> then\n                    change y by (2)\n                    if <touching (platform v)?> then\n                        change y by (2)\n                        if <touching (platform v)?> then\n                            change x by ((Xv) * (-2))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (10))>>>> then\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-5]\n                                else\n                                    set [xv v] to [5]\n                                end\n                                set [yv v] to [13]\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-0.8)\n    change y by (Yv)\n    if <touching (platform v)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching (platform v)?> then\n        if <<key (up arrow v) pressed?> or > then\n            set [yv v] to [12]\n        end\n    end\n    change y by (1)\n    if <touching (spike v)?> then\n        Dead\n    end\n    if <(y position) < [-180]> then\n        Dead\n    end\nend\n\nwhen I receive [start v]\nTick\n\n@platform\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\ngo to x: (0) y: (0)\nshow\n\nwhen I receive [start v]\nforever\n    switch costume to (LV)\nend\n\n@spike\n\nwhen I receive [start v]\ngo to [back v] layer\nshow\nswitch costume to (1 v)\n\nwhen I receive [start v]\nforever\n    switch costume to (LV)\nend\n\nwhen flag clicked\ngo to x: (35) y: (20)\nhide\n\nwhen I receive [movement v]\nrepeat until <not <(LV) = [12]>>\n    go to [front v] layer\n    glide (1) secs to x: (36) y: (82)\n    wait (.01) seconds\n    glide (1) secs to x: (36) y: (19)\n    go to [front v] layer\nend\n\nwhen flag clicked\nshow\nforever\n    if <(costume [number v]) = [13]> then\n        go to [back v] layer\n    end\nend\n\nwhen I receive [start v]\nforever\n    wait until <(costume [number v]) = [12]>\n    if <(costume [number v]) = [12]> then\n        go to [front v] layer\n        broadcast (Movement v)\n    end\n    stop [this script v]\nend\n\nwhen flag clicked\nhide\nset size to (100) %\n\n@Snow\n\nwhen I start as a clone\ngo to [front v] layer\nshow\ngo to x: (240) y: (pick random (-200) to (200))\npoint in direction (pick random (-105) to (-75))\nset [ghost v] effect to (150)\nrepeat (5)\n    change [ghost v] effect by (-15)\nend\nrepeat until <(x position) < [-230]>\n    move (5) steps\nend\nrepeat (5)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I receive [start v]\nforever\n    wait (.000001) seconds\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nset size to (6) %\nhide\n\n@words\n\nwhen I receive [start v]\nforever\n    switch costume to (LV)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\ngo to x: (0) y: (0)\nshow\n\n@Song one (fade\n\nwhen this sprite clicked\nbroadcast (1 v)\nhide\n\nwhen I receive [start v]\nhide\n\nwhen flag clicked\nset size to (75) %\nshow\n\n@Song 2 \n\nwhen this sprite clicked\nbroadcast (2 v)\n\nwhen flag clicked\nset size to (75) %\nshow\ngo to [front v] layer\n\nwhen I receive [start v]\nhide\n\n@Song 3\n\nwhen this sprite clicked\nbroadcast (3 v)\n\nwhen flag clicked\nset size to (75) %\nshow\ngo to [front v] layer\n\nwhen I receive [start v]\nhide\n\n@No song\n\nwhen I receive [start v]\nhide\n\nwhen flag clicked\nset volume to (100) %\nset size to (75) %\nshow\ngo to [front v] layer\n\nwhen this sprite clicked\nset volume to (0) %\nbroadcast (4 v)\n\n
Use the arrow keys and avoid spikes and other dangers and reach the end.\n\nA love and like and follow is also appreciated.\n\nGO FOLLOW @DJ_Luky.