Colour Platformer-1

Instructions: Instructions-\nUse arrow Keys to move\nWASD Is available\nMobile Friendly\nDon't touch Spikes.\n\n\n\nGoals-\n100/100+ Likes and favs\n1000 Views\n50/100 Remixes\nAdded to all studio's\n\n\nParts-\nThis is part-1, Part-2-\nWhat is coming up!-\nIn part-2 we will have enemies\nLots of levels\nAnd of course It will be very hard so get ready!.\n\nLike and fav and make this game popular in scratch.\nGet this to the explore page. Hope you have a good day. Thank you! And Have fun!.\n\n\nLike and fav this https://scratch.mit.edu/projects/649080766\n\n\n

@Stage\n\n@Player\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\ngo to x: (-213) y: (-44)\nforever\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [x velocity v] by (1)\n        switch costume to (costume2 v)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(x position) > (mouse x)>>> then\n        change [x velocity v] by (-1)\n        switch costume to (costume3 v)\n    end\n    set [x velocity v] to ((X Velocity) * (0.9))\n    change x by (X Velocity)\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 ((X Velocity) * (-1))\n                            change y by (-5)\n                            if <<<(mouse y) > (y position)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n                                if <(X Velocity) > [0]> then\n                                    set [x velocity v] to [-5]\n                                else\n                                    set [x velocity v] to [8]\n                                end\n                                set [y velocity v] to [12]\n                            else\n                                set [x velocity v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [y velocity v] by (-1)\n    change y by (Y Velocity)\n    if <touching (levels v)?> then\n        change y by ((Y Velocity) * (-1))\n        set [y velocity v] to [0]\n    end\n    change y by (-1)\n    if <touching (levels v)?> then\n        if <<<(mouse y) > (y position)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n            set [y velocity v] to [13]\n        end\n    end\n    change y by (1)\n    if <(x position) = [249]> then\n        go to x: (-213) y: (-44)\n        broadcast (Next level v)\n    end\nend\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 flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nforever\n    if <touching (spikes v)?> then\n        go to x: (-213) y: (-45)\n    end\nend\n\n@Levels\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@Spikes\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@TN\n\nwhen flag clicked\ngo to [front v] layer\nset [ghost v] effect to (100)\n\n@Music\n\nwhen flag clicked\nforever\n    play sound [2019-04-26_-_Tranquility_-_www v] until done\nend\n\n