Space platformer part II

Instructions: Walking-arrwos\nlevels-12\nstudio- space studio\n30 hearts and 30 stars for part 3 in the mars\npart 1\nhttps://scratch.mit.edu/projects/629215952/\npart 3\nhttps://scratch.mit.edu/projects/637778817

@Stage\n\n@player\n\nwhen I start as a clone\nswitch costume to (clone v)\nrepeat (10)\n    change [brightness v] effect by (2.5)\n    change size by (-2.5)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nforever\n    if <touching (spikes v)?> then\n        hide\n        set [dead? v] to [yes]\n        wait (1) seconds\n        go to x: (-187) y: (-42)\n        set [dead? v] to [no]\n        show\n    end\nend\n\nwhen flag clicked\ngo to x: (-187) y: (-42)\n\nwhen flag clicked\nforever\n    if <touching (duszek1 v)?> then\n        go to x: (-187) y: (-42)\n        change [lvl v] by (1)\n    end\nend\n\nwhen flag clicked\nswitch backdrop to (stars v)\ngo to [front v] layer\nset [pixelate v] effect to (0)\npoint in direction (90)\nset [lvl v] to [1]\nshow\ngo to x: (-187) y: (-42)\nset size to (100) %\nset [x v] to [0]\nset [x v] to [0]\n\ndefine pokemon\nforever\n    if <key (right arrow v) pressed?> then\n        change [x v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-1)\n    end\n    set [x v] to ((X) * (0.9))\n    change x by (X)\n    if <touching (platform v)?> then\n        change y by (1)\n        if <touching (platform v)?> then\n            change y by (1)\n            if <touching (platform v)?> then\n                change y by (1)\n                if <touching (platform v)?> then\n                    change y by (1)\n                    if <touching (platform v)?> then\n                        if <touching (platform v)?> then\n                            change y by (-5)\n                            change x by ((X) * (-1))\n                            if <key (up arrow 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 [y 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 (platform v)?> then\n        change y by ((Y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <touching (platform v)?> then\n        if <key (up arrow v) pressed?> then\n            set [y v] to [15]\n        end\n    end\n    change y by (1)\nend\n\nwhen flag clicked\nforever\n    pokemon\nend\n\nwhen flag clicked\nforever\n    if <touching (lava v)?> then\n        hide\n        set [dead? v] to [yes]\n        wait (1) seconds\n        go to x: (-187) y: (-42)\n        set [dead? v] to [no]\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    play sound [recording2 v] until done\nend\n\nwhen flag clicked\nforever\n    if <key (down arrow v) pressed?> then\n        switch costume to (down v)\n    end\n    if <key (right arrow v) pressed?> then\n        switch costume to (kostium1 v)\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (kostium1 v)\n    end\n    if <key (up arrow v) pressed?> then\n        switch costume to (kostium1 v)\n    end\n    if <<<key (right arrow v) pressed?> and <key (down arrow v) pressed?>> or <<key (left arrow v) pressed?> and <key (down arrow v) pressed?>>> then\n        switch costume to (down v)\n    end\nend\n\nwhen I start as a clone\nif <<<key (right arrow v) pressed?> and <key (down arrow v) pressed?>> or <<key (left arrow v) pressed?> and <key (down arrow v) pressed?>>> then\n    switch costume to (down2 v)\nend\nif <key (down arrow v) pressed?> then\n    switch costume to (down2 v)\nend\nif <not <key (down arrow v) pressed?>> then\n    switch costume to (clone v)\nend\n\n@platform\n\nwhen flag clicked\ngo to [back v] layer\nforever\n    switch costume to (LvL)\nend\n\n@spikes\n\nwhen flag clicked\nforever\n    switch costume to (LvL)\nend\n\n@titles\n\nwhen flag clicked\nforever\n    switch costume to (LvL)\n    go to [front v] layer\nend\n\nwhen flag clicked\ngo to x: (0) y: (123)\n\n@lava\n\nwhen flag clicked\nforever\n    switch costume to (LvL)\nend\n\n@Duszek1\n\nwhen flag clicked\ngo to x: (238) y: (25)\nset [ghost v] effect to (100)\n\n@Duszek2\n\nwhen flag clicked\ngo to x: (23) y: (8)\nhide\ngo to [front v] layer\n\n