Colors || A platformer
@Stage\n\nwhen I receive [next v]\nnext costume\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen flag clicked\nforever\n    play sound [bensound-anewbeginning v] until done\nend\n\n@Levels\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [next v]\nnext costume\n\n@Trail\n\nwhen I start as a clone\nrepeat (10)\n    change [ghost v] effect by (5)\n    change size by (-5)\nend\ndelete this clone\n\nwhen I receive [alright bros let's go v]\nforever\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nhide\nforever\n    go to (player v)\nend\n\nwhen flag clicked\nshow\n\nwhen flag clicked\nforever\n    change [color v] effect by (10)\nend\n\n@Player\n\nchange y by (-5)\n\nwhen I receive [next v]\ngo to x: (-235) y: (-109)\n\nwhen flag clicked\ngo to x: (-235) y: (-109)\n\nwhen flag clicked\nhide\nbroadcast (alright bros let's go v)\n\nwhen flag clicked\nforever\n    if <<(x position) = [240]> or <(x position) > [240]>> then\n        set x to (-235)\n        set y to (-109)\n        broadcast (next v)\n    end\n    if <touching (danger v)?> then\n        go to x: (-231) y: (-109)\n    end\n    \n        broadcast (restart v)\n    end\nend\n\nforever\n\nwhen flag clicked\nforever\n    if <<<key (right arrow v) pressed?> or <<key (d v) pressed?> or <key (up arrow v) pressed?>>> or <<key (w v) pressed?> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>>> then\n        broadcast (Move eye v)\n    else\n        broadcast (Don't move eye v)\n    end\nend\n\nwhen I receive [don't move eye v]\nswitch costume to (normal v)\n\nwhen I receive [move eye v]\nif <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n    switch costume to (left v)\n    if <(username) = [Animal_Luver_777]> then\n        switch costume to (left2 v)\n    end\n    if <(username) = [D0ct0rWh0Fan]> then\n        switch costume to (left2 v)\n    end\nend\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    switch costume to (right v)\n    if <(username) = [Animal_Luver_777]> then\n        switch costume to (right2 v)\n    end\n    if <(username) = [D0ct0rWh0Fan]> then\n        switch costume to (right2 v)\n    end\nend\n\nwhen flag clicked\nshow\nset [player2: yv v] to [0]\ngo to x: (-229) y: (-73)\nset [player2: xv v] to [0]\nforever\n    if <touching color (#ff1d1d)?> then\n        set [player2: yv v] to [0]\n        go to x: (-177) y: (94)\n        set [player2: xv v] to [0]\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [player2: xv v] by (0.7)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [player2: xv v] by (-0.7)\n    end\n    set [player2: xv v] to ((Player2: xv) * (0.9))\n    change x by (Player2: xv)\n    if <touching (levels v)?> then\n        change y by (1)\n        if <touching (levels v)?> then\n            change y by (1)\n            if <touching (levels v)?> then\n                change y by (1)\n                if <touching (levels v)?> then\n                    change y by (1)\n                    if <touching (levels v)?> then\n                        change y by (1)\n                        if <touching (levels v)?> then\n                            change x by ((Player2: xv) * (-1))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                                if <(Player2: xv) > [0]> then\n                                    set [player2: xv v] to [-5]\n                                else\n                                    set [player2: xv v] to [5]\n                                end\n                                set [player2: yv v] to [9]\n                            else\n                                set [player2: xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [player2: yv v] by (-1)\n    change y by (Player2: yv)\n    if <touching (levels v)?> then\n        change y by ((Player2: yv) * (-1))\n        set [player2: yv v] to [0]\n    end\n    change y by (-1)\n    if <touching (levels v)?> then\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            switch costume to (costume1 v)\n            set [player2: yv v] to [15]\n        end\n    end\n    change y by (1)\nend\n\n@Danger\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [next v]\nnext costume\n\n@Sprite2\n\nwhen flag clicked\ngo to [front v] layer\nshow\nwait (3) seconds\nrepeat (100)\n    change [ghost v] effect by (10)\nend\nhide\n\n
Use the arrow keys or WAD to move! \n\nI know it is short, with only 7 levels,  but I hope you still enjoy playing it!\n\n(Sorry if it's a bit laggy >_<)\n\nDon't forget to ❤ and ⭐!!\n\nPart 2??\n\nNew platformer!:\nhttps://scratch.mit.edu/projects/557907150/\nPart 2:\nhttps://scratch.mit.edu/projects/756549088/