Reverse- A Platformer

Instructions: >>>>>>>>>>>>Reverse- A Platformer<<<<<<<<<<\nRemember to double click the green flag before you play! The sequel is out! https://scratch.mit.edu/projects/381771650/\n\nAll you have to do is pass 10 levels. They're all 100% passable! Rest of the instructions are in the game. Have fun! (And don't rage, there's a skip button right there to save your life.)

@Stage\n\nwhen flag clicked\nforever\n    play sound [thefatrat-xenogenesis-256kbps-cbr-SDSQAgWYr v] until done\nend\n\n@Player\n\nwhen flag clicked\nshow\nset [x v] to [0]\nset [y v] to [0]\ngo to x: (209) y: (-57)\nswitch costume to (costume1 v)\nforever\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        switch costume to (costume3 v)\n        change [x v] by (1)\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        switch costume to (costume1 v)\n        change [x v] by (-1)\n    end\n    set [x v] to ((x) * (.9))\n    change x by (x)\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) * (-1))\n                            change y by (-5)\n                            if <<key (down arrow v) pressed?> or <key (s v) pressed?>> then\n                                if <(x) > [0]> then\n                                    set [x v] to [-5]\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    change [y v] by (-1)\n    change y by (y)\n    if <touching (level v)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <touching (level v)?> then\n        if <<key (down arrow v) pressed?> or <key (s v) pressed?>> then\n            change [y v] by (15)\n        end\n    end\n    change y by (1)\n    if <(x position) < [-230]> then\n        change [l v] by (1)\n        switch costume to (costume1 v)\n        set [x v] to [0]\n        set [y v] to [0]\n        go to x: (209) y: (-57)\n    end\n    if <touching ("lava" v)?> then\n        broadcast (killed v)\n        repeat (25)\n            change [ghost v] effect by (4)\n        end\n        wait (.5) seconds\n        go to x: (209) y: (-57)\n        clear graphic effects\n        switch costume to (costume1 v)\n    end\n    if <touching (trampoline v)?> then\n        set [y v] to [21]\n    end\nend\n\nwhen I receive [retry v]\ngo to x: (209) y: (-57)\n\nwhen I receive [skip v]\ngo to x: (209) y: (-57)\n\n@Level\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [l v] to [1]\nforever\n    switch costume to (l)\n    if <(costume [number v]) = [1]> then\n        broadcast (t v)\n    end\n    if <(costume [number v]) = [2]> then\n        broadcast (l2 v)\n    end\n    if <(costume [number v]) = [3]> then\n        broadcast (l3 v)\n    end\n    if <(costume [number v]) = [4]> then\n        broadcast (14 v)\n    end\n    if <(costume [number v]) = [5]> then\n        broadcast (l5 v)\n    end\n    if <(costume [number v]) = [6]> then\n        broadcast (b v)\n    end\n    if <(costume [number v]) = [7]> then\n        broadcast (b7 v)\n    end\n    if <(costume [number v]) = [8]> then\n        broadcast (l8 v)\n    end\n    if <(costume [number v]) = [9]> then\n        broadcast (l9 v)\n    end\n    if <(costume [number v]) = [11]> then\n        broadcast (end v)\n    end\n    if <(costume [number v]) = [10]> then\n        broadcast (l10 v)\n    end\nend\n\nwhen I receive [skip v]\nchange [l v] by (1)\n\n@"Lava"\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\n\nwhen I receive [l2 v]\nswitch costume to (l2 v)\nshow\n\nwhen I receive [l3 v]\nswitch costume to (l3 v)\n\nwhen I receive [14 v]\nswitch costume to (l4 v)\n\nwhen I receive [l5 v]\nswitch costume to (l5 v)\n\nwhen I receive [b v]\nhide\n\nwhen I receive [b7 v]\nswitch costume to (l7 v)\nshow\n\nwhen I receive [l8 v]\nswitch costume to (l8 v)\n\nwhen I receive [l9 v]\nswitch costume to (l9 v)\n\nwhen I receive [end v]\nhide\n\nwhen I receive [l10 v]\nswitch costume to (l10 v)\n\n@Killed\n\nwhen flag clicked\ngo to x: (-1) y: (346)\nhide\n\nwhen I receive [killed v]\nshow\nrepeat until <(y position) < [-355]>\n    change y by (-15)\nend\nhide\ngo to x: (-1) y: (346)\n\n@Trampoline\n\nwhen flag clicked\nhide\n\nwhen I receive [b v]\nswitch costume to (l6 t v)\nshow\n\nwhen I receive [b7 v]\nswitch costume to (l7 t v)\n\nwhen I receive [l8 v]\nswitch costume to (l8 t v)\n\nwhen I receive [l9 v]\nhide\n\n@Text\n\nwhen I receive [t v]\nswitch costume to (t1 v)\nshow\n\nwhen I receive [l2 v]\nswitch costume to (t2 v)\n\nwhen I receive [l3 v]\nswitch costume to (t3 v)\n\nwhen I receive [14 v]\nhide\n\nwhen I receive [b v]\nswitch costume to (t6 v)\nshow\n\nwhen I receive [b7 v]\nhide\n\nwhen I receive [l9 v]\nshow\nswitch costume to (t9 v)\n\nwhen I receive [l10 v]\nswitch costume to (t10 v)\n\nwhen I receive [end v]\nswitch costume to (end v)\n\n@Thumbnail\n\nwhen flag clicked\nshow\ngo to [front v] layer\nset [ghost v] effect to (100)\ngo to x: (0) y: (0)\n\n@Skip\n\nwhen I receive [end v]\nhide\n\nwhen this sprite clicked\nbroadcast (retry v)\n\nwhen flag clicked\ngo to x: (-192) y: (-155)\nshow\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (5)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\n@Retry\n\nwhen I receive [end v]\nhide\n\nwhen this sprite clicked\nbroadcast (skip v)\n\nwhen flag clicked\ngo to x: (-115) y: (-155)\nshow\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (5)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\n@Trick\n\nwhen flag clicked\nhide\n\nwhen I receive [l10 v]\ngo to x: (0) y: (7)\nshow\n\nwhen I receive [end v]\nhide\n\n