Green - A Green Platformer

Instructions:             ~~~Green! -  A Green Platformer~~~\n\n- Arrow Keys To Move\n- Wall Jumps and Wall Slides Are Included!\n- Includes Jump Pads, Shrinking Things, and Speed \n- N To Skip A Level\n- B To Go Back A Level\n- R To Restart Level (Might Be Needed)\n- 20 Levels!\n- Cool Intro, Outro and Thumbnail!\n- Awesome Player\n- Includes Now A Cool Green Trail!\n                           ~~~ Have Fun! ~~~

@Stage\n\n@Intro\n\nwhen flag clicked\nswitch backdrop to (intro v)\nwait (2) seconds\nshow\ngo to x: (10) y: (0)\nstart sound [Dubstep v]\nrepeat (5)\n    repeat (20)\n        change [pixelate v] effect by (25)\n    end\n    repeat (20)\n        change [pixelate v] effect by (-25)\n    end\nend\nhide\nswitch backdrop to (backdrop1 v)\n\n@Ground/Green Levels\n\nwhen flag clicked\ngo to [back v] layer\nswitch costume to (costume1 v)\nhide\n\nwhen backdrop switches to [backdrop1 v]\ngo to x: (0) y: (-30)\nshow\n\nwhen I receive [next green level! v]\nnext costume\n\nwhen flag clicked\nforever\n    if <key (g v) pressed?> then\n        next costume\n        wait (1) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [21]> then\n        broadcast (The End v)\n        wait (5) seconds\n        stop [all v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (b v) pressed?> then\n        switch costume to ((costume [number v]) - (1))\n        wait (1) seconds\n    end\nend\n\nwait (1) seconds\n\nwhen flag clicked\nforever\n    if <key (n v) pressed?> then\n        switch costume to ((costume [number v]) + (1))\n        wait (1) seconds\n    end\nend\n\n@Player\n\nwhen backdrop switches to [backdrop1 v]\nshow\npoint in direction (90)\ngo to x: (-188) y: (13)\nset [yv v] to [0]\nset [xv v] to [0]\nforever\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (1)\n        switch costume to (costume1 v)\n    end\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-1)\n        switch costume to (costume2 v)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching color (#000000)?> then\n        change y by (1)\n        if <touching color (#000000)?> then\n            change y by (1)\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                    if <touching color (#000000)?> then\n                        change y by (1)\n                        if <touching color (#000000)?> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <key (up arrow v) pressed?> then\n                                if <(Xv) > [0]> then\n                                    start sound [Jump v]\n                                    set [xv v] to [-15]\n                                else\n                                    set [xv v] to [15]\n                                end\n                                set [yv v] to [15]\n                            else\n                                set [yv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-1)\n    change y by ((Yv) * (1))\n    if <touching color (#000000)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#000000)?> then\n        if <key (up arrow v) pressed?> then\n            start sound [Jump v]\n            set [yv v] to [15]\n        end\n    end\n    change y by (1)\nend\n\nwhen flag clicked\ngo to [front v] layer\nhide\n\nwhen backdrop switches to [backdrop1 v]\nforever\n    play sound [Main Theme Music2 v] until done\nend\n\nwhen flag clicked\nforever\n    if <touching (green! v)?> then\n        start sound [Toy Zing v]\n        broadcast (Next Green Level! v)\n        go to x: (-205) y: (-150)\n        set size to (20) %\n        wait (1) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#005401)?> then\n        start sound [Pew v]\n        go to x: (-205) y: (-150)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#48ba00)?> then\n        change [yv v] by (15)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#51d300)?> then\n        change [yv v] by (-15)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#00b62e)?> then\n        change [xv v] by (15)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#266300)?> then\n        set size to (10) %\n    end\n    if <touching color (#4ecb00)?> then\n        set size to (20) %\n        repeat (10)\n            change y by (1)\n        end\n        wait (1) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (r v) pressed?> then\n        go to x: (-205) y: (-150)\n        set size to (20) %\n        wait (1) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (r v) pressed?> then\n        go to x: (-205) y: (-150)\n        set size to (20) %\n        wait (1) seconds\n    end\nend\n\nwhen I receive [the end v]\nhide\n\nwhen flag clicked\nforever\n    if <key (r v) pressed?> then\n        go to x: (-205) y: (-150)\n        set size to (20) %\n        wait (1) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (g v) pressed?> then\n        go to x: (-205) y: (-150)\n        set size to (20) %\n        wait (1) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (n v) pressed?> then\n        go to x: (-205) y: (-150)\n        set size to (20) %\n        wait (1) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (b v) pressed?> then\n        go to x: (-205) y: (-150)\n        set size to (20) %\n        wait (1) seconds\n    end\nend\n\nwhen backdrop switches to [backdrop1 v]\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nchange y by (5)\nshow\nswitch costume to (costume3 v)\nchange x by (-10)\nrepeat (50)\n    change [ghost v] effect by (2)\n    change size by (-2)\nend\ndelete this clone\n\nwhen I receive [next green level! v]\nclear graphic effects\n\n@Green Info!\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to x: (35) y: (25)\nhide\nforever\n    if <touching (player v)?> then\n        repeat (10)\n            change [ghost v] effect by (5)\n        end\n    else\n        repeat (10)\n            change [ghost v] effect by (-5)\n        end\n    end\nend\n\nwhen backdrop switches to [backdrop1 v]\nshow\n\nwhen I receive [next green level! v]\nnext costume\n\nwhen flag clicked\nforever\n    if <key (g v) pressed?> then\n        next costume\n        wait (1) seconds\n    end\nend\n\nwhen I receive [the end v]\nhide\n\nwhen flag clicked\nforever\n    if <key (n v) pressed?> then\n        switch costume to ((costume [number v]) + (1))\n        wait (1) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (b v) pressed?> then\n        switch costume to ((costume [number v]) - (1))\n        wait (1) seconds\n    end\nend\n\n@Green!\n\nwhen flag clicked\ngo to [back v] layer\nhide\n\nwhen backdrop switches to [backdrop1 v]\nshow\ngo to x: (230) y: (-150)\nforever\n    Up_Down\nend\n\ndefine Up_Down\nrepeat (5)\n    change x by (0)\n    wait (0.02) seconds\n    change y by (-1)\nend\nrepeat (5)\n    change x by (0)\n    wait (0.02) seconds\n    change y by (1)\nend\n\ndefine Ghost\nrepeat (5)\n    change [ghost v] effect by (5)\nend\nwait (0.02) seconds\nrepeat (5)\n    change [ghost v] effect by (-5)\nend\n\nwhen backdrop switches to [backdrop1 v]\nforever\n    Ghost\n    wait (0.02) seconds\nend\n\nwhen I receive [the end v]\nhide\n\n@Thumbnail\n\nwhen flag clicked\nshow\nclear graphic effects\ngo to x: (0) y: (0)\nwait (1) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\n    wait (.01) seconds\nend\n\n