|| Colorless || A Platformer ||

Instructions: FULLSCREEN RECOMENDED PLEASE. WASD KEYS AND ARROW KEYS ALSO WORK.\n\nBugs seen? Suggestions? Please report it to this studio.\nhttps://scratch.mit.edu/studios/28883943\n\nThis has lots of code so the love and fave detector might lag.\n\nBest used on Turbowarp.\n\nMusic is being added SOON\n\nWHOAH 170 MESSAGES\n\n2,000 VIEWS THX ;D\n\nI'm deleting ads now. They are VERY annoying.\n\nI added comments so you understand the phyisics of the game

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop2 v)\nforever\n    if <(LEVEL) = [8]> then\n        switch backdrop to (backdrop3 v)\n    end\nend\n\nwhen flag clicked\nforever\n    play sound [m u s i c v] until done\nend\n\n@Player\n\nwhen flag clicked\nReset\nforever\n    Run Game\nend\n\ndefine Run Game\nchange [speed y v] by (-1)\nif <<key (a v) pressed?> or <key (left arrow v) pressed?>> then\n    point in direction (-90)\n    change [speed x v] by (-2)\nend\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    change [speed x v] by (2)\n    point in direction (90)\nend\nset [speed x v] to ((Speed X) * (0.8))\nchange x by (Speed X)\nif <touching (ground v)?> then\n    change y by (1)\n    if <touching (ground v)?> then\n        change y by (1)\n        if <touching (ground v)?> then\n            change y by (1)\n            if <touching (ground v)?> then\n                change y by (1)\n                if <touching (ground v)?> then\n                    change y by (1)\n                    if <touching (ground v)?> then\n                        change y by (1)\n                        if <touching (ground v)?> then\n                            change y by (1)\n                            if <touching (ground v)?> then\n                                change y by (1)\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nif <touching (ground v)?> then\n    change y by (-8)\n    repeat until <not <touching (ground v)?>>\n        change x by ((Speed X) * (-1.1))\n    end\n    if <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n        set [speed y v] to [11]\n        if <(Speed X) < [0]> then\n            set [speed x v] to [16]\n        else\n            set [speed x v] to [-16]\n        end\n    else\n        set [speed x v] to [0]\n    end\nend\nchange y by (Speed Y)\nif <touching (ground v)?> then\n    repeat until <not <touching (ground v)?>>\n        change y by ((Speed Y) * (-1))\n    end\n    set [speed y v] to [0]\nend\nchange y by (-1)\nif <<<key (w v) pressed?> or <key (up arrow v) pressed?>> and <touching (ground v)?>> then\n    set [speed y v] to [14]\nend\nchange y by (1)\nif <(x position) > [238]> then\n    Reset\n    change [level v] by (1)\nend\n\ndefine Reset\nset [speed x v] to [0]\nset [speed y v] to [0]\ngo to x: (-200) y: (-100)\nset rotation style [left-right v]\n\nwhen flag clicked\nforever\n    if <touching (danger v)?> then\n        Reset\n    end\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\nforever\n    if <(LEVEL) = [8]> then\n        switch costume to (costume2 v)\n    end\nend\n\nwhen I receive [level skip v]\nReset\n\n@Love and Favorite Detector\n\nwhen flag clicked\nbroadcast (Start v)\nset [love v] to [0]\nset [loved v] to [0]\nset [favorite v] to [0]\nset [favorited v] to [0]\nset [ghost v] effect to (0)\nhide\nswitch costume to (love detector v)\ncreate clone of (_myself_ v)\nswitch costume to (favorite detector v)\ncreate clone of (_myself_ v)\nforever\n    if <<(LOVE) = [0]> and <(FAVORITE) = [0]>> then\n        switch costume to (you did not love or favorite this project v)\n        go to x: (0) y: (0)\n        show\n    end\n    if <(LOVED) = [0]> then\n        if <(LOVE) = [1]> then\n            switch costume to (love button v)\n            set [ghost v] effect to (0)\n            go to x: (-250) y: (0)\n            show\n            repeat (50)\n                change x by (5)\n            end\n            repeat (20)\n                change x by (12)\n                change [ghost v] effect by (5)\n            end\n            hide\n            set [loved v] to [1]\n        end\n    end\n    if <(FAVORITE) = [1]> then\n        if <(FAVORITED) = [0]> then\n            switch costume to (favorite button v)\n            set [ghost v] effect to (0)\n            go to x: (0) y: (-200)\n            show\n            repeat (100)\n                change y by (3)\n                change [ghost v] effect by (1)\n            end\n            set [favorited v] to [1]\n        end\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(costume [name v]) = [Love Detector]> then\n        show\n        Go To [-233] [-205]\n        if <touching (mouse-pointer v)?> then\n            wait (0.1) seconds\n            if <touching (mouse-pointer v)?> then\n                set [love v] to [1]\n            end\n        end\n    else\n        if <(costume [name v]) = [Favorite Detector]> then\n            show\n            Go To [-133] [-213]\n            if <touching (mouse-pointer v)?> then\n                wait (0.1) seconds\n                if <touching (mouse-pointer v)?> then\n                    set [favorite v] to [1]\n                end\n            end\n        end\n    end\nend\n\ndefine Go To (x) (y)\nset size to (400) %\ngo to x: (x) y: (y)\nset size to (100) %\n\n@Thumbnail\n\nwhen flag clicked\nforever\n    show\n    go to [front v] layer\n    set [ghost v] effect to (100)\n    go to x: (0) y: (0)\nend\n\n@Orb\n\nwhen flag clicked\nswitch costume to (costume2 v)\nhide\nforever\n    if <(LEVEL) = [7]> then\n        change [color v] effect by (1)\n        show\n        if <touching (player v)?> then\n            forever\n                broadcast (open lv v)\n                hide\n            end\n        end\n    end\nend\n\n@Danger\n\nwhen flag clicked\ngo to [front v] layer\n\nwhen flag clicked\nset [level v] to [1]\nforever\n    go to x: (4) y: (-6)\n    switch costume to (LEVEL)\nend\n\n@Ground\n\nwhen flag clicked\nset [level v] to [1]\nforever\n    go to x: (4) y: (-6)\n    switch costume to (LEVEL)\nend\n\nwhen I receive [open lv v]\nnext costume\n\n@Sprite1\n\nwhen this sprite clicked\nbroadcast (Level skip v) and wait\nchange [level v] by (1)\n\n@Sprite2\n\nwhen this sprite clicked\nif <(volume) = [100]> then\n    switch costume to (costume2 v)\n    repeat (50)\n        change volume by (-2)\n    end\nelse\n    switch costume to (costume1 v)\n    repeat (50)\n        change volume by (2)\n    end\nend\n\nwhen flag clicked\nforever\n    play sound [m u s i c v] until done\nend\n\n