Castle - A platformer

Instructions: ⭐ + ❤️️ wymagane inaczej pójdziesz do więzienia w Rawiczu 100% legit no scam\nidk jestem beznadziejny w grafiki więc już z góry za nie przepraszam :p\nKwadraty od platformy kładła grupa robotników z Pakistanu a krzywe są przez to że płyty tektoniczne się ruszały przy montażu ¯\_(ツ)_/¯\nchodzisz na zdrzałgi skaczesz na gurnom zdrzałgę\nChwilowy rekordzista @Slimaq123

@Stage\n\nwhen flag clicked\nreset timer\nhide variable [czas v]\nhide variable [☁ najlepszy osiągnięty czas v]\n\nchange [czas v] by (0.1)\n\nwhen I receive [scrolling czas start v]\nstop [other scripts in sprite v]\nshow variable [☁ najlepszy osiągnięty czas v]\nset [czas v] to (timer)\nshow variable [czas v]\nif <(czas) < (☁ Najlepszy osiągnięty czas)> then\n    set [☁ najlepszy osiągnięty czas v] to (czas)\nend\n\nset [☁ najlepszy osiągnięty czas v] to [100]\n\nforever\nend\n\n@Gracz\n\nwhen flag clicked\nset [wysokośc skoku v] to [-7]\nforever\n    to od spadania\nend\n\nchange [wysokośc skoku v] by (-1)\n\nwhen flag clicked\nforever\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        broadcast (ruch v)\n        point in direction (90)\n        change x by (5)\n        if <touching (platforma v)?> then\n            change x by (-5)\n        end\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        broadcast (ruch v)\n        point in direction (-90)\n        change x by (-5)\n        if <touching (platforma v)?> then\n            change x by (5)\n        end\n    end\nend\n\nrepeat (10)\n\nset [płynne spadanie v] to [nie]\n\nset [płynne spadanie v] to [tak]\n\nset [płynne spadanie v] to [nie]\n\n\n\nif  then\n    repeat (10)\n        change [wysokośc skoku v] by (-1)\n    end\nend\n\nrepeat (10)\n\nchange y by (-3)\nif  then\n    repeat until <touching (platforma v)?>\n        wait (0.000001) seconds\n        change [wysokośc skoku v] by (-1)\n    end\nelse\n    change y by (3)\nend\n\n\n\nset [czy może skoczyć v] to [nie]\n\nchange y by (-1)\n\nset [☁ najlepszy wynik v] to [-1]\n\nwait (0.1) seconds\nchange [wysokośc skoku v] by (-1)\n\n\n\nwait (0.0000000001) seconds\n\ndefine śmierć\nstart sound [Crunch v]\nbroadcast (resetuj v)\n\nwhen flag clicked\nshow\nforever\n    set [kierunek rycerza xdddd v] to (direction)\nend\n\n\n\nwhen flag clicked\nforever\n    if <<(x position) > [-5]> and <(poziom) = [8]>> then\n        change [poziom v] by (1)\n        stop [this script v]\n    end\nend\n\nwhen I receive [scrolling czas start v]\nforever\n    hide\n    stop [other scripts in sprite v]\nend\n\nstart sound [chodzeniexd v]\nstart sound [chodzeniexd v]\n\ndefine to od spadania\nbroadcast (ruch v)\nif <not <touching (platforma v)?>> then\n    change y by (Wysokośc skoku)\nend\nif <<touching (platforma v)?> and <(Wysokośc skoku) < [0]>> then\n    if <touching color (#fcab00)?> then\n        śmierć\n    end\n    set [czy może skoczyć v] to [tak]\n    set [wysokośc skoku v] to [-13]\n    repeat until <not <touching (platforma v)?>>\n        change y by (1)\n    end\nelse\n    if <<touching (platforma v)?> and <(Wysokośc skoku) > [0]>> then\n        change y by (-10)\n        repeat ([abs v] of ((Wysokośc skoku) * (2)) )\n            change [wysokośc skoku v] by (-1)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<key (up arrow v) pressed?> or <key (space v) pressed?>> and <(czy może skoczyć) = [tak]>> then\n        set [czy może skoczyć v] to [nie]\n        set [wysokośc skoku v] to [15]\n        start sound [Jump sound effect v]\n        repeat until <(czy może skoczyć) = [tak]>\n            change [wysokośc skoku v] by (-1)\n        end\n    end\nend\n\nwhen I receive [resetuj v]\ngo to x: (-220) y: (70)\n\nwhen flag clicked\nforever\n    if <not <touching (platforma v)?>> then\n        wait (0.2) seconds\n        set [czy może skoczyć v] to [nie]\n    end\nend\n\nwhen flag clicked\nbroadcast (resetuj v)\n\n@Platforma\n\nwhen I receive [scrolling czas start v]\nforever\n    hide\n    stop [other scripts in sprite v]\nend\n\nset [poziom v] to [7]\n\nwhen flag clicked\nswitch backdrop to (tło1 v)\nforever\n    if <(poziom) > [7]> then\n        switch backdrop to (tło2 v)\n    end\nend\n\nwhen flag clicked\nshow\nforever\n    switch costume to (poziom)\nend\n\n@Portal\n\nwhen flag clicked\nshow\nset [poziom v] to [1]\nforever\n    if <touching (gracz v)?> then\n        broadcast (resetuj v)\n        change [poziom v] by (1)\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <(poziom) = [7]>> then\n        go to x: (78) y: (0)\n        switch costume to (kostium1 v)\n    else\n        go to x: (150) y: (9)\n        switch costume to (kostium2 v)\n    end\nend\n\nif <(poziom) = [1]> then\n\nwait (1) seconds\nchange [czas v] by (1)\n\nset [☁ najlepszy wynik v] to [100]\n\nwhen flag clicked\nshow\nforever\n\nset [☁ najlepszy wynik v] to [100]\n\nhide\nif <(Czas) < (☁ Najlepszy wynik)> then\n    set [☁ najlepszy wynik v] to (Czas)\nend\n\nif <(poziom) = [3]> then\n    go to x: (80) y: (0)\nelse\n    if <(poziom) = [4]> then\n        go to x: (80) y: (0)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(poziom) = [12]> then\n        go to x: (80) y: (0)\n        broadcast (Scrolling czas start v)\n    end\nend\n\nwhen I receive [scrolling czas start v]\nforever\n    hide\n    stop [other scripts in sprite v]\nend\n\nwhen I receive [scrolling czas start v]\nforever\n    hide\n    stop [other scripts in sprite v]\nend\n\n@Tutaj se maluje\n\nwhen I receive [scrolling czas start v]\nforever\n    hide\n    stop [other scripts in sprite v]\nend\n\nhide\n\nshow\n\n@Wróg na poziom 3\n\nwhen I receive [scrolling czas start v]\nforever\n    hide\n    stop [other scripts in sprite v]\nend\n\nwhen flag clicked\nforever\n    if <touching (gracz v)?> then\n        broadcast (resetuj v)\n        start sound [Crunch v]\n    end\nend\n\nwhen flag clicked\nhide\ngo to x: (180) y: (-29)\nforever\n    if <(poziom) = [3]> then\n        go to x: (180) y: (-29)\n        show\n        wait (0.1) seconds\n        repeat until <not <(poziom) = [3]>>\n            set rotation style [left-right v]\n            point towards (gracz v)\n            repeat until <touching (_edge_ v)?>\n                change x by (-5)\n            end\n            hide\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n\nmove (3) steps\n\nif <(Kierunek rycerza xdddd) = [prawa]> then\n    change x by (5)\nend\n\nrepeat (20)\n\nwhen I receive [resetuj v]\ngo to x: (180) y: (-29)\n\nplay sound [Crunch v] until done\n\n@Miecz w skale\n\nwhen I receive [scrolling czas start v]\nforever\n    hide\n    stop [other scripts in sprite v]\nend\n\nwhen flag clicked\nset size to (100) %\nclear graphic effects\ngo to [back v] layer\nforever\n    if <(poziom) = [5]> then\n        show\n        if <touching (gracz v)?> then\n            repeat (10)\n                change [brightness v] effect by (10)\n            end\n            repeat (10)\n                change size by (-10)\n            end\n            hide\n            broadcast (Miecz v)\n            set [czy ma miecz? v] to [tak]\n            stop [this script v]\n        end\n    else\n        hide\n    end\nend\n\nif <touching (gracz v)?> then\n\nchange [brightness v] effect by (10)\n\n@Miecz\n\nwhen I receive [scrolling czas start v]\nforever\n    hide\n    stop [other scripts in sprite v]\nend\n\nwhen I receive [ruch v]\ngo to (gracz v)\n\nwhen flag clicked\nset [brightness v] effect to (100)\nhide\nset [czy ma miecz? v] to [nie]\nset [czy atakuje v] to [nie]\nswitch costume to (miecz v)\nbroadcast (obracanie się miecza v)\n\nwhen [z v] key pressed\nif <(czy ma miecz?) = [tak]> then\n    set [czy atakuje v] to [tak]\n    start sound [mieczdzwiek v]\n    repeat (7)\n        switch costume to ((costume [number v]) + (1))\n    end\n    repeat (7)\n        switch costume to ((costume [number v]) + (-1))\n    end\n    set [czy atakuje v] to [nie]\nend\n\nturn right (15) degrees\n\nwhen I receive [obracanie się miecza v]\nset rotation style [left-right v]\nforever\n    point in direction (Kierunek rycerza xdddd)\nend\n\n\n\nwhen I receive [miecz v]\ngo to [front v] layer\nshow\nrepeat (10)\n    change [brightness v] effect by (-10)\nend\n\n@Wróg na poziom 6\n\nwhen I receive [scrolling czas start v]\nforever\n    hide\n    stop [other scripts in sprite v]\nend\n\nwhen flag clicked\nforever\n    if <touching (gracz v)?> then\n        start sound [Crunch v]\n        broadcast (resetuj v)\n    end\nend\n\nwhen flag clicked\nclear graphic effects\nset size to (30) %\nhide\ngo to x: (180) y: (-29)\nforever\n    if <(poziom) = [6]> then\n        show\n        go to x: (180) y: (-29)\n        forever\n            point in direction ((-1) * (Kierunek rycerza xdddd))\n            move (4) steps\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n\nmove (3) steps\n\nrepeat (20)\n\nwhen I receive [resetuj v]\ngo to x: (180) y: (-29)\n\nshow\nwait (0.1) seconds\nrepeat until <not <(poziom) = [3]>>\n    set rotation style [left-right v]\n    point towards (gracz v)\nend\n\nhide\n\nwhen flag clicked\nforever\n    if <<(czy atakuje) = [tak]> and <touching (miecz v)?>> then\n        stop [other scripts in sprite v]\n        repeat (10)\n            change [brightness v] effect by (10)\n        end\n        repeat (3)\n            change size by (-10)\n        end\n        hide\n        broadcast (Pokaż drugiego v)\n    end\nend\n\nchange x by (5)\n\nforever\n    point in direction ((-1) * (Kierunek rycerza xdddd))\n    move (4) steps\nend\n\n@Wróg na poziom 2\n\nwhen I receive [scrolling czas start v]\nforever\n    hide\n    stop [other scripts in sprite v]\nend\n\nwhen flag clicked\nforever\n    if <touching (gracz v)?> then\n        start sound [Crunch v]\n        broadcast (resetuj v)\n    end\nend\n\nwhen flag clicked\nhide\nforever\n\nmove (3) steps\n\nrepeat (20)\n\nwhen I receive [resetuj v]\ngo to x: (180) y: (-29)\n\nwhen flag clicked\nforever\n    if <<(czy atakuje) = [tak]> and <touching (miecz v)?>> then\n        stop [other scripts in sprite v]\n        repeat (10)\n            change [brightness v] effect by (10)\n        end\n        repeat (3)\n            change size by (-10)\n        end\n        hide\n    end\nend\n\nchange x by (5)\n\nwhen I receive [pokaż drugiego v]\nset size to (30) %\nclear graphic effects\nshow\nforever\n    point in direction ((-1) * (Kierunek rycerza xdddd))\n    move (4) steps\nend\n\n@armata\n\nwhen I receive [scrolling czas start v]\nforever\n    hide\n    stop [other scripts in sprite v]\nend\n\nwhen flag clicked\n\nwhen flag clicked\n\nbroadcast (wywal kule xddddd v)\n\nwhen flag clicked\ngo to [back v] layer\nforever\n    if <not <(poziom) = [7]>> then\n        hide\n    end\nend\n\nif <(poziom) = [7]> then\n    show\n    wait (3) seconds\n    broadcast (wywal kule xddddd v) and wait\nelse\n    hide\nend\n\nwhen I receive [resetuj v]\nforever\n    if <(poziom) = [7]> then\n        show\n        wait (0.2) seconds\n        start sound [Canoon+4 v]\n        broadcast (wywal kule xddddd v) and wait\n    else\n        hide\n    end\nend\n\n@kula\n\nwhen I receive [scrolling czas start v]\nforever\n    hide\n    stop [other scripts in sprite v]\nend\n\nwhen flag clicked\nforever\n    if <not <(poziom) = [7]>> then\n        hide\n    end\nend\n\nwhen I receive [wywal kule xddddd v]\nset size to (100) %\nswitch costume to (kostium1 v)\nset [grawitacja kuli v] to [-0]\ngo to x: (75) y: (171)\nshow\nrepeat until <touching (platforma v)?>\n    change [grawitacja kuli v] by (-0.5)\n    change x by (-8)\n    change y by (grawitacja kuli)\nend\nhide\nswitch costume to (kostium1 v)\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <touching (gracz v)?> then\n        broadcast (resetuj v)\n    end\nend\n\nwhen I receive [resetuj v]\nhide\nchange y by (-100)\n\n\n\nswitch costume to (kostium1 v)\n\n@armata2\n\nwhen I receive [scrolling czas start v]\nforever\n    hide\n    stop [other scripts in sprite v]\nend\n\nwhen flag clicked\n\nwhen flag clicked\n\nbroadcast (wywal kule xddddd v)\n\nwhen flag clicked\nforever\n    if <not <(poziom) = [10]>> then\n        hide\n    end\nend\n\nwhen I receive [resetuj v]\nforever\n    if <(poziom) = [10]> then\n        go to [back v] layer\n        show\n        wait (1) seconds\n        start sound [Canoon+4 v]\n        broadcast (wywal kule 2 v) and wait\n    else\n        hide\n    end\nend\n\n@kula2\n\nwhen I receive [scrolling czas start v]\nforever\n    hide\n    stop [other scripts in sprite v]\nend\n\nwhen flag clicked\nforever\n    if <not <(poziom) = [10]>> then\n        hide\n    end\nend\n\nwhen I receive [wywal kule 2 v]\nswitch costume to (kostium1 v)\nset size to (100) %\nset [grawitacja kuli 2 v] to [-0]\ngo to x: (-3) y: (21)\nshow\nrepeat until <touching (platforma v)?>\n    change [grawitacja kuli 2 v] by (-0.5)\n    change x by (-10)\n    change y by (grawitacja kuli 2)\nend\nhide\nswitch costume to (kostium1 v)\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <touching (gracz v)?> then\n        broadcast (resetuj v)\n    end\nend\n\nwhen I receive [resetuj v]\nhide\nchange y by (-100)\n\n\n\ngo to x: (44) y: (13)\n\ngo to x: (44) y: (13)\n\nbroadcast (Miecz v)\n\n@Wróg na poziom 4\n\nwhen I receive [scrolling czas start v]\nforever\n    hide\n    stop [other scripts in sprite v]\nend\n\nwhen flag clicked\nforever\n    if <touching (gracz v)?> then\n        start sound [Crunch v]\n        broadcast (resetuj v)\n    end\nend\n\nwhen flag clicked\nclear graphic effects\nset size to (30) %\nhide\ngo to x: (100) y: (-58)\nforever\n    if <(poziom) = [11]> then\n        show\n        go to x: (100) y: (-58)\n        forever\n            point in direction ((-1) * (Kierunek rycerza xdddd))\n            move (4) steps\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n\nmove (3) steps\n\nrepeat (20)\n\nwhen I receive [resetuj v]\ngo to x: (180) y: (-58)\n\nhide\n\nwhen flag clicked\nforever\n    if <<(czy atakuje) = [tak]> and <touching (miecz v)?>> then\n        stop [other scripts in sprite v]\n        repeat (10)\n            change [brightness v] effect by (10)\n        end\n        repeat (3)\n            change size by (-10)\n        end\n        hide\n    end\nend\n\nchange x by (5)\n\nforever\n    point in direction ((-1) * (Kierunek rycerza xdddd))\n    move (4) steps\nend\n\n@Wróg na poziom 5\n\nwhen I receive [scrolling czas start v]\nforever\n    hide\n    stop [other scripts in sprite v]\nend\n\nwhen flag clicked\nforever\n    if <touching (gracz v)?> then\n        start sound [Crunch v]\n        broadcast (resetuj v)\n    end\nend\n\nwhen flag clicked\nset [grawitacja kuli v] to [0]\nset [grawitacja kuli 2 v] to [0]\nclear graphic effects\nset size to (30) %\nhide\ngo to x: (240) y: (-58)\nforever\n    if <(poziom) = [11]> then\n        show\n        go to x: (240) y: (-58)\n        forever\n            point in direction ((-1) * (Kierunek rycerza xdddd))\n            move (4) steps\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n\nmove (3) steps\n\nrepeat (20)\n\nwhen I receive [resetuj v]\ngo to x: (240) y: (-58)\n\nshow\nwait (0.1) seconds\nrepeat until <not <(poziom) = [3]>>\n    set rotation style [left-right v]\n    point towards (gracz v)\nend\n\nhide\n\nwhen flag clicked\nforever\n    if <<(czy atakuje) = [tak]> and <touching (miecz v)?>> then\n        stop [other scripts in sprite v]\n        repeat (10)\n            change [brightness v] effect by (10)\n        end\n        repeat (3)\n            change size by (-10)\n        end\n        hide\n    end\nend\n\nchange x by (5)\n\nforever\n    point in direction ((-1) * (Kierunek rycerza xdddd))\n    move (4) steps\nend\n\n@Gracz Scrolling\n\nwhen [left arrow v] key pressed\npoint in direction (-90)\n\nwhen [right arrow v] key pressed\npoint in direction (90)\n\nwhen I receive [scrolling czas start v]\nshow\nset [wysokość skoku scrolling v] to [-7]\nset [czy może skoczyć scrolling v] to [-7]\nforever\n    to od spadania\nend\n\nwhen I receive [scrolling czas start v]\nswitch backdrop to (tło3 v)\nforever\n    if <<<key (up arrow v) pressed?> or <key (space v) pressed?>> and <(czy może skoczyć scrolling) = [tak]>> then\n        start sound [Jump sound effect v]\n        set [czy może skoczyć scrolling v] to [nie]\n        set [wysokość skoku scrolling v] to [15]\n        repeat until <(czy może skoczyć scrolling) = [tak]>\n            change [wysokość skoku scrolling v] by (-1)\n        end\n    end\nend\n\nwhen flag clicked\ngo to [front v] layer\nhide\n\nset [poziom v] to [12]\n\nset [poziom v] to [12]\n\ngo to x: (0) y: (0)\n\ndefine to od spadania\nif <not <touching (platforma scrolling v)?>> then\n    change y by (wysokość skoku scrolling)\nend\nif <<touching (platforma scrolling v)?> and <(Wysokośc skoku) < [0]>> then\n    if <touching color (#fcab00)?> then\n        start sound [Crunch v]\n        broadcast (resetuj v)\n    end\n    set [czy może skoczyć scrolling v] to [tak]\n    set [wysokość skoku scrolling v] to [-13]\n    repeat until <not <touching (platforma scrolling v)?>>\n        change y by (1)\n    end\nelse\n    if <<touching (platforma scrolling v)?> and <(wysokość skoku scrolling) > [0]>> then\n        change y by (-10)\n        repeat ([abs v] of ((wysokość skoku scrolling) * (2)) )\n            change [wysokość skoku scrolling v] by (-1)\n        end\n    end\nend\n\nwhen flag clicked\n\nwhen I receive [resetuj v]\ngo to x: (0) y: (10)\n\nwhen flag clicked\nforever\n    if <not <touching (platforma scrolling v)?>> then\n        wait (0.2) seconds\n        set [czy może skoczyć scrolling v] to [nie]\n    end\nend\n\n@Platforma Scrolling\n\npoint in direction (90)\n\npoint in direction (-90)\n\nwhen flag clicked\ngo to x: (700) y: (-30)\n\nset [czy klony się mogą ruszyć v] to [tak]\n\nif <(Czy klony się mogą ruszyć) = [tak]> then\n\nwhen I receive [scrolling czas start v]\nset [poziom v] to [1]\nshow\nforever\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change x by (-5)\n        if <touching (gracz scrolling v)?> then\n            set [czy klony się mogą ruszyć v] to [nie]\n            change x by (5)\n            set [czy klony się mogą ruszyć v] to [tak]\n        end\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change x by (5)\n        if <touching (gracz scrolling v)?> then\n            set [czy klony się mogą ruszyć v] to [nie]\n            change x by (-5)\n            set [czy klony się mogą ruszyć v] to [tak]\n        end\n    end\nend\n\nwhen flag clicked\nhide\n\nshow\n\nwhen I receive [resetuj v]\ngo to x: (700) y: (-30)\n\nwhen flag clicked\nforever\n    switch costume to (mapa v)\nend\n\n@miniaturka\n\nwhen flag clicked\nhide\n\nshow\ngo to [front v] layer\n\n