Unexpected (platformer)

Instructions: As I promised I shared today, 12 February!\nArrow keys to move :)\nAnd avoid many things XP\nThere will come part 2. With more tricks! :D\nIf you see any glitch, say that please!\n

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop2 v)\nforever\n    play sound [Alkali - Lively v] until done\nend\n\n@Sprite1\n\nwhen flag clicked\nshow\ngo to [front v] layer\nforever\n    go to [front v] layer\n    if <key (right arrow v) pressed?> then\n        switch costume to (costume2 v)\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (costume4 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ff9700)?> then\n        set [x v] to [20]\n    end\nend\n\nwhen flag clicked\nforever\n    if <<([costume # v] of [sprite2 v]) = [6]> or <([costume # v] of [sprite2 v]) = [13]>> then\n        if <(x position) < [-240]> then\n            broadcast (next level v)\n            go to x: (-177) y: (8)\n        end\n    else\n        if <(x position) > [240]> then\n            broadcast (next level v)\n            go to x: (-177) y: (8)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (right arrow v) pressed?> then\n        change [x v] by (1.5)\n    end\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-1.5)\n    end\n    set [x v] to ((x) * (0.8))\n    change x by (x)\n    if <touching color (#38c300)?> then\n        change y by (1)\n        if <touching color (#38c300)?> then\n            change y by (1)\n            if <touching color (#38c300)?> then\n                change y by (1)\n                if <touching color (#38c300)?> then\n                    change y by (1)\n                    if <touching color (#38c300)?> then\n                        change y by (1)\n                        if <touching color (#38c300)?> then\n                            change y by (1)\n                            if <touching color (#38c300)?> then\n                                change x by ((x) * (-1))\n                                change y by (-5)\n                                if <key (up arrow v) pressed?> then\n                                    if <(x) > [0]> then\n                                        set [x v] to [-10]\n                                    else\n                                        set [x v] to [5]\n                                    end\n                                    set [y v] to [10]\n                                else\n                                    set [x v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [y v] by (-1)\n    change y by (y)\n    if <touching color (#38c300)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<key (up arrow v) pressed?> and <touching color (#38c300)?>> then\n        set [y v] to [12]\n    end\n    change y by (1)\nend\n\n\n\nwhen flag clicked\nforever\n    if <touching color (#d92020)?> then\n        set [x v] to [0]\n        go to x: (-177) y: (8)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#35bc00)?> then\n        set [x v] to [0]\n        go to x: (-177) y: (8)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#9966ff)?> then\n        set [x v] to [0]\n        go to x: (-177) y: (8)\n    end\nend\n\nwhen flag clicked\ngo to x: (-177) y: (8)\nforever\n    if <not <<key (right arrow v) pressed?> or <key (left arrow v) pressed?>>> then\n        switch costume to (costume3 v)\n    end\nend\n\nset [y v] to <touching color (#38c300)?>\n\ncreate clone of (_myself_ v)\n\ncreate clone of (_myself_ v)\n\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\n\nset [ghost v] effect to (0)\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\n@Sprite2\n\nwhen flag clicked\nshow\nswitch costume to (costume2 v)\n\nwhen I receive [next level v]\nnext costume\ngo to x: (0) y: (0)\n\n@Sprite3\n\nwhen flag clicked\nshow\ngo to [back v] layer\n\n