Platformer...but you have a radar

Instructions: -------------------------------About----------------------------------\n                             Hello scratchers! \nThis is a third platformer in the Platformer BUT series. This time you have a radar (HOLD SPACEBAR). And believe me, you will find it really useful ;)\nEnjoy playing :)

@Stage\n\nwhen flag clicked\nswitch backdrop to (pozadí1 v)\nwait (1) seconds\nforever\n    if <([costume # v] of [level v]) = [8]> then\n        switch backdrop to (pozadí2 v)\n    end\nend\n\nwhen flag clicked\nforever\n    play sound [Vicetone_-_United_We_Dance v] until done\nend\n\n@Level\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\nshow\ngo to x: (0) y: (0)\n\n@Obstacles\n\nwhen flag clicked\nshow\nswitch costume to (kostým1 v)\ngo to x: (0) y: (0)\ngo to [back v] layer\n\nwhen I receive [next level v]\nnext costume\n\n@Trampoline\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (kostým1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@thumb\n\nwhen flag clicked\nhide\n\n@Sonar waves\n\nwhen flag clicked\nhide\nforever\n    if <key (space v) pressed?> then\n        wait (0.3) seconds\n        if <key (space v) pressed?> then\n            go to (player v)\n            create clone of (_myself_ v)\n        end\n    end\nend\n\nwhen I start as a clone\nset size to (100) %\nshow\nrepeat (50)\n    change size by (30)\n    change [ghost v] effect by (2)\n    go to [back v] layer\nend\ndelete this clone\n\nwhen I receive [next level v]\ndelete this clone\n\n@Player\n\nwhen flag clicked\nshow\nStart Position\ngo to [front v] layer\nshow\nset rotation style [left-right v]\nforever\n    Heyy\nend\n\ndefine Start Position\nset [y_vel v] to [0]\nset [x_vel v] to [0]\nset size to (100) %\ngo to x: (-220) y: (100)\n\ndefine Heyy\ngo to [front v] layer\nswitch costume to (costume1 v)\nif <(x position) = [240]> then\n    broadcast (next level v)\n    Start Position\nend\nchange [y_vel v] by (-1)\nif <<key (right arrow v) pressed?> and <not <key (space v) pressed?>>> then\n    point in direction (90)\n    change [x_vel v] by (1)\nend\nif <<key (left arrow v) pressed?> and <not <key (space v) pressed?>>> then\n    point in direction (-90)\n    change [x_vel v] by (-1)\nend\nset [x_vel v] to ((x_vel) * (0.9))\nchange x by (x_vel)\nif <<touching (level v)?> or <touching (move v)?>> then\n    change y by (1)\n    if <<touching (level v)?> or <touching (move v)?>> then\n        change y by (1)\n        if <<touching (level v)?> or <touching (move v)?>> then\n            change y by (1)\n            if <<touching (level v)?> or <touching (move v)?>> then\n                change y by (1)\n                if <<touching (level v)?> or <touching (move v)?>> then\n                    change y by (1)\n                    if <<touching (level v)?> or <touching (move v)?>> then\n                        change y by (1)\n                        if <<touching (level v)?> or <touching (move v)?>> then\n                            change y by (-6)\n                            if <<key (up arrow v) pressed?> and <not <key (space v) pressed?>>> then\n                                set [y_vel v] to [8]\n                                if <(x_vel) > [0]> then\n                                    set [x_vel v] to [-10]\n                                else\n                                    set [x_vel v] to [10]\n                                end\n                            else\n                                change x by ((x_vel) * (-1))\n                                set [x_vel v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nchange y by (y_vel)\nif <<touching (level v)?> or <touching (move v)?>> then\n    change y by ((y_vel) * (-1))\n    set [y_vel v] to [0]\nend\nchange y by (-1)\nif <<<touching (level v)?> or <touching (move v)?>> and <<key (up arrow v) pressed?> and <not <key (space v) pressed?>>>> then\n    set [y_vel v] to [12]\nend\nif <<key (up arrow v) pressed?> and <not <key (space v) pressed?>>> then\n    if <<key (right arrow v) pressed?> or <key (left arrow v) pressed?>> then\n        switch costume to (right-up v)\n    else\n        switch costume to (up v)\n    end\nelse\n    if <<<key (right arrow v) pressed?> or <key (left arrow v) pressed?>> and <not <key (space v) pressed?>>> then\n        switch costume to (right v)\n    else\n        switch costume to (no v)\n    end\nend\nif <<touching (obstacles v)?> or <(y position) < [-175]>> then\n    Start Position\nend\nif <touching (trampoline v)?> then\n    set [y_vel v] to [20]\nend\nchange y by (1)\n\n@Sprite1\n\nwhen flag clicked\nshow\nclear graphic effects\nwait (0.5) seconds\nrepeat (50)\n    change [ghost v] effect by (2)\nend\n\n