Drożdż scrolling platformer

Instructions: Daj pod tym  gwiazdkę i serce oraz śledzia, bo to długo robiłem\n\n175 gwiazdek i serc = kolejny scrolling\n#Wbijmy to na 1 trendy!\nDaj mu śledzia: @szympansszymon8000\nJak chcesz to se zrobić to idź na kanał @griffpatch

@Stage\n\nwhen flag clicked\nset volume to (100) %\n\nwhen flag clicked\nrepeat (4)\n    play sound [Fly Octo Fly _ Ebb  Flow \(Octo\) \[Off the Hook\] - Splatoon 2 Music v] until done\nend\n\nwhen I receive [kuniec v]\nset volume to (0) %\n\n@Blank\n\n@Adiłan\n\nwhen flag clicked\nreset timer\nset [zebrane łyżki v] to [0]\nwait (0.5) seconds\nswitch costume to (adiłan v)\nbroadcast (zielona flaga v) and wait\nbroadcast (Graj Adiłanie! v) and wait\n\nwhen I receive [zielona flaga v]\ngo to [front v] layer\nhide\n\nwhen I receive [graj adiłanie! v]\nset [scroll x v] to [0]\nset [scroll y v] to [0]\nshow\nset [level v] to [1]\nforever\n    switch costume to (adiłan v)\n    broadcast (zresetuj się adiłanie v)\n    broadcast (do góry v)\n    Gra włączona\n    repeat until <(Wyjście) > []>\n        Tick\n        broadcast (tick v) and wait\n    end\n    Umarłeś\nend\n\ndefine Gra włączona\nset [ghost v] effect to (0)\nset [y v] to [0]\nset [x v] to [0]\nset [sy v] to [0]\nset [sx v] to [0]\nset [w powietrzu v] to [0]\nset [wyjście v] to []\nshow\n\ndefine Tick\nif <key (left arrow v) pressed?> then\n    change [sx v] by (-2)\nend\nif <key (right arrow v) pressed?> then\n    change [sx v] by (2)\nend\nset [sx v] to ((sx) * (0.8))\nif <([abs v] of (sx) ) > [0.9]> then\n    zmień x adiłana o (round (sx))\nend\nif <key (up arrow v) pressed?> then\n    if <(w powietrzu) < [4]> then\n        set [sy v] to [16]\n    end\nend\nif <(sy) > [-20]> then\n    change [sy v] by (-2)\nend\nzmień y adiłana o (sy)\nCzy Żyję?\nset [scroll x v] to (x)\nPozycja\nif <(x) < [-150]> then\n    set [x v] to [-150]\nend\nif <(y) < [-120]> then\n    set [wyjście v] to [ble]\nend\nset [scroll y v] to (y)\nPozycja\nif <<key (right arrow v) pressed?> or <key (left arrow v) pressed?>> then\n    next costume\nelse\n    switch costume to (adiłan v)\nend\n\ndefine zmień y adiłana o (sy)\nchange [y v] by (sy)\nchange [w powietrzu v] by (1)\nPozycja\nrepeat until <not <touching (ziemia v)?>>\n    if <(sy) > [0]> then\n        change [y v] by (-1)\n    else\n        change [y v] by (1)\n        set [w powietrzu v] to [0]\n    end\n    Pozycja\n    set [sy v] to [0]\nend\n\ndefine Pozycja\ngo to x: ((x) - (SCROLL X)) y: ((y) - (SCROLL Y))\n\ndefine zmień x adiłana o (sx)\nchange [x v] by (sx)\nPozycja\nif <touching (ziemia v)?> then\n    repeat (14)\n        change [y v] by (1)\n        Pozycja\n        if <not <touching (ziemia v)?>> then\n            stop [this script v]\n        end\n    end\n    change [y v] by (-12)\n    if <key (up arrow v) pressed?> then\n        if <(sx) > [0]> then\n            set [sx v] to [-16]\n        else\n            set [sx v] to [16]\n        end\n        set [w powietrzu v] to [0]\n    else\n        set [sx v] to [0]\n    end\n    repeat until <not <touching (ziemia v)?>>\n        if <(sx) > [0]> then\n            change [x v] by (-1)\n        else\n            change [x v] by (1)\n        end\n        Pozycja\n    end\nend\n\ndefine Umarłeś\nshow\nset [wyjście v] to []\nrepeat (5)\n    show\n    wait (0.11) seconds\n    hide\n    wait (0.11) seconds\nend\nhide\nwait (0.5) seconds\n\ndefine Czy Żyję?\nif <touching (przeszkody v)?> then\n    set [wyjście v] to [ble]\nend\n\nwhen I receive [kuniec v]\nstop [other scripts in sprite v]\n\n@Ziemia\n\nwhen I receive [zielona flaga v]\nset [x v] to [0]\nset [x v] to [0]\nshow\n\nwhen I receive [tick v]\npozycja ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [do góry v]\nhide\nswitch costume to (level 1 0 v)\nzrób kuchnię x: [-300] y: [0]\nzrób kuchnię x: [0] y: [0]\nzrób kuchnię x: [360] y: [0]\nzrób kuchnię x: ((360) * (2)) y: [0]\nzrób kuchnię x: ((360) * (3)) y: [0]\nzrób kuchnię x: ((360) * (4)) y: [0]\nzrób kuchnię x: ((360) * (5)) y: [0]\nzrób kuchnię x: ((360) * (6)) y: [0]\nzrób kuchnię x: ((360) * (7)) y: [80]\nzrób kuchnię x: ((360) * (8)) y: [60]\nzrób kuchnię x: ((360) * (9)) y: [60]\nzrób kuchnię x: (((360) * (10)) + ()) y: [60]\nzrób kuchnię x: (((360) * (11)) + (100)) y: [60]\nchange [x v] by ((360) + (100))\nshow\n\ndefine pozycja (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [zresetuj się adiłanie v]\ndelete this clone\n\ndefine zrób kuchnię x: (x) y: (y)\nset [y v] to (y)\nset [x v] to (x)\ncreate clone of (_myself_ v)\nnext costume\n\nwhen I receive [kuniec v]\nstop [other scripts in sprite v]\n\n@przeszkody\n\nwhen I receive [zielona flaga v]\nset [x v] to [0]\nset [x v] to [0]\nshow\n\nwhen I receive [tick v]\npozycja ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [do góry v]\nset [x v] to [0]\nset [y v] to [0]\nswitch costume to (level 1 1 v)\nzrób kuchnię x: [0] y: [0]\nzrób kuchnię x: [360] y: [0]\nzrób kuchnię x: ((360) * (2)) y: [0]\nzrób kuchnię x: ((360) * (3)) y: [0]\nzrób kuchnię x: ((360) * (4)) y: [0]\nzrób kuchnię x: ((360) * (8)) y: [60]\ngo to [front v] layer\nshow\n\ndefine pozycja (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [zresetuj się adiłanie v]\ndelete this clone\n\ndefine zrób kuchnię x: (x) y: (y)\nset [y v] to (y)\nset [x v] to (x)\ncreate clone of (_myself_ v)\nnext costume\n\nwhen I receive [kuniec v]\nstop [other scripts in sprite v]\n\n@łyżki\n\nwhen I receive [zielona flaga v]\nset [x v] to [0]\nset [x v] to [0]\nshow\n\nwhen I receive [tick v]\npozycja ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <touching (adiłan v)?> then\n    start sound [Coin v]\n    change [zebrane łyżki v] by (1)\n    delete this clone\nend\n\nwhen I receive [do góry v]\nhide\nswitch costume to (level 1 0 v)\nzrób kuchnię x: [180] y: [0]\nzrób kuchnię x: [597] y: [2.5]\nzrób kuchnię x: [942] y: [4]\nzrób kuchnię x: [1379] y: [17.5]\nzrób kuchnię x: [2420] y: [91]\nzrób kuchnię x: [2972] y: [274.5]\nset [x v] to [-99999]\nshow\n\ndefine pozycja (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [zresetuj się adiłanie v]\nset [zebrane łyżki v] to [0]\ndelete this clone\n\ndefine zrób kuchnię x: (x) y: (y)\nset [y v] to (y)\nset [x v] to (x)\ncreate clone of (_myself_ v)\n\nwhen I receive [kuniec v]\nstop [other scripts in sprite v]\n\n@łyżki2\n\nwhen I receive [zielona flaga v]\nset [x v] to [0]\nset [x v] to [0]\nshow\n\nwhen I receive [tick v]\npozycja ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <touching (adiłan v)?> then\n    change [zebrane łyżki v] by (1)\n    start sound [Coin v]\n    delete this clone\nend\n\nwhen I receive [do góry v]\nhide\nswitch costume to (level 1 0 v)\nzrób kuchnię x: [4712] y: [375]\nset [x v] to [-99999]\nshow\n\ndefine pozycja (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [zresetuj się adiłanie v]\ndelete this clone\n\ndefine zrób kuchnię x: (x) y: (y)\nset [y v] to (y)\nset [x v] to (x)\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nset [zebrane łyżki v] to [0]\nwait until <(zebrane łyżki) = [7]>\n\nwhen I receive [kuniec v]\nstop [other scripts in sprite v]\n\n@Tło\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [back v] layer\n\nwhen I receive [do góry v]\ngo to x: ((SCROLL X) / (10)) y: ((SCROLL Y) / (10))\ngo to [back v] layer\n\n@Miniaturka\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [front v] layer\nchange [ghost v] effect by (100)\n\n@Duszek1\n\nwhen flag clicked\nset [zebrane łyżki v] to [0]\nreset timer\nhide variable [twój czas v]\nhide variable [☁ top 1 v]\ngo to x: (0) y: (0)\ngo to [back v] layer\nhide\nwait until <(zebrane łyżki) = [7]>\nstop all sounds\nbroadcast (kuniec v)\nshow\nshow variable [twój czas v]\nshow variable [☁ top 1 v]\nset [twój czas v] to (timer)\nif <(☁ Top 1) > (Twój czas)> then\n    set [☁ top 1 v] to (Twój czas)\nend\nforever\n    reset timer\nend\n\nwhen I receive [kuniec v]\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nrepeat (10)\n    hide\nend\n\nwhen I receive [kuniec v]\nforever\n    play sound [Brawl Stars Music- Win Extended3 v] until done\nend\n\nset [☁ top 1 v] to [60]\n\n