Colorless - A Platformer -
@Stage\n\nwhen flag clicked\n\n@Blank\n\n@Player\n\nwhen I receive [alright bros let's go v]\nset [change? v] to [0]\nforever\n    if <(x position) = [241]> then\n        broadcast (NEXT LEVEL v)\n        change [level v] by (1)\n    end\nend\n\nwhen I receive [alright bros let's go v]\nset [level v] to [1]\nset [dead? v] to [0]\nset size to (100) %\nreset\nforever\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)>>> and <(dead?) = [0]>> then\n        change [x v v] by (.9)\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        change [x v v] by (-.9)\n    end\n    set [x v v] to ((X v) * (0.9))\n    change x by (X v)\n    if <touching (ground v)?> then\n        change y by (2)\n        if <touching (ground v)?> then\n            change y by (2)\n            if <touching (ground v)?> then\n                change y by (2)\n                if <touching (ground v)?> then\n                    change y by (2)\n                    if <touching (ground v)?> then\n                        change y by (2)\n                        if <touching (ground v)?> then\n                            change x by ((X v) * (-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) + (20))>>>> then\n                                if <(X v) > [0]> then\n                                    set [x v v] to [-5]\n                                else\n                                    set [x v v] to [5]\n                                end\n                                set [y v v] to [13]\n                            else\n                                set [x v v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [y v v] by (-0.8)\n    change y by (Y v)\n    if <touching (ground v)?> then\n        change y by ((Y v) * (-1))\n        set [y v v] to [0]\n    end\n    change y by (-1)\n    if <touching (ground v)?> then\n        if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>>> then\n            set [y v v] to [12]\n        end\n    end\n    change y by (1)\n    if <<touching (lava v)?> or <<<<<touching (danger v)?> or <touching (spining spikes v)?>> or <touching (spining spikes2 v)?>> or <touching (spining spikes3 v)?>> and <(dead?) = [0]>>> then\n        Spin off screen\n    end\n    if <<touching (trampoline v)?> or <touching (trampoline2 v)?>> then\n        set [y v v] to [18]\n    end\nend\n\nwhen I start as a clone\nswitch costume to (center1 v)\nrepeat (10)\n    change [ghost v] effect by (5)\n    change size by (-5)\n    change [brightness v] effect by (7.07)\nend\ndelete this clone\n\nwhen I receive [alright bros let's go v]\nforever\n    set [direction v] to (direction)\nend\n\nwhen I receive [alright bros let's go v]\nforever\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nhide\ngo to [back v] layer\n\nwhen I receive [next level v]\nset [change? v] to [1]\nreset\nset [change? v] to [0]\n\ndefine reset\nclear graphic effects\ngo to x: (-200) y: (-50)\npoint in direction (90)\nset [dead? v] to [0]\nset [x v v] to [0]\nset [y v v] to [0]\nset size to (100) %\nshow\n\nwhen [r v] key pressed\nif <(dead?) = [0]> then\n    reset\nend\n\ndefine Spin off screen\nset [dead? v] to [1]\nchange [player death v] by (1)\nreset\n\nwhen I receive [alright bros let's go v]\nforever\n    if <(y position) = [-179]> then\n        Spin off screen\n    end\nend\n\nwhen flag clicked\nshow\nforever\n    reset timer\nend\n\nwhen [timer v] > (0)\nhide\n\n@Ground\n\nwhen I receive [alright bros let's go v]\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nnext costume\n\nwhen I receive [alright bros let's go v]\nshow\n\nwhen flag clicked\nhide\n\n@Danger\n\nwhen flag clicked\ngo to [back v] layer\n\nwhen I receive [alright bros let's go v]\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nnext costume\n\nwhen I receive [alright bros let's go v]\nshow\n\nwhen flag clicked\nhide\n\n@Thumbnail\n\nwhen flag clicked\nset [ghost v] effect to (0)\nshow\nwait (3) seconds\nrepeat (6)\n    change [whirl v] effect by (25)\n    change [ghost v] effect by (10)\n    wait (0.1) seconds\n    change [whirl v] effect by (25)\n    change [ghost v] effect by (10)\n    wait (0.1) seconds\nend\nbroadcast (alright bros let's go v)\nhide\n\nwhen flag clicked\nforever\n    play sound [Music! v] until done\nend\n\nwhen [m v] key pressed\nset volume to (0) %\n\nwhen [u v] key pressed\nset volume to (100) %\n\n@Spining Spikes\n\nwhen flag clicked\nhide\ngo to [back v] layer\n\nwhen flag clicked\ngo to x: (-50) y: (-90)\nforever\n    if <(Level) = [4]> then\n        show\n        turn left (6) degrees\n    end\n    if <(Level) = [5]> then\n        hide\n    end\n    if <(Level) = [7]> then\n        show\n        turn left (6) degrees\n    end\n    if <(Level) = [8]> then\n        hide\n    end\n    if <(Level) = [10]> then\n        show\n        turn left (15) degrees\n    end\n    if <(Level) = [11]> then\n        hide\n    end\n    if <(Level) = [12]> then\n        show\n        turn left (15) degrees\n    end\n    if <(Level) = [13]> then\n        show\n        turn left (15) degrees\n    end\n    if <(Level) = [13]> then\n        go to x: (36) y: (-50)\n    end\n    if <(Level) = [14]> then\n        show\n        turn left (15) degrees\n    end\n    if <(Level) = [14]> then\n        go to x: (100) y: (-50)\n    end\n    if <(Level) = [15]> then\n        hide\n    end\nend\n\n@Spining Spikes2\n\nwhen flag clicked\nhide\ngo to [back v] layer\n\nwhen flag clicked\ngo to x: (100) y: (-90)\nforever\n    if <(Level) = [7]> then\n        show\n        turn left (6) degrees\n    end\n    if <(Level) = [8]> then\n        hide\n    end\n    if <(Level) = [10]> then\n        go to x: (70) y: (0)\n        show\n        turn left (15) degrees\n    end\n    if <(Level) = [11]> then\n        hide\n    end\nend\n\n@Spining Spikes3\n\nwhen flag clicked\nhide\ngo to [back v] layer\n\nwhen flag clicked\nforever\n    if <(Level) = [10]> then\n        go to x: (-50) y: (50)\n        show\n        turn left (15) degrees\n    end\n    if <(Level) = [11]> then\n        hide\n    end\nend\n\n@Trampoline\n\nwhen flag clicked\nhide\nforever\n    if <(Level) = [8]> then\n        show\n        if <touching (player v)?> then\n            switch costume to (costume2 v)\n            wait (0.5) seconds\n            switch costume to (costume1 v)\n        end\n    end\n    if <(Level) = [9]> then\n        show\n        switch costume to (costume1 v)\n        if <touching (player v)?> then\n            switch costume to (costume2 v)\n            wait (0.5) seconds\n            switch costume to (costume1 v)\n        end\n    end\n    if <(Level) = [10]> then\n        hide\n    end\nend\n\nif <(Level) = [10]> then\n    hide\nend\n\n@Trampoline2\n\nwhen flag clicked\nforever\n\nwhen flag clicked\nhide\nforever\n    if <(Level) = [8]> then\n        hide\n    end\n    if <(Level) = [9]> then\n        show\n        switch costume to (costume1 v)\n        if <touching (player v)?> then\n            switch costume to (costume2 v)\n            wait (0.5) seconds\n            switch costume to (costume1 v)\n        end\n    end\n    if <(Level) = [10]> then\n        hide\n    end\nend\n\n@Lava\n\nwhen flag clicked\nhide\nforever\n    if <(Level) = [11]> then\n        go to [back v] layer\n        show\n        go to x: (50) y: (-230)\n        repeat until <(Level) = [13]>\n            next costume\n            wait (.1) seconds\n        end\n    end\n    if <(Level) = [13]> then\n        hide\n    end\n    if <(Level) = [12]> then\n        go to [back v] layer\n        show\n        go to x: (50) y: (-230)\n        repeat until <(Level) = [13]>\n            next costume\n            wait (.1) seconds\n        end\n    end\n    if <(Level) = [13]> then\n        hide\n    end\n    if <(Level) = [14]> then\n        go to [back v] layer\n        show\n        go to x: (-75) y: (-240)\n        repeat until <(Level) = [13]>\n            next costume\n            wait (.1) seconds\n        end\n    end\nend\n\nif <(Level) = [13]> then\n    hide\nend\n\n@5\n\nwhen flag clicked\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0)\nshow\n\n
                                 Colorless\n                             - A Platfomer -\n\n                   Difficulty = Medium\n                            \n                               - Intructions -\n\n- Move Buttons: Up arrow or W = Jump. Right arrow or A = Move Right. Left arrow or D = Move Left.\n\n- Avoid: All types of spikes and lava!\n\n- Trampolines are bouncy!\n\n- Press R to restart the level!\n\n- Press M to mute the music!\n\n- Press U to unmute the music!\n\n14 levels!\n\nHave Fun!