Cube- A Platformer
@Stage\n\nwhen flag clicked\nforever\n    play sound [thefatrat-time-lapse-DphHfDmnSm v] until done\nend\n\n@Player\n\nwhen flag clicked\nshow\nset [x v] to [0]\nset [y v] to [0]\ngo to x: (-211) y: (-59)\nforever\n    create clone of (_myself_ v)\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [x v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [x v] by (-1)\n    end\n    set [x v] to ((x) * (.9))\n    change x by (x)\n    if <touching (level v)?> then\n        change y by (1)\n        if <touching (level v)?> then\n            change y by (1)\n            if <touching (level v)?> then\n                change y by (1)\n                if <touching (level v)?> then\n                    change y by (1)\n                    if <touching (level v)?> then\n                        change y by (1)\n                        if <touching (level v)?> then\n                            change x by ((x) * (-1))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                                if <(x) > [0]> then\n                                    set [x v] to [-5]\n                                else\n                                    set [x v] to [5]\n                                end\n                                set [y v] to [10]\n                            else\n                                set [x v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [y v] by (-1)\n    change y by (y)\n    if <touching (level v)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <touching (level v)?> then\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            change [y v] by (15)\n        end\n    end\n    change y by (1)\n    if <(x position) > [230]> then\n        change [l v] by (1)\n        set [x v] to [0]\n        set [y v] to [0]\n        go to x: (-211) y: (-59)\n    end\n    if <key (r v) pressed?> then\n        go to x: (-211) y: (-59)\n    end\n    if <touching (lava v)?> then\n        broadcast (Touching Lava v)\n        repeat (3)\n            change [ghost v] effect by (-5)\n        end\n        wait (.1) seconds\n        repeat (3)\n            change [ghost v] effect by (-5)\n        end\n        wait (.05) seconds\n        go to x: (-211) y: (-59)\n    end\n    if <touching (bounce pad v)?> then\n        set [y v] to [22]\n    end\nend\n\nwhen I start as a clone\nrepeat (5)\n    change [ghost v] effect by (20)\n    change size by (-7)\nend\ndelete this clone\n\nwhen I receive [s v]\ngo to x: (-211) y: (-59)\n\n@Level\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [l v] to [1]\nforever\n    switch costume to (l)\n    if <(costume [number v]) = [2]> then\n        broadcast (l2 v)\n    end\n    if <(costume [number v]) = [3]> then\n        broadcast (l3 l v)\n    end\n    if <(costume [number v]) = [4]> then\n        broadcast (l4 l v)\n    end\n    if <(costume [number v]) = [5]> then\n        broadcast (l5 l v)\n    end\n    if <(costume [number v]) = [6]> then\n        broadcast (l6 l v)\n    end\n    if <(costume [number v]) = [7]> then\n        broadcast (l7 l v)\n    end\n    if <(costume [number v]) = [8]> then\n        broadcast (l8 l v)\n    end\n    if <(costume [number v]) = [9]> then\n        broadcast (l9 l v)\n    end\n    if <(costume [number v]) = [10]> then\n        broadcast (l10 v)\n    end\n    if <(costume [number v]) = [11]> then\n        broadcast (l11 l v)\n    end\n    if <(costume [number v]) = [12]> then\n        broadcast (l12 l v)\n    end\n    if <(costume [number v]) = [13]> then\n        broadcast (l13 l v)\n    end\n    if <(costume [number v]) = [14]> then\n        broadcast (l14 l v)\n    end\n    if <(costume [number v]) = [15]> then\n        broadcast (l15 l v)\n    end\n    if <(costume [number v]) = [16]> then\n        broadcast (hide l v)\n    end\nend\n\nwhen I receive [s v]\nchange [l v] by (1)\n\n@Lava\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [l3 l v]\nshow\nswitch costume to (l3 lava v)\n\nwhen I receive [l4 l v]\nswitch costume to (l4 lava v)\n\nwhen I receive [l5 l v]\nswitch costume to (l5 lava v)\n\nwhen I receive [l6 l v]\nswitch costume to (l6 lava v)\n\nwhen I receive [l7 l v]\nswitch costume to (l7 lava v)\n\nwhen I receive [l8 l v]\nswitch costume to (l8 lava v)\n\nwhen I receive [l9 l v]\nswitch costume to (l9 lava v)\n\nwhen I receive [l10 v]\nswitch costume to (l10 lava v)\n\nwhen I receive [l11 l v]\nswitch costume to (l11 lava v)\n\nwhen I receive [l12 l v]\nswitch costume to (l12 lava v)\n\nwhen I receive [l13 l v]\nswitch costume to (l13 lava v)\n\nwhen I receive [l14 l v]\nswitch costume to (l14 lava v)\n\nwhen I receive [l15 l v]\nhide\n\nwhen I receive [hide l v]\nhide\n\n@Touching Lava\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\n\nwhen I receive [touching lava v]\nset [ghost v] effect to (100)\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nwait (.1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nwait (.1) seconds\nset [ghost v] effect to (100)\nhide\n\n@Bounce Pad\n\nwhen flag clicked\nhide\n\nwhen I receive [l8 l v]\nswitch costume to (l8 b v)\nshow\n\nwhen I receive [l9 l v]\nswitch costume to (l9 b v)\n\nwhen I receive [l10 v]\nswitch costume to (l10 b v)\n\nwhen I receive [l11 l v]\nhide\n\nwhen I receive [l12 l v]\nswitch costume to (l12 b v)\nshow\n\nwhen I receive [l13 l v]\nhide\n\n@Cover (usually ppl call this part thumbnail)\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\ngo to [front v] layer\ngo to x: (0) y: (0)\n\n@Clouds\n\nwhen flag clicked\nhide\nshow\nhide\nrepeat (3)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nforever\n    show\n    set [ghost v] effect to (30)\n    go to x: (408) y: (100)\n    glide (pick random (3) to (5)) secs to x: (-408) y: (pick random (110) to (120))\nend\n\n@Clouds2\n\nwhen flag clicked\nhide\nshow\nhide\nrepeat (3)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nforever\n    show\n    set [ghost v] effect to (30)\n    go to x: (408) y: (100)\n    glide (pick random (4) to (5)) secs to x: (-408) y: (pick random (110) to (120))\nend\n\n@Clouds3\n\nwhen flag clicked\nhide\nshow\nhide\nrepeat (3)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nforever\n    show\n    set [ghost v] effect to (30)\n    go to x: (408) y: (100)\n    glide (pick random (7) to (10)) secs to x: (-408) y: (pick random (110) to (120))\nend\n\n@Skip\n\nwhen flag clicked\ngo to x: (-192) y: (-147)\nshow\n\nwhen this sprite clicked\nbroadcast (s v)\n\nwhen I receive [hide l v]\nhide\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-5)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\n@Text\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nswitch costume to (l1 t v)\n\nwhen I receive [l2 v]\nswitch costume to (l2 t v)\n\nwhen I receive [l3 l v]\nswitch costume to (l3 t v)\n\nwhen I receive [l4 l v]\nhide\n\nwhen I receive [l8 l v]\nshow\nswitch costume to (18 t v)\n\nwhen I receive [l9 l v]\nhide\n\nwhen I receive [l10 v]\nhide\n\nwhen I receive [l12 l v]\nshow\nswitch costume to (l12 t v)\n\nwhen I receive [l13 l v]\nhide\n\nwhen I receive [hide l v]\nswitch costume to (end v)\nshow\n\n
=============Cube- A Platformer============\n\nDouble click the green flag in case there are any lags.\n\nInstructions in game.\nAll levels are passable! \n\nEnjoy playing!