In The Dark | Platformer

Instructions: Управление: Стрелки, R рестарт, S, скип уровня\nСорри если есть баги(((\nЯ В ИССЛЕДУЙ!!!!!\n

@Stage\n\nwhen flag clicked\nforever\n    play sound [bbe7b7e1cf139bf v] until done\nend\n\n@игрок\n\nwhen flag clicked\nset size to (100) %\nforever\n    if <<touching (шипы v)?> or <touching (спрайт 3 v)?>> then\n        set [x v] to [20]\n        set [y v] to [15]\n    end\n    if <<touching (шипы v)?> or <touching (спрайт 3 v)?>> then\n        set [x v] to [-20]\n        set [y v] to [15]\n    end\n    if <<touching (шипы v)?> or <touching (спрайт 3 v)?>> then\n        set [y v] to [17]\n    end\nend\n\nwhen [s v] key pressed\nchange [уровень v] by (1)\nwait (0.1) seconds\ngo to x: (-207) y: (103)\nset [x v] to [0]\nset [y v] to [0]\n\nwhen [r v] key pressed\ngo to x: (-207) y: (103)\nset [x v] to [0]\nset [y v] to [0]\n\nwhen flag clicked\nswitch backdrop to (фон 1 v)\nset rotation style [left-right v]\ngo to x: (-207) y: (103)\nset [x v] to [0]\nset [y v] to [0]\nshow\nwait (.1) seconds\nforever\n    if <<touching (шипы v)?> or <touching (спрайт 3 v)?>> then\n        go to x: (-207) y: (103)\n        set [x v] to [0]\n        set [y v] to [0]\n    end\n    if <(x position) > [228]> then\n        change [уровень v] by (1)\n        wait (0.1) seconds\n        go to x: (-207) y: (103)\n        set [x v] to [0]\n        set [y v] to [0]\n    end\n    if <(y position) < [-170]> then\n        go to x: (-207) y: (103)\n        set [x v] to [0]\n        set [y v] to [0]\n    end\n    if <<<(mouse x) > (x position)> and <mouse down?>> or <key (right arrow v) pressed?>> then\n        change [x v] by (1)\n    end\n    if <<<(mouse x) < (x position)> and <mouse down?>> or <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 (локация v)?> then\n        change y by (1)\n        change x by ((x) * (-1))\n        if <<key (up arrow v) pressed?> or <mouse down?>> then\n            set [y v] to [10]\n            if <(x) > [0]> then\n                set [x v] to [-10]\n            else\n                set [x v] to [10]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\n    change [y v] by (-.6)\n    change y by (y)\n    if <touching (локация v)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <touching (локация v)?> then\n        if <<<mouse down?> and <(mouse y) > (y position)>> or <key (up arrow v) pressed?>> then\n            set [y v] to [10]\n        end\n    end\n    change y by (1)\nend\n\n@Спрайт 1\n\nwhen flag clicked\nforever\n    go to (игрок v)\nend\n\n@локация\n\nwhen flag clicked\nset [уровень v] to [1]\nforever\n    if <(уровень) = [1]> then\n        switch costume to (левел 1 v)\n    end\n    if <(уровень) = [2]> then\n        switch costume to (левел 2 v)\n    end\n    if <(уровень) = [3]> then\n        switch costume to (левел 3 v)\n    end\n    if <(уровень) = [4]> then\n        switch costume to (левел 4 v)\n    end\n    if <(уровень) = [5]> then\n        switch costume to (левел 5 v)\n    end\n    if <(уровень) = [6]> then\n        switch costume to (левел 6 v)\n    end\n    if <(уровень) = [7]> then\n        switch costume to (левел 7 v)\n    end\n    if <(уровень) = [8]> then\n        switch costume to (левел 8 v)\n    end\n    if <(уровень) = [9]> then\n        switch costume to (левел 9 v)\n    end\n    if <(уровень) = [10]> then\n        switch costume to (левел 10 v)\n    end\nend\n\n@шипы\n\nwhen flag clicked\nforever\n    if <(уровень) = [1]> then\n        hide\n    end\n    if <(уровень) = [2]> then\n        hide\n    end\n    if <(уровень) = [3]> then\n        wait (1) seconds\n        switch costume to (костюм 1 v)\n        show\n    end\n    if <(уровень) = [4]> then\n        switch costume to (костюм 2 v)\n        show\n    end\n    if <(уровень) = [5]> then\n        hide\n    end\n    if <(уровень) = [6]> then\n        hide\n    end\n    if <(уровень) = [7]> then\n        switch costume to (костюм 3 v)\n        show\n    end\n    if <(уровень) = [8]> then\n        switch costume to (костюм 4 v)\n        show\n    end\n    if <(уровень) = [9]> then\n        hide\n    end\n    if <(уровень) = [10]> then\n        hide\n    end\nend\n\n@Спрайт 2\n\nwhen flag clicked\nhide\nforever\n    if <(уровень) = [5]> then\n        go to x: (pick random (3) to (236)) y: (-138)\n        create clone of (_myself_ v)\n        wait (0.3) seconds\n    end\nend\n\nwhen I start as a clone\nshow\nrepeat (30)\n    change y by (5)\nend\ndelete this clone\n\n@Спрайт 3\n\nwhen flag clicked\nhide\nforever\n    if <(уровень) = [5]> then\n        show\n    end\n    if <(уровень) = [6]> then\n        hide\n    end\nend\n\n@fdfnfhrf\n\nwhen flag clicked\nset [ghost v] effect to (0)\nshow\ngo to [front v] layer\nwait (3) seconds\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nhide\n\n