pokemon platformer© part 1

Instructions: use arrow keys to move \n\n\nthis took so many hours to find out how to make this so pls like and favourite\n15 loves and favourites for part 2 

@Stage\n\nwhen flag clicked\n\nwhen backdrop switches to [level 9 v]\nwait (5) seconds\nswitch backdrop to (level 10 v)\n\n@Squrtle\n\nwhen flag clicked\nset [newtons force v] to [0]\nset [speed y v] to [0]\ngo to x: (-150) y: (50)\nforever\n    change y by (-5)\n    if <not <touching color (#66ffa6)?>> then\n        change [newtons force v] by (-0.5)\n        if <(newtons force) < [-20]> then\n            set [newtons force v] to [-20]\n        end\n    else\n        set [newtons force v] to [0]\n        set [speed y v] to [0]\n    end\n    change y by (5)\n    if <key (up arrow v) pressed?> then\n        set [speed y v] to [12]\n    end\n    if <key (right arrow v) pressed?> then\n        change [walk my g v] by (1.5)\n    end\n    if <key (left arrow v) pressed?> then\n        change [walk my g v] by (-1.5)\n    end\n    change x by (walk my g)\n    set [walk my g v] to ((walk my g) * (0.895673))\n    if <key (left arrow v) pressed?> then\n        switch costume to (sqir2 v)\n    end\n    if <key (right arrow v) pressed?> then\n        switch costume to (sqir v)\n    end\n    change y by (speed y)\n    change y by (newtons force)\nend\n\nset [speed y v] to [0]\n\nwhen flag clicked\nforever\n    if <touching color (#6667ff)?> then\n        go to x: (-150) y: (50)\n    end\nend\n\nwhen flag clicked\nforever\n    hide variable [newtons force v]\n    hide variable [speed y v]\n    hide variable [idk v]\n    hide variable [walk my g v]\nend\n\nwhen flag clicked\nforever\n    if <touching (pokeball v)?> then\n        go to x: (-150) y: (50)\n        next backdrop\n    end\nend\n\nwhen flag clicked\nswitch backdrop to (level 1 v)\n\ndefine move (steps)\nrepeat (steps)\n    set [idk v] to (y position)\n    change y by ((speed y) / (steps))\n    if <touching color (#66ffa6)?> then\n        set y to (idk)\n    end\nend\n\nwhen flag clicked\nset [idk v] to [0]\n\nstop [all v]\n\nwhen flag clicked\nset [speed y v] to [0]\ngo to x: (-150) y: (50)\nforever\n    if <touching color (#66ffa6)?> then\n        fixer upper\n    end\nend\n\nwhen flag clicked\n\ndefine fixer upper\nrepeat until <not <touching color (#66ffa6)?>>\n    change y by (1)\nend\nset [speed y v] to [0]\n\nwhen backdrop switches to [level 1 v]\nshow\n\n\n\nset [newtons force v] to [0]\n\nwhen backdrop switches to [level 10 v]\nshow\n\nwhen flag clicked\nrepeat (1000000)\n    play sound [8d82b5_Pokemon_Theme_Song v] until done\nend\n\nwhen flag clicked\nif <touching (pokeball v)?> then\n    start sound [Coin v]\nend\n\n@Spike 1\n\nwhen backdrop switches to [level 3 v]\nhide\n\nwhen backdrop switches to [level 4 v]\nshow\nwait (0.05) seconds\nglide (5) secs to (you can't see me 1 v)\nglide (5) secs to (sprite1 v)\n\nwhen flag clicked\n\nwhen backdrop switches to [level 4 v]\nglide (1) secs to (squrtle v)\n\nwhen flag clicked\ngo to x: (17) y: (-62)\n\nwhen backdrop switches to [level 1 v]\nshow\n\nwhen backdrop switches to [level 1 v]\nshow\n\nwhen backdrop switches to [level 9 v]\nhide\n\n@Spike 2\n\nwhen backdrop switches to [level 3 v]\nhide\n\nwhen backdrop switches to [level 4 v]\nshow\nglide (3) secs to (you can't see me 1 v)\nwait (0.05) seconds\nglide (3) secs to (sprite1 v)\n\nwhen flag clicked\ngo to x: (-54) y: (-60)\n\nwhen backdrop switches to [level 3 v]\nhide\n\nwhen backdrop switches to [level 4 v]\nshow\n\nwhen flag clicked\nshow\n\nwhen backdrop switches to [level 4 v]\nshow\n\nwhen backdrop switches to [level 9 v]\nhide\n\nwhen backdrop switches to [level 1 v]\nshow\n\nwhen backdrop switches to [level 7 v]\ngo to x: (-23) y: (-66)\n\n@Pokeball\n\nwhen backdrop switches to [level 10 v]\nhide\n\nwhen backdrop switches to [level 1 v]\nshow\n\n@Spike 3\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [level 2 v]\nshow\ngo to x: (48) y: (67)\n\nwhen backdrop switches to [level 3 v]\nhide\n\nwhen backdrop switches to [level 2 v]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\ngo to x: (115) y: (71)\n\nwhen backdrop switches to [level 3 v]\ndelete this clone\n\nwhen backdrop switches to [level 10 v]\nhide\n\n@You can't see me 1\n\n@Sprite1\n\n@Sprite2\n\nwhen flag clicked\nforever\nend\n\nhide\n\n@Sprite3\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [level 8 v]\nshow\n\nwhen backdrop switches to [level 9 v]\nhide\n\n