scooter#//#hulajnoga Platformer/:)
@Stage\n\nwhen flag clicked\nset volume to (50) %\nforever\n    play sound [Xaf - Treenan \(320  kbps\) v] until done\nend\n\nchange volume by (-10)\n\n@Player\n\nwhen flag clicked\nset [hajs v] to [0]\nset [level v] to [1]\nbroadcast (start v)\n\nwhen I receive [start v]\nGO: [0] : [-207]\n\nwhen flag clicked\npoint in direction (90)\nforever\n    if <touching (danger's v)?> then\n        stop [other scripts in sprite v]\n        point in direction (90)\n        repeat (3)\n            change [ghost v] effect by (40)\n            wait (00.1) seconds\n        end\n        broadcast (start v)\n        go to x: (-209) y: (18)\n    end\nend\n\nset [☁ time v] to [0]\n\nwhen I receive [start v]\nforever\n    if <<mouse down?> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        broadcast (trik v)\n        if <(costume [number v]) = [1]> then\n            repeat (20)\n                turn right (18) degrees\n            end\n        end\n        if <(costume [number v]) = [2]> then\n            repeat (20)\n                turn left (18) degrees\n            end\n        end\n    end\n    if <[50] < (y position)> then\n        if <<mouse down?> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n            broadcast (super trik v)\n        end\n    end\nend\n\nwhen flag clicked\nset [danger's v] to [1]\n\ndefine GO: (y) : (x)\ngo to x: (x) y: (y)\nshow\nset [ghost v] effect to (0)\nset [danger's v] to [0]\nset [x v] to [0]\nset [y v] to [0]\nforever\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [x v] by (1)\n        switch costume to (kostium2 v)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [x v] by (-1)\n        switch costume to (kostium3 v)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (platforms v)?> then\n        change y by (1)\n        if <touching (platforms v)?> then\n            change y by (1)\n            if <touching (platforms v)?> then\n                change y by (1)\n                if <touching (platforms v)?> then\n                    change y by (1)\n                end\n                if <touching (platforms v)?> then\n                    change x by ((x) * (-1))\n                    change y by (-4)\n                    if <<key (w v) pressed?> or <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    change [y v] by (-1)\n    change y by (y)\n    if <touching (platforms v)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <touching (platforms v)?> then\n        if <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n            set [y v] to [15]\n            switch costume to (kostium4 v)\n        end\n    end\n    change y by (1)\n    if <touching (flag v)?> then\n        broadcast (next v)\n        go to x: (-207) y: (-55)\n    end\nend\n\n@platforms\n\nwhen flag clicked\nswitch costume to (1 v)\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [start v]\ngo to x: (36) y: (28)\nshow\n\nset [level v] to [8]\n\nchange [level v] by (1)\n\nwhen flag clicked\nset [☁ time v] to [0]\n\nwhen flag clicked\nforever\n    wait (1) seconds\n    change [☁ time v] by (1)\n    if <(Level) = [10]> then\n        stop [this script v]\n    end\nend\n\n@danger's\n\nwhen flag clicked\nset [danger's v] to [1]\nforever\n    switch costume to (Level)\n    if <(Level) = [10]> then\n        hide\n        stop [this script v]\n    end\n    if <(Level) = [8]> then\n        go to x: (67) y: (-11)\n        wait (0.05) seconds\n        switch costume to (pick random (8) to (11))\n        wait (1) seconds\n    end\nend\n\nset [danger's v] to [0]\n\nwhen I receive [start v]\nshow\n\nwhen flag clicked\ngo to x: (20) y: (-23)\n\nwhen flag clicked\nforever\n    if <(Level) = [9]> then\n        stop [other scripts in sprite v]\n        go to x: (12) y: (-65)\n        wait (0.05) seconds\n        switch costume to (pick random (12) to (15))\n        wait (00.7) seconds\n    end\n    if <(Level) = [10]> then\n        hide\n    end\nend\n\n@clouds\n\nwhen I receive [start2 v]\nhide\nforever\n    change [brightness v] effect by (-10)\n    wait (3) seconds\n    set [brightness v] effect to (0)\n    create clone of (_myself_ v)\n    set [brightness v] effect to (30)\nend\n\nwhen I start as a clone\nset [ghost v] effect to (30)\ngo to [back v] layer\ngo to x: (200) y: (pick random (50) to (180))\nshow\nrepeat until <(x position) < [-200]>\n    change x by (-2)\n    if <<([costume name v] of [platforms v]) < [11]> and <([costume name v] of [platforms v]) > [6]>> then\n        hide\n        delete this clone\n    end\nend\nrepeat (10)\n    hide\n    delete this clone\nend\nif <(Level) = [8]> then\n\nwhen flag clicked\nbroadcast (start2 v)\n\n@FLAg\n\nwhen flag clicked\nswitch backdrop to (tło1 v)\nshow\ngo to x: (177) y: (57)\nforever\n    next costume\n    wait (000.1) seconds\nend\n\nwhen I receive [next v]\ngo to x: (179) y: (50)\nchange [level v] by (1)\nchange [danger's v] by (1)\nforever\n    if <(Level) = [3]> then\n        go to x: (173) y: (58)\n    end\n    if <(Level) = [4]> then\n        go to x: (173) y: (58)\n    end\n    if <(Level) = [5]> then\n        go to x: (173) y: (58)\n    end\n    if <(Level) = [6]> then\n        go to x: (173) y: (58)\n    end\n    if <(Level) = [7]> then\n        go to x: (173) y: (58)\n    end\n    if <(Level) = [8]> then\n        go to x: (94) y: (61)\n    end\n    if <(Level) = [9]> then\n        go to x: (173) y: (58)\n    end\n    if <(Level) = [10]> then\n        hide\n        switch backdrop to (tło2 v)\n    end\nend\n\nset [danger's v] to [1]\n\n@blank\n\nwhen flag clicked\nshow\ngo to [front v] layer\nforever\n    set [ghost v] effect to (100)\nend\n\nhide\n\n@Duszek1\n\nwhen flag clicked\nset [☁ złoto v] to [0]\nshow\ngo to x: (-44) y: (-16)\ncreate clone of (_myself_ v)\nforever\n    if <touching (player v)?> then\n        hide\n        change [☁ złoto v] by (pick random (1) to (3))\n        start sound [pop v]\n    end\n    if <(Level) = [8]> then\n        hide\n    end\nend\n\nwhen I start as a clone\nshow\ngo to x: (95) y: (-12)\nforever\n    if <touching (player v)?> then\n        hide\n        change [☁ złoto v] by (pick random (1) to (3))\n        start sound [pop v]\n    end\n    if <(Level) = [4]> then\n        go to x: (-2) y: (27)\n    end\n    if <(Level) = [7]> then\n        go to x: (10) y: (27)\n    end\n    if <(Level) = [6]> then\n        go to x: (2) y: (110)\n    end\n    if <(Level) = [8]> then\n        hide\n    end\nend\n\nset [hajs v] to [0]\n\nwhen I receive [next v]\nshow\ngo to x: (194) y: (10)\n\n@Duszek2\n\nwhen flag clicked\ngo to x: (223) y: (158)\n\nwhen I receive [kasa v]\nrepeat (5)\n    change size by (10)\nend\nwait (0.05) seconds\nrepeat (5)\n    change size by (-10)\nend\nset size to (180) %\n\n@ptaki\n\nwhen flag clicked\ngo to x: (196) y: (162)\nforever\n    glide (3) secs to x: (pick random (100) to (150)) y: (pick random (100) to (150))\n    repeat (10)\n        change size by (-10)\n        change [ghost v] effect by (10)\n    end\n    set [ghost v] effect to (0)\n    set size to (100) %\n    go to x: (196) y: (162)\nend\n\nstart sound [salamisound-6997514-two-falcons-are-courtshiping v]\n\nwhen flag clicked\nforever\n    wait (0.1) seconds\n    next costume\nend\n\nwhen I start as a clone\nforever\n    wait (1) seconds\n    glide (3) secs to x: (-56) y: (82)\n    repeat (10)\n        change size by (-10)\n        change [ghost v] effect by (10)\n    end\n    set [ghost v] effect to (0)\n    set size to (100) %\n    go to x: (-56) y: (82)\n    delete this clone\nend\n\nwhen flag clicked\nforever\n    wait (10) seconds\n    create clone of (_myself_ v)\nend\n\ndelete this clone\n\nwhen I start as a clone\nforever\n    wait (0.1) seconds\n    next costume\nend\n\n@Duszek3\n\n@dekoracje\n\nwhen flag clicked\nshow\nforever\n    if <(Level) = [1]> then\n        go to x: (-60) y: (17)\n        show\n        switch costume to (kostium2 v)\n    end\n    if <(Level) = [2]> then\n        go to x: (100) y: (12)\n        switch costume to (kostium2 v)\n    end\n    if <(Level) = [3]> then\n        switch costume to (kostium2 v)\n        go to x: (129) y: (212)\n    end\n    if <(Level) = [4]> then\n        go to x: (83) y: (11)\n        switch costume to (kostium1 v)\n        show\n    end\n    if <(Level) = [5]> then\n        switch costume to (kostium2 v)\n        hide\n    end\nend\n\nhide\n\n@Duszek4\n\nwhen flag clicked\nset [ghost v] effect to (0)\nset size to (0) %\n\nwhen I receive [trik v]\nshow\nswitch costume to ((pick random (1) to (2)) * (1))\nstart sound [:0 v]\nrepeat (10)\n    change [ghost v] effect by (-10)\n    change size by (10)\nend\nwait (1) seconds\nrepeat (10)\n    change size by (-10)\n    change [ghost v] effect by (10)\nend\nset size to (0) %\nwait (2) seconds\n\nwhen I receive [super trik v]\n\nstart sound [pop v]\n\nwhen flag clicked\nforever\n    if <(Level) = [10]> then\n        hide\n        stop [other scripts in sprite v]\n    end\nend\n\n@Duszek5\n\nwhen I receive [trik v]\ngo to x: (208) y: (81)\nshow\nglide (0.5) secs to (duszek2 v)\nhide\nbroadcast (kasa v)\n\nwhen flag clicked\nhide\n\ndefine los (los)\nchange [☁ złoto v] by (pick random (pick random (pick random (pick random (pick random (pick random (LOS. %) to ()) to ()) to ()) to ()) to ()) to ())\n\nwhen I receive [trik v]\ngo to x: (208) y: (81)\nshow\nglide (0.5) secs to (duszek2 v)\nhide\nbroadcast (kasa v)\ngo to x: (208) y: (81)\nlos (los)\n\ndefine losuj sz. (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)\nlos (LOS. %)\nset [los. % v] to (pick random (1) to (LOS. %))\nset [los. % v] to (pick random (2) to (LOS. %))\nset [los. % v] to (pick random (3) to (LOS. %))\nset [los. % v] to (pick random (4) to (LOS. %))\nset [los. % v] to (pick random (5) to (LOS. %))\nset [los. % v] to (pick random (6) to (LOS. %))\nset [los. % v] to (pick random (7) to (LOS. %))\nset [los. % v] to (pick random (8) to (LOS. %))\nset [los. % v] to (pick random (9) to (LOS. %))\nset [los. % v] to (pick random (10) to (LOS. %))\n\nwhen I receive [trik v]\ngo to x: (208) y: (81)\nshow\nglide (0.5) secs to (duszek2 v)\nhide\nbroadcast (kasa v)\nlosuj sz. (length of (1)) (length of (2)) (length of (3)) (length of (4)) (length of (5)) (length of (6)) (length of (7)) (length of (8)) (length of (9)) (length of (10))\n\ndefine procent () ()\nlos < () contains < (LOS. %) contains (los)?>?>\nlos < () contains < (LOS. %) contains (los)?>?>\nlos < () contains < (LOS. %) contains (los)?>?>\nlos < () contains < (LOS. %) contains (los)?>?>\nlos < () contains < (LOS. %) contains (los)?>?>\nlos < () contains < (LOS. %) contains (los)?>?>\nlos < () contains < (LOS. %) contains (los)?>?>\nlos < () contains < (LOS. %) contains (los)?>?>\nlos < () contains < (LOS. %) contains (los)?>?>\nlos < () contains < (LOS. %) contains (los)?>?>\nustaw: (LOS. %) na: [100]\n\ndefine ustaw: () na: ()\nustaw: (LOS. %) na: (pick random () to ())\nset [los. % v] to ()\n\nwhen I receive [trik v]\ngo to x: (208) y: (81)\nshow\nglide (0.5) secs to (duszek2 v)\nhide\nbroadcast (kasa v)\nprocent () ()\nsay () for (los) seconds\n\nwhen flag clicked\nforever\n    if <(Level) = [10]> then\n        hide\n        stop [other scripts in sprite v]\n    end\nend\n\n
poruszanie się strzałki i wasd kiedy W lub strzałka w górę i klikniesz mysz robisz triki kiedy chcesz