Colorless: A Platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop2 v)\nforever\n    if <([costume # v] of [platform v]) = [22]> then\n        switch backdrop to (backdrop3 v)\n    end\n    if <([costume # v] of [platform v]) = [19]> then\n        switch backdrop to (backdrop4 v)\n    end\nend\n\n@Player\n\nwhen I start as a clone\nrepeat (5)\n    change [brightness v] effect by (-5)\n    change [ghost v] effect by (-20)\nend\ndelete this clone\n\ndefine reset\ngo to x: (-200) y: (-100)\n\nwhen flag clicked\nforever\n    if <<touching (sprite2 v)?> and <([costume # v] of [platform v]) = [21]>> then\n        broadcast (yeet v)\n    end\nend\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nclear sound effects\nset [pitch v] effect to (0)\nset volume to (100) %\nforever\n    play sound [TheFatRat - Unity vs Megalovania \(by LiterallyNoOne\) v] until done\nend\n\nwhen flag clicked\nhide\ngo to x: (-200) y: (-100)\nhide\nhide\nset size to (80) %\nswitch costume to (costume1 v)\nshow\nset [level v] to [1]\nset [player: xv v] to [0]\nset [player: yv v] to [0]\nforever\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>>> then\n        change [player: 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)>>>> then\n        change [player: xv v] by (-1)\n    end\n    set [player: xv v] to ((Player: Xv) * (0.9))\n    change x by (Player: Xv)\n    if <touching (platform v)?> then\n        change y by (1)\n        if <touching (platform v)?> then\n            change y by (1)\n            if <touching (platform v)?> then\n                change y by (1)\n                if <touching (platform v)?> then\n                    change y by (1)\n                    if <touching (platform v)?> then\n                        change y by (1)\n                        if <touching (platform v)?> then\n                            change x by ((Player: Xv) * (-1))\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)>>>> then\n                                if <(Player: Xv) > [0]> then\n                                    set [player: xv v] to [-5]\n                                else\n                                    set [player: xv v] to [5]\n                                end\n                                set [player: yv v] to [12]\n                            else\n                                set [player: xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [player: yv v] by (-1)\n    change y by (Player: Yv)\n    if <touching (platform v)?> then\n        change y by ((Player: Yv) * (-1))\n        set [player: 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 <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n            set [player: yv v] to [12]\n        end\n    end\n    if <touching (jump v)?> then\n        set [player: yv v] to [20]\n    end\n    change y by (1)\n    if <(x position) > [238]> then\n        reset\n        broadcast (message1 v)\n    end\n    if <key (r v) pressed?> then\n        reset\n    end\n    if <<(y position) < [-177]> or <touching (spikes v)?>> then\n        reset\n    end\nend\n\n@Spikes\n\nwhen flag clicked\nswitch costume to (costume1 v)\nshow\n\nwhen I receive [message1 v]\nnext costume\n\n@Jump\n\nwhen flag clicked\nswitch costume to (costume1 v)\nshow\n\nwhen I receive [message1 v]\nnext costume\n\n@Thunmail\n\nwhen flag clicked\nhide\n\n@Platform\n\nwhen I receive [message1 v]\nnext costume\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\nclear graphic effects\nshow\n\nwhen I receive [fgdfgd v]\nswitch costume to (costume13 v)\n\nwhen I receive [yeet v]\nswitch costume to (costume22 v)\n\n@Sprite1\n\nwhen flag clicked\ngo to [back v] layer\nhide\nforever\n    go to (player v)\n    if <<([costume # v] of [platform v]) = [21]> or <<([costume # v] of [platform v]) = [19]> or >> then\n        show\n    else\n        hide\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\ngo to x: (184) y: (190)\nhide\nset [ghost v] effect to (100)\nforever\n    if <([costume # v] of [platform v]) = [21]> then\n        show\n    else\n        hide\n    end\nend\n\n@Sprite3\n\nwhen flag clicked\nhide\n\nwhen I receive [yeet v]\ngo to [back v] layer\ngo [forward v] (3) layers\nshow\ngo to (random position v)\npoint in direction (pick random (0) to (360))\nforever\n    move (5) steps\n    if <touching (_edge_ v)?> then\n        if on edge, bounce\n        point in direction (pick random (0) to (360))\n    end\nend\n\n@Sprite5\n\nwhen flag clicked\nhide\n\nwhen I receive [yeet v]\ngo to [back v] layer\ngo [forward v] (1) layers\nshow\ngo to (random position v)\npoint in direction (pick random (0) to (360))\nforever\n    move (5) steps\n    if <touching (_edge_ v)?> then\n        if on edge, bounce\n        point in direction (pick random (0) to (360))\n    end\nend\n\n@Sprite4\n\nwhen flag clicked\nhide\n\nwhen I receive [yeet v]\ngo to [back v] layer\ngo [forward v] (2) layers\nshow\ngo to (random position v)\npoint in direction (pick random (0) to (360))\nforever\n    move (5) steps\n    if <touching (_edge_ v)?> then\n        if on edge, bounce\n        point in direction (pick random (0) to (360))\n    end\nend\n\n
Welcome to Colorless: A Platformer!\n\nInstructions: Arrow keys to move. TOUCHSCREEN AVAILABLE!\n\nStory: You are stuck in a world without color. Your goal is to pass each of the levels to find the last bits of color that are left in the world!