Pokemon Platformer 2: Galaxy

Instructions: Arrow Keys To Move\ngo to the portal

@Stage\n\n@Elgyem\n\nwhen flag clicked\nswitch backdrop to (1 v)\ngo to x: (-119) y: (-131)\nwait (2) seconds\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (1)\n        switch costume to (right v)\n    end\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-1)\n        switch costume to (left v)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching color (#9600a5)?> then\n        change y by (1)\n        if <touching color (#9600a5)?> then\n            change y by (1)\n            if <touching color (#9600a5)?> then\n                change y by (1)\n                if <touching color (#9600a5)?> then\n                    change y by (1)\n                    if <touching color (#9600a5)?> then\n                        change y by (1)\n                        if <touching color (#9600a5)?> 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                                    set [xv v] to [-5]\n                                else\n                                    set [xv v] to [5]\n                                end\n                                set [yv v] to [10]\n                            else\n                                set [xv 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)\n    if <touching color (#9600a5)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#9600a5)?> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [15]\n        end\n    end\n    change y by (1)\nend\n\nforever\n    if <<key (right arrow v) pressed?> and <(Pkmn) = [0]>> then\n        switch costume to (right v)\n    end\n    if <<key (left arrow v) pressed?> and <(Pkmn) = [0]>> then\n        switch costume to (left v)\n    end\n    if <<key (right arrow v) pressed?> and <(Pkmn) = [1]>> then\n        switch costume to (2right v)\n    end\n    if <<key (left arrow v) pressed?> and <(Pkmn) = [1]>> then\n        switch costume to (2left v)\n    end\n    if <<key (right arrow v) pressed?> and <(Pkmn) = [2]>> then\n        switch costume to (3right v)\n    end\n    if <<key (left arrow v) pressed?> and <(Pkmn) = [2]>> then\n        switch costume to (3left v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (sprite2 v)?> then\n        switch backdrop to (9 v)\n    end\nend\n\nwhen flag clicked\nshow\nforever\n    if <<(backdrop [number v]) < [8]> and <touching (sprite1 v)?>> then\n        wait (0.2) seconds\n        next backdrop\n    end\nend\n\nwhen backdrop switches to [2 v]\ngo to x: (-143) y: (-135)\n\nwhen backdrop switches to [3 v]\ngo to x: (-143) y: (-135)\n\nwhen backdrop switches to [4 v]\ngo to x: (-143) y: (-135)\n\nwhen backdrop switches to [9 v]\ngo to x: (6) y: (-122)\n\nwhen backdrop switches to [5 v]\ngo to x: (-109) y: (-137)\n\nwhen backdrop switches to [6 v]\ngo to x: (-109) y: (-137)\n\nwhen backdrop switches to [7 v]\ngo to x: (-64) y: (-143)\n\nwhen backdrop switches to [8 v]\ngo to x: (-118) y: (-47)\n\nwhen I receive [message1 v]\nshow\n\nwhen I receive [end v]\nwait (3) seconds\nhide\n\nwhen flag clicked\nforever\n    if <<(backdrop [number v]) = [8]> and <touching (sprite1 v)?>> then\n        wait (0.1) seconds\n        broadcast (End v)\n    end\nend\n\n@Clefairy\n\nwhen flag clicked\ngo to x: (-74) y: (-132)\nshow\nwait (2) seconds\nhide\n\nwhen I receive [end v]\ngo to x: (-74) y: (68)\nshow\nwait (1) seconds\nsay [You Did It] for (2) seconds\nwait (3) seconds\nhide\n\n@Lunatone\n\nwhen flag clicked\ngo to x: (-98) y: (-132)\nshow\nwait (2) seconds\nhide\n\nwhen I receive [end v]\ngo to x: (62) y: (68)\nshow\nwait (1) seconds\nsay [You Did It] for (2) seconds\nwait (3) seconds\nhide\n\n@Deoxys\n\nwhen flag clicked\ngo to x: (-20) y: (-131)\nhide\nwait (1) seconds\nshow\nwait (1) seconds\nhide\n\nwhen backdrop switches to [8 v]\ngo to x: (214) y: (-94)\nshow\nforever\n    glide (0.5) secs to (random position v)\nend\n\nwhen backdrop switches to [8 v]\nforever\n    set y to (-94)\nend\n\nwhen I receive [message1 v]\nswitch backdrop to (7 v)\nhide\n\nwhen backdrop switches to [8 v]\nforever\n    if <touching (elgyem v)?> then\n        broadcast (message1 v)\n    end\nend\n\nwhen I receive [end v]\nhide\n\nwhen backdrop switches to [9 v]\nhide\n\n@Sprite1\n\nwhen flag clicked\nshow\ngo to x: (92) y: (171)\n\nwhen backdrop switches to [2 v]\ngo to x: (-222) y: (141)\n\nwhen backdrop switches to [3 v]\ngo to x: (-145) y: (185)\n\nwhen backdrop switches to [4 v]\ngo to x: (-185) y: (157)\n\nwhen backdrop switches to [6 v]\ngo to x: (-243) y: (170)\n\nwhen backdrop switches to [5 v]\ngo to x: (-164) y: (188)\n\nwhen backdrop switches to [9 v]\nhide\n\nwhen backdrop switches to [7 v]\ngo to x: (-35) y: (103)\n\nwhen backdrop switches to [8 v]\ngo to x: (-35) y: (123)\n\nwhen I receive [message1 v]\nshow\n\nwhen backdrop switches to [8 v]\ngo to x: (-35) y: (123)\nshow\n\nwhen I receive [end v]\nhide\n\n@Sprite2\n\nwhen backdrop switches to [3 v]\nshow\n\nwhen backdrop switches to [4 v]\nhide\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [9 v]\nhide\n\n@Sprite6\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [end v]\nwait (3) seconds\nshow\n\n@Sprite4\n\nwhen flag clicked\ngo to x: (-194) y: (-62)\n\n@Sprite3\n\nwhen flag clicked\nhide\ngo to x: (-194) y: (126)\n\nwhen backdrop switches to [8 v]\ngo to x: (-194) y: (108)\nshow\nglide (10) secs to (sprite4 v)\n\nwhen I receive [message1 v]\nhide\n\nwhen I receive [end v]\nhide\n\n