Color/Colour Cave || A Platformer #games #all

Instructions: ATTENTION IF YOU HAVE EPILEPSY DO NOT PLAY\n\n\nPlease don´t attack me because this is a ¨Generic Platformer¨ \nThis is an entry for Bookdog17´s platformer go follow them at @bookdog17!!\n~~~~~~~~~~~~~~~~~Instructions~~~~~~~~~~~~~~~~~\nArrow keys or WASD\n´R´ key to reset\n´S´ key to skip\nDo not touch spikes or lava or enemies\n~~~~~~~~~~~~~~Story~~~~~~~~~~~~~~~\nYou are in a world where everything changes colors, including you. You were playing outside and got lost in a cave. Can you get out??? BUT THERE IS A TWIST AT THE END...

@Stage\n\n@Player\n\nwhen flag clicked\nforever\n    if <(x position) = [240]> then\n        Next level\n    end\nend\n\nwhen flag clicked\nswitch costume to (center v)\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nforever\n    if <<not <key (up arrow v) pressed?>> and <<not <key (right arrow v) pressed?>> and <not >>> then\n        switch costume to (center v)\n    end\nend\n\nwhen flag clicked\ngo to [front v] layer\nforever\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        switch costume to (over right v)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        switch costume to (over left v)\n    end\nend\n\nwhen flag clicked\nset [level v] to [1]\nset size to (100) %\nreset\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 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)>>> 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 (level v)?> then\n        change y by (1)\n        if <touching (level v)?> then\n            change y by (1)\n            if <touching (level v)?> then\n                change y by (1)\n                if <touching (level v)?> then\n                    change y by (1)\n                    if <touching (level v)?> then\n                        change y by (1)\n                        if <touching (level v)?> then\n                            change x by ((X v) * (-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) + (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 [15]\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 (-1)\n    change y by (Y v)\n    if <touching (level 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 (level 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\nend\n\ndefine Reset player variables\nset [x v v] to [0]\nset [y v v] to [0]\nhide variable [level v]\nhide variable [y v v]\nhide variable [x v v]\n\ndefine reset\nset size to (100) %\nshow\ngo to x: (-200) y: (0)\npoint in direction (90)\nReset player variables\n\nwhen flag clicked\nswitch costume to (center v)\n\nwhen flag clicked\nforever\n    if <(y position) = [-179]> then\n        switch costume to (center v)\n        reset\n    end\nend\n\nwhen [r v] key pressed\nswitch costume to (center v)\ngo to x: (-200) y: (0)\n\nwhen flag clicked\nforever\n    change [color v] effect by (1)\nend\n\ndefine If touching\nif <touching (spikes and lava v)?> then\n    reset\nend\nif <touching (enemy v)?> then\n    reset\nend\n\nwhen flag clicked\nset [color v] effect to (0)\n\ndefine Next level\nchange [level v] by (1)\nReset player variables\nreset\n\nwhen I receive [next level v]\nchange [level v] by (1)\n\n@Level\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nforever\n    repeat until <(Level) = [21]>\n        change [color v] effect by (1)\n    end\nend\n\n@Spikes and Lava\n\nwhen flag clicked\ngo to [front v] layer\nshow\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nforever\n    change [color v] effect by (1)\n    if <(Level) = [21]> then\n        hide\n    end\nend\n\n@Enemy\n\nwhen flag clicked\nswitch costume to (costume1 v)\nshow\ngo to x: (131) y: (-90)\nforever\n    repeat (50)\n        change x by (2)\n    end\n    repeat (50)\n        change x by (-2)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [1]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    change [color v] effect by (1)\nend\n\n@Skipbutton\n\nwhen flag clicked\nshow\ngo to x: (-156) y: (-147)\n\nwhen this sprite clicked\nbroadcast (NEXT LEVEL v)\n\nwhen [s v] key pressed\nbroadcast (NEXT LEVEL v)\n\nwhen flag clicked\nforever\n    if <(Level) = [21]> then\n        hide\n    end\nend\n\n@thumbnail\n\nwhen flag clicked\ngo to [front v] layer\nset [ghost v] effect to (100)\n\n