Sunny Platformer 2 (ver.1.1.)

Instructions: Sunny Plattformer 2 is here!!\nThx for 10 likes and 10 favourites by the Sunny Plattformer (https://scratch.mit.edu/projects/477033127)\n\nInstruction:\nArrow keys to move\nS to skip\nR to reset\n\nNew:\nTrampolin\nGear (danger)\n\nEnjoy

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop2 v)\n\n@Player\n\nwhen flag clicked\nset [yg v] to [0]\nshow\ngo to [front v] layer\ngo to x: (-200) y: (-40)\nforever\n    if <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [xg v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or <<mouse down?> and <(x position) > (mouse x)>>> then\n        change [xg v] by (-1)\n    end\n    set [xg v] to ((Xg) * (0.9))\n    change x by (Xg)\n    if <<touching color (#00b921)?> or <touching color (#9b6300)?>> then\n        change y by (1)\n        if <<touching color (#00b921)?> or <touching color (#9b6300)?>> then\n            change y by (1)\n            if <<touching color (#00b921)?> or <touching color (#9b6300)?>> then\n                change y by (1)\n                if <<touching color (#00b921)?> or <touching color (#9b6300)?>> then\n                    change y by (1)\n                    if <<touching color (#00b921)?> or <touching color (#9b6300)?>> then\n                        change y by (1)\n                        if <<touching color (#00b921)?> or <touching color (#9b6300)?>> then\n                            change x by ((-1) * (Xg))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n                                if <(Xg) > [0]> then\n                                    set [xg v] to [-7]\n                                else\n                                    set [xg v] to [7]\n                                end\n                                set [yg v] to [10]\n                            else\n                                set [my variable v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yg v] by (-1)\n    change y by (Yg)\n    if <<touching color (#00b921)?> or <touching color (#9b6300)?>> then\n        change y by ((Yg) * (-1))\n        set [yg v] to [0]\n    end\n    change y by (-1)\n    if <<touching color (#00b921)?> or <touching color (#9b6300)?>> then\n        if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            set [yg v] to [15]\n        end\n    end\n    change y by (1)\n    if <<touching color (#8a8a8a)?> or <<touching color (#565656)?> or <<touching (zahnrad v)?> or <<touching color (#c44075)?> or <[-180] > (y position)>>>>> then\n        go to x: (-200) y: (-40)\n    end\n    if <(x position) > [230]> then\n        go to x: (-200) y: (-40)\n        broadcast (Level up v)\n    end\n    if <<touching (trampolin2 v)?> or <touching (trampolin v)?>> then\n        set [yg v] to [20]\n    end\nend\n\nwhen [s v] key pressed\nbroadcast (Level up v)\ngo to x: (-200) y: (-40)\n\nwhen [r v] key pressed\ngo to x: (-200) y: (-40)\n\nwhen flag clicked\nforever\n    play sound [Alan_Walker_-_Spectre_NCS_Release \(1\) v] until done\nend\n\n@Plattformer \n\nwhen I receive [level up v]\nchange [level v] by (1)\nnext costume\n\nwhen flag clicked\nset [level v] to [1]\nswitch costume to (kostüm1 3 v)\n\n@Trampolin\n\nwhen flag clicked\nswitch costume to (costume1 v)\nforever\n    if <<([costume # v] of [plattformer  v]) = [4]> or <([costume # v] of [plattformer  v]) = [3]>> then\n        go to x: (-72) y: (-112)\n        show\n        if <touching (player v)?> then\n            next costume\n            wait (0.1) seconds\n            next costume\n        end\n    else\n        if <not <([costume # v] of [plattformer  v]) = [6]>> then\n            hide\n        end\n    end\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\nforever\n    if <([costume # v] of [plattformer  v]) = [6]> then\n        go to x: (64) y: (-145)\n        show\n        if <touching (player v)?> then\n            next costume\n            wait (0.1) seconds\n            next costume\n        end\n    else\n        if <not <<([costume # v] of [plattformer  v]) = [4]> or <([costume # v] of [plattformer  v]) = [3]>>> then\n            hide\n        end\n    end\nend\n\n@Zahnrad\n\nwhen flag clicked\nswitch costume to (costume1 3 v)\ngo to x: (-72) y: (-112)\nforever\n    if <([costume # v] of [plattformer  v]) = [4]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset rotation style [all around v]\nforever\n    go to x: (140) y: (-20)\n    set [xv anemy v] to [-15]\n    repeat (20)\n        change x by (Xv anemy)\n        change [xv anemy v] by (1)\n    end\n    set [xv anemy v] to [15]\n    repeat (20)\n        change x by (Xv anemy)\n        change [xv anemy v] by (-1)\n    end\nend\n\nwhen flag clicked\nforever\n    turn right (Xv anemy) degrees\nend\n\n@Lava Asets\n\nwhen flag clicked\nhide\nforever\n    if <(Level) = [5]> then\n        create clone of (_myself_ v)\n    end\nend\n\nwhen I start as a clone\nif <(Level) = [5]> then\n    clear graphic effects\n    set y to (-180)\n    set x to (pick random (-110) to (200))\n    go to [front v] layer\n    show\n    repeat (15)\n        change y by (2)\n        change [ghost v] effect by (5)\n    end\n    hide\nend\ndelete this clone\n\n@Zahnrad2\n\nwhen flag clicked\nswitch costume to (costume1 3 v)\ngo to x: (-72) y: (-112)\nforever\n    if <([costume # v] of [plattformer  v]) = [7]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset rotation style [all around v]\nforever\n    go to x: (0) y: (-125)\n    set [xv amemy2 v] to [-15]\n    repeat (20)\n        change x by (Xv amemy2)\n        change [xv amemy2 v] by (1)\n    end\n    set [xv amemy2 v] to [15]\n    repeat (20)\n        change x by (Xv amemy2)\n        change [xv amemy2 v] by (-1)\n    end\nend\n\nwhen flag clicked\nforever\n    turn right (Xv amemy2) degrees\nend\n\n@Trampolin2\n\nwhen flag clicked\nswitch costume to (costume1 v)\nforever\n    if <([costume # v] of [plattformer  v]) = [6]> then\n        go to x: (-214) y: (62)\n        show\n        if <touching (player v)?> then\n            next costume\n            wait (0.1) seconds\n            next costume\n        end\n    else\n        hide\n    end\nend\n\n@Sprite1\n\nwhen flag clicked\nswitch costume to (costume1 v)\nshow\n\nwhen I receive [level up v]\nnext costume\n\n