lost - platformer
@Stage\n\nwhen I receive [start! v]\nif <(music) = [7]> then\n    set [music v] to [1]\nend\nstop all sounds\nswitch backdrop to (backdrop1 v)\nhide variable [mouse v]\nset volume to (100) %\n\nwhen [m v] key pressed\nset [mouse v] to (join ((Scroll x) + (mouse x)) (join [,] ((Scroll y) + (mouse y))))\nshow variable [mouse v]\n\nhide variable [mouse v]\n\nwhen I receive [plymusic v]\nset volume to (100) %\nswitch backdrop to (backdrop2 v)\nset [music v] to [7]\nforever\n    play sound (music) until done\nend\n\n@player\n\nwhen flag clicked\nhide\n\nbroadcast (start! v)\n\nwhen I receive [play v]\nstop [other scripts in sprite v]\nforever\n    switch costume to (1 v)\n    if <<key (a v) pressed?> or <<key (left arrow v) pressed?> or <<mouse down?> and <(x position) > (mouse x)>>>> then\n        change [xv v] by (-1.2)\n        set [d v] to [-90]\n    else\n        if <<key (d v) pressed?> or <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>>> then\n            change [xv v] by (1.2)\n            set [d v] to [90]\n        end\n    end\n    if <touching (ice v)?> then\n        set [xv v] to ((xv) * (.99))\n    else\n        set [xv v] to ((xv) * (.85))\n    end\n    change x by (xv)\n    if <touching (ground v)?> then\n        change y by (1)\n        if <touching (ground v)?> then\n            change y by (1)\n            if <touching (ground v)?> then\n                change y by (1)\n                if <touching (ground v)?> then\n                    change y by (1)\n                    if <touching (ground v)?> then\n                        change y by (1)\n                        if <touching (ground v)?> then\n                            change x by ((xv) * (-1))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n                                set [yv v] to [10]\n                                if <(xv) > [0]> then\n                                    set [xv v] to [-5]\n                                else\n                                    set [xv v] to [5]\n                                end\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    if <not <touching (water v)?>> then\n        if <<<key (w v) pressed?> or <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> or <(yv) < [-5]>> then\n            change [yv v] by (-1)\n        else\n            change [yv v] by (-2)\n        end\n    end\n    change y by (yv)\n    if <touching (ground v)?> then\n        change y by ((yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <<not <touching (water v)?>> and <<<<key (w v) pressed?> or <key (up arrow v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> and <touching (ground v)?>>> then\n        change [yv v] by (15)\n    end\n    change y by (1)\n    broadcast (tick v)\n    if <<(y position) < [-179]> or <touching (noice! v)?>> then\n        hide\n        set [i v] to [0]\n        broadcast (dead v)\n        start sound [Crunch v]\n        wait until <(i) = [3]>\n        reset\n        show\n    end\n    if <touching (trampoline v)?> then\n        set [yv v] to [24]\n    end\n    if <touching (water v)?> then\n        change [yv v] by (-0.2)\n        if <<<key (w v) pressed?> or <key (up arrow v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            change [yv v] by (1)\n        end\n    end\n    if <not <((Scroll y) + ((y position) / (4))) < [17]>> then\n        change [scroll y v] by (round ((y position) / (4)))\n        change y by (((0) - (y position)) / (4))\n    end\n    if <<not <((Scroll x) + ((x position) / (4))) > [13720]>> and <not <((Scroll x) + ((x position) / (4))) < [-8.5]>>> then\n        change [scroll x v] by (round ((x position) / (4)))\n        change x by (((0) - (x position)) / (4))\n        if <((Scroll x) + ((x position) / (4))) > [13715]> then\n            switch costume to ((Skin) + (1))\n            glide (0.1) secs to x: (0) y: (-69)\n            set [d v] to [90]\n            broadcast (tick v)\n            broadcast (boss fight v)\n            stop [this script v]\n        end\n    end\n    broadcast (tick v)\n    switch costume to ((Skin) + (1))\n    go to [back v] layer\n    go [forward v] (3) layers\nend\n\ndefine reset\nswitch costume to ((Skin) + (1))\nbroadcast (reset v)\nshow\npoint in direction (90)\ngo to x: (-178) y: (-70)\nset [xv v] to [0]\nset [yv v] to [0]\nset [scroll x v] to (start point x)\nset [scroll y v] to (start point y)\n\nset [skin v] to [3]\n\ndefine say (say what?) each (time) (seconds) (instrument) (for _beats) (play note)\nset instrument to ((instrument) v)\nbroadcast (say what?)\nset [say! v] to []\nset [idk v] to [0]\nrepeat until <(IDK) = (length of (say what?))>\n    start sound [Голос v]\n    play note ((for _beats)) for (play note) beats\n    change [idk v] by (1)\n    set [say! v] to (join (say!) (letter (IDK) of (say what?)))\n    say (say!)\n    if <(letter (IDK) of (say what?)) = [.]> then\n        wait (1) seconds\n    else\n        if <(letter (IDK) of (say what?)) = [,]> then\n            wait (0.5) seconds\n        else\n            wait (time) seconds\n        end\n    end\nend\nwait (seconds) seconds\nsay []\n\nwhen I receive [1 v]\nsay [yes] each [0.01] [1] [] [] []\n\nwhen I receive [2 v]\nsay [OK,I will fight with you!] each [0.01] [1] [] [] []\n\nwhen I receive [fight! v]\nforever\n    switch costume to (1 v)\n    if <<key (a v) pressed?> or <<key (left arrow v) pressed?> or <<mouse down?> and <(x position) > (mouse x)>>>> then\n        change [xv v] by (-1.2)\n        set [d v] to [-90]\n    else\n        if <<key (d v) pressed?> or <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>>> then\n            change [xv v] by (1.2)\n            set [d v] to [90]\n        end\n    end\n    if <touching (ice v)?> then\n        set [xv v] to ((xv) * (.99))\n    else\n        set [xv v] to ((xv) * (.85))\n    end\n    change x by (xv)\n    if <touching (ground v)?> then\n        change y by (1)\n        if <touching (ground v)?> then\n            change y by (1)\n            if <touching (ground v)?> then\n                change y by (1)\n                if <touching (ground v)?> then\n                    change y by (1)\n                    if <touching (ground v)?> then\n                        change y by (1)\n                        if <touching (ground v)?> then\n                            change x by ((xv) * (-1))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n                                set [yv v] to [10]\n                                if <(xv) > [0]> then\n                                    set [xv v] to [-5]\n                                else\n                                    set [xv v] to [5]\n                                end\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    if <not <touching (water v)?>> then\n        if <<<key (w v) pressed?> or <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> or <(yv) < [-5]>> then\n            change [yv v] by (-1)\n        else\n            change [yv v] by (-2)\n        end\n    end\n    change y by (yv)\n    if <touching (ground v)?> then\n        change y by ((yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <<not <touching (water v)?>> and <<<<key (w v) pressed?> or <key (up arrow v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> and <touching (ground v)?>>> then\n        change [yv v] by (15)\n    end\n    change y by (1)\n    broadcast (tick v)\n    if <<(y position) < [-179]> or <touching (noice! v)?>> then\n        hide\n        set [i v] to [0]\n        start sound [Crunch v]\n        wait until <(i) = [3]>\n        show\n        broadcast (boss fight v)\n    end\n    broadcast (tick v)\n    switch costume to ((Skin) + (1))\n    go to [back v] layer\n    go [forward v] (8) layers\nend\n\ngo to x: (0) y: (-60)\n\nwhen I receive [boss died! v]\nsay [finally I won him!] each [0.01] [1] [] [] []\nstop [other scripts in sprite v]\nstop all sounds\nset [music v] to [9]\nforever\n    switch costume to (1 v)\n    if <(mouse) = [0]> then\n        if <<key (a v) pressed?> or <<key (left arrow v) pressed?> or <<mouse down?> and <(x position) > (mouse x)>>>> then\n            change [xv v] by (-1.2)\n            set [d v] to [-90]\n        else\n            if <<key (d v) pressed?> or <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>>> then\n                change [xv v] by (1.2)\n                set [d v] to [90]\n            end\n        end\n    end\n    if <touching (ice v)?> then\n        set [xv v] to ((xv) * (.99))\n    else\n        set [xv v] to ((xv) * (.85))\n    end\n    change x by (xv)\n    if <touching (ground v)?> then\n        change y by (1)\n        if <touching (ground v)?> then\n            change y by (1)\n            if <touching (ground v)?> then\n                change y by (1)\n                if <touching (ground v)?> then\n                    change y by (1)\n                    if <touching (ground v)?> then\n                        change y by (1)\n                        if <touching (ground v)?> then\n                            change x by ((xv) * (-1))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n                                set [yv v] to [10]\n                                if <(xv) > [0]> then\n                                    set [xv v] to [-5]\n                                else\n                                    set [xv v] to [5]\n                                end\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    if <not <touching (water v)?>> then\n        if <<<key (w v) pressed?> or <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> or <(yv) < [-5]>> then\n            change [yv v] by (-1)\n        else\n            change [yv v] by (-2)\n        end\n    end\n    change y by (yv)\n    if <<touching (ground v)?> or <touching (head v)?>> then\n        change y by ((yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <<not <touching (water v)?>> and <<<<key (w v) pressed?> or <key (up arrow v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> and <<touching (head v)?> or <touching (ground v)?>>>> then\n        change [yv v] by (15)\n    end\n    change y by (1)\n    broadcast (tick v)\n    if <<(y position) < [-179]> or <touching (noice! v)?>> then\n        hide\n        set [i v] to [0]\n        broadcast (dead v)\n        start sound [Crunch v]\n        wait until <(i) = [3]>\n        reset\n        show\n    end\n    if <touching (trampoline v)?> then\n        set [yv v] to [24]\n    end\n    if <touching (water v)?> then\n        change [yv v] by (-0.2)\n        if <<<key (w v) pressed?> or <key (up arrow v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            change [yv v] by (1)\n        end\n    end\n    if <not <((Scroll y) + ((y position) / (4))) < [17]>> then\n        change [scroll y v] by (round ((y position) / (4)))\n        change y by (((0) - (y position)) / (4))\n    end\n    if <<not <((Scroll x) + ((x position) / (4))) > [14325]>> and <not <((Scroll x) + ((x position) / (4))) < [-8.5]>>> then\n        change [scroll x v] by (round ((x position) / (4)))\n        change x by (((0) - (x position)) / (4))\n    end\n    broadcast (tick v)\n    switch costume to ((Skin) + (1))\n    go to [back v] layer\n    go [forward v] (3) layers\nend\n\nwhen I receive [start fighting v]\ngo to [front v] layer\nswitch costume to ((Skin) + (1))\ngo to x: (0) y: (-69)\nset [d v] to [90]\nbroadcast (tick v)\nstop [other scripts in sprite v]\nstop [this script v]\n\nwhen flag clicked\nhide\n\n\n\nchange [yv v] by (-5)\n\nwhen I receive [start! v]\nshow\nset [scroll x v] to [-7]\nforever\n    broadcast (tick v)\nend\n\nwhen I receive [start! v]\nshow\nset [start point x v] to [-7]\nset [start point y v] to [-5]\nreset\nchange [loaded v] by (1)\nforever\n    broadcast (tick v)\nend\n\n@Ground\n\nwhen flag clicked\n\nwhen I receive [tick v]\ngo to ((x) - (Scroll x)) ((y) - (Scroll y))\n\ndefine go to (x) (y)\ngo to x: (x) y: (y)\nif <<(round (x)) = (round (x position))> and <(round (y)) = (round (y position))>> then\n    show\nelse\n    hide\nend\n\ndefine spawn at (x) (y) (change or spawn)\nchange [loaded v] by (1)\nif <(change or spawn) = [0]> then\n    change [x v] by (x)\n    change [y v] by (y)\nelse\n    set [x v] to (x)\n    set [y v] to (y)\nend\ncreate clone of (_myself_ v)\nnext costume\ngo [backward v] (2) layers\n\nset [x v] to [999999]\n\ndelete this clone\n\nwhen flag clicked\nhide\ndelete this clone\n\nwhen I receive [start! v]\nshow\nset [x v] to [0]\nset [y v] to [0]\ngo to [front v] layer\nswitch costume to (1 v)\nset [loaded v] to [0]\ngo to x: (0) y: (0)\nspawn at [0] [0] [0]\nspawn at [480] [0] [0]\nspawn at [480] [0] [0]\nspawn at [480] [0] [0]\nspawn at [480] [0] [0]\nspawn at [480] [0] [0]\nspawn at [480] [0] [0]\nspawn at [480] [0] [0]\nspawn at [480] [0] [0]\nspawn at [480] [0] [0]\nspawn at [300] [180] [0]\nspawn at [200] [-180] [0]\nspawn at [680] [0] [0]\nspawn at [900] [0] [0]\nspawn at [480] [0] [0]\nspawn at [480] [300] [0]\nspawn at [480] [0] [0]\nspawn at [100] [-300] [0]\nspawn at [480] [0] [0]\nspawn at [480] [0] [0]\nspawn at [480] [0] [0]\nspawn at [480] [0] [0]\nspawn at [480] [0] [0]\nspawn at [480] [0] [0]\nspawn at [480] [0] [0]\nspawn at [480] [0] [0]\nspawn at [480] [0] [0]\nspawn at [480] [0] [0]\nspawn at [600] [0] [0]\nspawn at [960] [0] [0]\nset [x v] to [999999]\n\n@pieces\n\nwhen flag clicked\nhide\n\nwhen I receive [dead v]\ngo to (player v)\nclone [1]\n\ndefine clone (times)\nrepeat (times)\n    set size to (130) %\n    switch costume to (Skin)\n    create clone of (_myself_ v)\n    switch costume to (6 v)\n    create clone of (_myself_ v)\n    switch costume to (7 v)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\nset [yv v] to (pick random (10) to (15))\nset [xv v] to (pick random (5) to (-5))\nforever\n    go to [front v] layer\n    change x by (XV)\n    change y by (YV)\n    turn right (((XV) * ([abs v] of (YV) )) / (2)) degrees\n    change [yv v] by (-1)\n    if <<([abs v] of (x position) ) > [239]> or <([abs v] of (y position) ) > [179]>> then\n        change [i v] by (1)\n        delete this clone\n    end\nend\n\nwhen flag clicked\nhide\n\n@eyes\n\nwhen I receive [start! v]\nswitch costume to (costume1 v)\nshow\nforever\n    wait (pick random (1) to (5)) seconds\n    blink\nend\n\nwhen I receive [dead v]\nhide\n\nwhen I receive [reset v]\nshow\n\nwhen I receive [tick v]\ngo to (player v)\npoint in direction (d)\n\ndefine blink\nswitch costume to (costume1 v)\nrepeat (8)\n    next costume\nend\nrepeat (8)\n    switch costume to ((costume [number v]) - (1))\nend\n\nwhen I receive [boss fight v]\nforever\n    go to (player v)\n    point in direction (d)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [boss died! v]\nstop [other scripts in sprite v]\nswitch costume to (costume1 v)\nshow\ngo to [front v] layer\nforever\n    wait (pick random (1) to (5)) seconds\n    blink\nend\n\n@player shadow\n\nwhen flag clicked\n\nwhen I receive [tick v]\ngo to (player v)\ngo to [back v] layer\n\nwhen I receive [start! v]\nshow\n\nwhen I receive [reset v]\nshow\n\nwhen I receive [dead v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [start! v]\npoint in direction (135)\ngo to [front v] layer\nhide\nset [ghost v] effect to (70)\n\n@Clouds\n\nwhen I start as a clone\nshow\nset [random side v] to (pick random (1) to (2))\nswitch costume to (pick random (1) to (3))\nset size to (80) %\nif <(random side) = [1]> then\n    go to x: (400) y: (pick random (60) to (160))\nelse\n    go to x: (-400) y: (pick random (60) to (160))\nend\nif <(random side) = [1]> then\n    repeat until <(x position) < [-200]>\n        change x by (pick random (-1) to (-4))\n    end\nelse\n    repeat until <(x position) > [200]>\n        change x by (pick random (1) to (4))\n    end\nend\ndelete this clone\n\nwhen I receive [start! v]\nhide\nwait (0.01) seconds\nforever\n    wait (pick random (0.8) to (4.0)) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I receive [tick v]\ngo to [back v] layer\n\nwhen flag clicked\nhide\n\n@shadow of the ground\n\nspawn at [480] [0] []\nspawn at [480] [0] []\nspawn at [480] [0] []\nspawn at [480] [0] []\n\nwhen I receive [tick v]\ngo to ((x) - (Scroll x)) ((y) - (Scroll y))\n\ndefine go to (x) (y)\ngo to x: (x) y: (y)\nif <<(round (x)) = (round (x position))> and <(round (y)) = (round (y position))>> then\n    set [ghost v] effect to (70)\n    show\n    go to [back v] layer\n    go [forward v] (4) layers\nelse\n    hide\nend\n\ndefine spawn at (x) (y) (change or spawn?)\nchange [loaded v] by (1)\nif <(change or spawn?) = [0]> then\n    change [x v] by (x)\n    change [y v] by (y)\nelse\n    set [x v] to (x)\n    set [y v] to (y)\nend\ncreate clone of (_myself_ v)\nnext costume\n\nwhen flag clicked\nhide\n\nwhen I receive [start! v]\nshow\nset [x v] to [0]\nset [y v] to [0]\nswitch costume to (1 v)\ngo to x: (0) y: (0)\nspawn at ((480) * (3)) [0] [0]\nspawn at (((480) * (21)) - ((480) * (3))) [0] [0]\n\ndelete this clone\n\n@decorations\n\nwhen I receive [tick v]\ngo to ((x) - (Scroll x)) ((y) - (Scroll y))\n\ndefine go to (x) (y)\ngo to x: (x) y: (y)\nif <<(round (x)) = (round (x position))> and <(round (y)) = (round (y position))>> then\n    show\n    go to [back v] layer\n    go [forward v] (2) layers\nelse\n    hide\nend\n\ndefine spawn at (x) (y) (change or set?)\nchange [loaded v] by (1)\nif <(change or set?) = [0]> then\n    change [x v] by (x)\n    change [y v] by (y)\nelse\n    set [x v] to (x)\n    set [y v] to (y)\nend\ncreate clone of (_myself_ v)\nnext costume\n\ndelete this clone\n\nset [x v] to [999999]\n\nwhen flag clicked\nhide\n\nwhen I receive [start! v]\nshow\nset [x v] to [0]\nset [y v] to [0]\nswitch costume to (1 v)\ngo to x: (0) y: (0)\ngo to [back v] layer\nspawn at [0] [0] [0]\nspawn at [480] [0] [0]\nspawn at [480] [0] [0]\nspawn at [480] [0] [0]\nspawn at [480] [0] [0]\nspawn at [480] [0] [0]\nspawn at [480] [0] [0]\nspawn at [480] [0] [0]\nspawn at [480] [0] [0]\nspawn at [480] [0] [0]\nspawn at [480] [0] [0]\nspawn at [300] [180] [0]\nspawn at [480] [-180] [0]\nspawn at [480] [0] [0]\nspawn at ((480) * (4)) [0] [0]\nspawn at [480] [0] [0]\nspawn at ((480) * (2)) [0] [0]\nspawn at ((480) * (2)) [0] [0]\nspawn at [480] [0] [0]\nspawn at [480] [0] [0]\nspawn at [480] [0] [0]\nspawn at [12870] [0] [1]\nspawn at [14325] [0] [1]\nset [x v] to [999999]\n\n@noice!\n\nwhen I receive [tick v]\ngo to ((x) - (Scroll x)) ((y) - (Scroll y))\n\ndefine go to (x) (y)\ngo to x: (x) y: (y)\nif <<(round (x)) = (round (x position))> and <(round (y)) = (round (y position))>> then\n    show\n    go to [back v] layer\n    go [forward v] (2) layers\nelse\n    hide\nend\n\ndefine spawn at (x) (y)\nchange [loaded v] by (1)\nchange [x v] by (x)\nchange [y v] by (y)\ncreate clone of (_myself_ v)\nnext costume\n\ndefine spawn at position (x) (y)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\nnext costume\n\nset [x v] to [999999999]\nset [y v] to [105]\n\nspawn at position [9243] [-75]\n\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I receive [start! v]\nshow\nset [x v] to [0]\nset [y v] to [0]\nswitch costume to (1 v)\ngo to x: (0) y: (0)\ngo to [front v] layer\nspawn at ((480) * (6)) [0]\nspawn at [480] [0]\nspawn at position [5555] [105]\nspawn at position [7034] [83]\nspawn at position [7159] [160]\nspawn at position [7776] [211]\nspawn at position [9160] [0]\nspawn at position [11280] [126]\nset [x v] to [999999999]\nset [y v] to [105]\n\n@spawnpoint\n\nwhen I receive [tick v]\ngo to ((x) - (Scroll x)) ((y) - (Scroll y))\n\ndefine go to (x) (y)\ngo to x: (x) y: (y)\nif <<(round (x)) = (round (x position))> and <(round (y)) = (round (y position))>> then\n    show\n    go to [back v] layer\nelse\n    hide\nend\n\ndefine spawn at (x) (y) (change or set?)\nchange [loaded v] by (1)\nif <(change or set?) = [0]> then\n    change [x v] by (x)\n    change [y v] by (y)\nelse\n    set [x v] to (x)\n    set [y v] to (y)\nend\ncreate clone of (_myself_ v)\ngo [backward v] (2) layers\n\nwhen I start as a clone\nwait (1) seconds\nforever\n    if <touching (player v)?> then\n        set [start point x v] to ((x) - (50))\n        set [start point y v] to (y)\n        play sound [Ding v] until done\n    end\nend\n\nif  then\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start! v]\nshow\nset [x v] to [0]\nset [y v] to [0]\nswitch costume to (1 v)\ngo to x: (0) y: (0)\nspawn at ((480) * (9)) [0] [0]\nspawn at ((480) * (2)) [0] [0]\nspawn at [8500] [27] [1]\nset [x v] to [999999]\n\n@trampoline\n\nwhen flag clicked\n\nwhen I receive [tick v]\ngo to ((x) - (Scroll x)) ((y) - (Scroll y))\n\ndefine go to (x) (y)\ngo to x: (x) y: (y)\nif <<(round (x)) = (round (x position))> and <(round (y)) = (round (y position))>> then\n    set size to (130) %\n    show\n    go to [front v] layer\n    go [backward v] (70) layers\nelse\n    hide\nend\n\ndefine spawn at (x) (y)\nchange [loaded v] by (1)\nchange [x v] by (x)\nchange [y v] by (y)\ncreate clone of (_myself_ v)\ngo [backward v] (2) layers\n\nwhen I start as a clone\nwait (1) seconds\nforever\n    if <touching (player v)?> then\n        start sound [Cartoon Sound Effect - Bounce v]\n        switch costume to (1 v)\n        repeat (5)\n            next costume\n        end\n        repeat (5)\n            switch costume to ((costume [number v]) - (1))\n        end\n    end\nend\n\ndelete this clone\n\ndefine create (x) (y)\nchange [loaded v] by (1)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\ngo [backward v] (2) layers\n\nwhen flag clicked\nhide\n\nwhen I receive [start! v]\nshow\nset [x v] to [0]\nset [y v] to [0]\ngo to [front v] layer\nswitch costume to (1 v)\ngo to x: (0) y: (0)\nspawn at ((((480) * (9)) + (500)) + (650)) [-80]\ncreate [7632] [205]\ncreate [11287] [-70]\ncreate [11510] [-70]\nset [x v] to [999999]\n\n@water\n\nwhen I receive [tick v]\ngo to ((x) - (Scroll x)) ((y) - (Scroll y))\n\ndefine go to (x) (y)\ngo to x: (x) y: (y)\nif <<(round ((x) - (Scroll x))) = (round (x position))> and <(round ((y) - (Scroll y))) = (round (y position))>> then\n    show\n    go to [back v] layer\n    go [forward v] (2) layers\n    set [ghost v] effect to (40)\n    set y to ((y) + (([sin v] of (((timer) + (3)) * (300)) ) * (8)))\nelse\n    hide\nend\n\ndefine change  (x) (y)\nchange [loaded v] by (1)\nchange [x v] by (x)\nchange [y v] by (y)\ncreate clone of (_myself_ v)\nnext costume\n\ndelete this clone\n\ndefine spawn at position (x) (y)\nchange [loaded v] by (1)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\nnext costume\n\nerase all\nset y to ((y) + (([sin v] of (((timer) + (1)) * (300)) ) * (8)))\nstamp\nset y to ((y) + (([sin v] of (((timer) + (2)) * (300)) ) * (8)))\nstamp\nstamp\nset [ghost v] effect to (100)\n\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I receive [start! v]\nshow\nerase all\nset [x v] to [0]\nset [y v] to [0]\nswitch costume to (1 v)\ngo to x: (0) y: (0)\ngo to [front v] layer\nspawn at position [5724] [-169]\nspawn at position [12400] [-169]\nset [x v] to [99999999]\nset [y v] to [-169]\n\n@ice\n\nwhen flag clicked\n\nwhen I receive [tick v]\ngo to ((x) - (Scroll x)) ((y) - (Scroll y))\n\ndefine go to (x) (y)\ngo to x: (x) y: (y)\nif <<(round (x)) = (round (x position))> and <(round (y)) = (round (y position))>> then\n    show\n    go to [back v] layer\nelse\n    hide\nend\n\ndefine spawn at (x) (y) (change or set?)\nchange [loaded v] by (1)\nif <(change or set?) = [0]> then\n    change [x v] by (x)\n    change [y v] by (y)\nelse\n    set [x v] to (x)\n    set [y v] to (y)\nend\ncreate clone of (_myself_ v)\ngo [backward v] (2) layers\n\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I receive [start! v]\nshow\nset [x v] to [0]\nset [y v] to [0]\nswitch costume to (1 v)\ngo to x: (0) y: (0)\nspawn at [8800] [27] [1]\nspawn at [9165] [27] [1]\nset [x v] to [999999]\n\n@boss\n\ndefine say (say what?) each (time) (seconds) (instrument) (for _beats) (play note)\nset instrument to ((instrument) v)\nbroadcast (say what?)\nset [say! v] to []\nset [idk v] to [0]\nrepeat until <(IDK) = (length of (say what?))>\n    start sound [Голос v]\n    play note ((for _beats)) for (play note) beats\n    change [idk v] by (1)\n    set [say! v] to (join (say!) (letter (IDK) of (say what?)))\n    say (say!)\n    if <(letter (IDK) of (say what?)) = [.]> then\n        wait (1) seconds\n    else\n        if <(letter (IDK) of (say what?)) = [,]> then\n            wait (0.5) seconds\n        else\n            wait (time) seconds\n        end\n    end\nend\nwait (seconds) seconds\nsay []\n\nwhen I receive [boss fight v]\ngo to [front v] layer\nshow\nset [music v] to [8]\nstop all sounds\ngo to x: (240) y: (-70)\nglide (1) secs to x: (200) y: (y position)\nsay [so I see,you want to find your family right?] each [0.01] [1] [] [] []\nbroadcast (1 v) and wait\nsay [NO,I will never allow you to find your family until you will win me] each [0.01] [1] [] [] []\nbroadcast (2 v) and wait\nsay [OK,I will give you a sword to fight with me!] each [0.01] [1] [] [] []\nbroadcast (sword v) and wait\n\nwhen flag clicked\nhide\npoint in direction (90)\n\nwhen I receive [start fighting v]\nif <(fighted) = [1]> then\n    stop all sounds\nend\nset [fighted v] to [1]\npoint in direction (90)\ngo to x: (200) y: (-70)\nset [boss hp v] to [100]\nsay [start fighting!] each [0.01] [1] [] [] []\nbroadcast (fight! v)\nwait (1) seconds\nrepeat until <(Boss HP) < [1]>\n    repeat until <(y position) > [139]>\n        change x by ((([x position v] of [player v]) - (x position)) / (7))\n        change y by (((140) - (y position)) / (4))\n        if <([x position v] of [player v]) > (x position)> then\n            point in direction (-90)\n        else\n            point in direction (90)\n        end\n    end\n    wait (0.2) seconds\n    glide (0.12) secs to x: (x position) y: (-70)\n    wait (0.2) seconds\nend\nstop [other scripts in sprite v]\nsay [oh,you won me] each [0.01] [1] [] [] []\nstart sound [Crunch v]\nhide\nbroadcast (BOSS DIED! v)\n\ngo to x: (240) y: (-70)\n\nglide (1) secs to x: (100) y: (100)\n\nchange y by (10)\n\nchange y by (10)\n\nwhen I receive [fight! v]\nforever\n    if <touching (player v)?> then\n        stop [other scripts in sprite v]\n        broadcast (start fighting v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nset [fighted v] to [0]\n\nwhen flag clicked\nhide\n\n@sword\n\nwhen flag clicked\nhide\n\nwhen I receive [sword v]\ngo to [front v] layer\nstart sound [sound of sky   v]\nshow\npoint in direction (90)\ngo to x: (0) y: (240)\nglide (1) secs to x: (([x position v] of [player v]) + (20)) y: (([y position v] of [player v]) - (20))\nwait (1) seconds\nwait (1) seconds\nbroadcast (start fighting v)\n\nwhen I receive [boss fight v]\nhide\n\nwhen I receive [tick v]\nif <(d) = [90]> then\n    go to x: (([x position v] of [player v]) + (20)) y: (([y position v] of [player v]) - (20))\nelse\n    go to x: (([x position v] of [player v]) - (20)) y: (([y position v] of [player v]) - (20))\nend\n\nwhen I start as a clone\nset size to (100) %\nrepeat (10)\n    change size by (-10)\n    change [ghost v] effect by (20)\nend\ndelete this clone\n\nwhen I receive [fight! v]\nset [hiting? v] to [0]\nforever\n    go to [front v] layer\n    if <(mode) = [1]> then\n        point in direction (90)\n    end\n    if <key (space v) pressed?> then\n        if <(d) = [90]> then\n            set [hiting? v] to [1]\n            start sound [sword sound v]\n            repeat until <(direction) = [180]>\n                go to [front v] layer\n                create clone of (_myself_ v)\n                turn right (10) degrees\n            end\n            repeat until <(direction) = [90]>\n                go to [front v] layer\n                create clone of (_myself_ v)\n                turn right (-10) degrees\n            end\n            set [hiting? v] to [0]\n        else\n            set [hiting? v] to [1]\n            start sound [sword sound v]\n            repeat until <(direction) = [0]>\n                go to [front v] layer\n                create clone of (_myself_ v)\n                turn right (-10) degrees\n            end\n            repeat until <(direction) = [90]>\n                go to [front v] layer\n                create clone of (_myself_ v)\n                turn right (10) degrees\n            end\n            set [hiting? v] to [0]\n        end\n    end\nend\n\nwhen I receive [fight! v]\nforever\n    if <<(hiting?) = [1]> and <touching (boss v)?>> then\n        change [boss hp v] by (-20)\n        wait until <not <touching (boss v)?>>\n    end\nend\n\nwhen I receive [start fighting v]\npoint in direction (90)\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I receive [hit v]\npoint in direction (90)\nif <(d) = [90]> then\n    set [hiting? v] to [1]\n    start sound [sword sound v]\n    repeat until <(direction) = [180]>\n        go to [front v] layer\n        create clone of (_myself_ v)\n        turn right (10) degrees\n    end\n    repeat until <(direction) = [90]>\n        go to [front v] layer\n        create clone of (_myself_ v)\n        turn right (-10) degrees\n    end\n    set [hiting? v] to [0]\nelse\n    set [hiting? v] to [1]\n    start sound [sword sound v]\n    repeat until <(direction) = [0]>\n        go to [front v] layer\n        create clone of (_myself_ v)\n        turn right (-10) degrees\n    end\n    repeat until <(direction) = [90]>\n        go to [front v] layer\n        create clone of (_myself_ v)\n        turn right (10) degrees\n    end\n    set [hiting? v] to [0]\nend\n\n@hp\n\ndefine boss hp\nerase all\npen up\nset pen color to (#ffffff)\nset pen size to (15)\ngo to x: (-100) y: (130)\npen down\ngo to x: (100) y: (130)\nif <not <(Boss HP) < [1]>> then\n    go to x: (-100) y: (130)\n    set pen color to (#3afb00)\n    pen up\n    set pen size to (10)\n    pen down\n    change x by ((Boss HP) * (2))\nelse\n    erase all\n    stop [this script v]\nend\n\ngo to x: (-199) y: (100)\n\nwhen I receive [fight! v]\nforever\n    boss hp\nend\n\nwhen flag clicked\nerase all\n\n@eyes of boss\n\nwhen flag clicked\nhide\n\nwhen I receive [boss died! v]\ngo to (boss v)\nclone [1]\n\ndefine clone (times)\nrepeat (times)\n    set size to (50) %\n    switch costume to (1 v)\n    create clone of (_myself_ v)\n    switch costume to (6 v)\n    create clone of (_myself_ v)\n    switch costume to (2 v)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\nset [yv v] to (pick random (10) to (15))\nset [xv v] to (pick random (5) to (-5))\nforever\n    go to [front v] layer\n    change x by (XV)\n    change y by (YV)\n    turn right (((XV) * ([abs v] of (YV) )) / (2)) degrees\n    change [yv v] by (-1)\n    if <<([abs v] of (x position) ) > [239]> or <([abs v] of (y position) ) > [179]>> then\n        change [i v] by (1)\n        delete this clone\n    end\nend\n\nwhen flag clicked\nhide\n\n@intro\n\nwhen flag clicked\nstart sound [Short_triumphal_fanfare-John_Stracke-815794903 v]\nset [clone id v] to [1]\nset [i v] to [0]\nhide\ncreate clone of (_myself_ v)\nset [clone id v] to [2]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nset size to (100) %\nif <(clone ID) = [1]> then\n    show\n    go to x: (0) y: (0)\n    switch costume to (backdrop1 v)\n    go to [back v] layer\nelse\n    if <(clone ID) = [2]> then\n        set [yv v] to [0]\n        show\n        go to x: (0) y: (180)\n        switch costume to (costume4 v)\n        go to [front v] layer\n        repeat until <(y position) < [19]>\n            change [yv v] by (-2)\n            change y by (yv)\n        end\n        start sound [falling-body-sound-effects v]\n        wait (1) seconds\n        switch costume to (costume3 v)\n        wait (1) seconds\n        repeat until <(costume [number v]) = [9]>\n            next costume\n        end\n        start sound [Ding v]\n        wait (0.5) seconds\n        repeat until <(costume [number v]) = [3]>\n            switch costume to ((costume [number v]) - (1))\n        end\n        broadcast (create v)\n        wait until <(i) = [1]>\n        switch costume to (costume4 v)\n        wait until <(i) = [2]>\n        switch costume to (costume3 v)\n        wait until <(i) = [3]>\n    else\n        if <(clone ID) = [3]> then\n            set [yv v] to [0]\n            show\n            go to x: (0) y: (180)\n            switch costume to (costume1 v)\n            go to [back v] layer\n            go [forward v] (2) layers\n            set size to (150) %\n            repeat until <(y position) < [-50]>\n                change [yv v] by (-2)\n                change y by (yv)\n            end\n            start sound [falling-body-sound-effects v]\n            wait (1) seconds\n            set [i v] to [1]\n            wait (1) seconds\n            repeat (20)\n                change x by (((120) - (x position)) / (4))\n            end\n            set [i v] to [2]\n            set [clone id v] to [4]\n            create clone of (_myself_ v)\n        else\n            if <(clone ID) = [4]> then\n                set [yv v] to [0]\n                show\n                go to x: (-120) y: (180)\n                switch costume to (heart and star v)\n                go to [back v] layer\n                go [forward v] (2) layers\n                set size to (150) %\n                repeat until <(y position) < [-50]>\n                    change [yv v] by (-2)\n                    change y by (yv)\n                end\n                start sound [falling-body-sound-effects v]\n                wait (1) seconds\n                set [clone id v] to [5]\n                create clone of (_myself_ v)\n                set [clone id v] to [6]\n                create clone of (_myself_ v)\n            else\n                if <(clone ID) = [5]> then\n                    go to x: (0) y: (0)\n                    go to [front v] layer\n                    switch costume to (blaaack! v)\n                    glide (1) secs to x: (240) y: (0)\n                else\n                    if <(clone ID) = [6]> then\n                        go to x: (0) y: (0)\n                        go to [front v] layer\n                        switch costume to (blaaack!2 v)\n                        glide (1) secs to x: (-240) y: (0)\n                        start sound [Thud v]\n                        broadcast (animation finished v)\n                        broadcast (plYmusic v)\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [create v]\nset [clone id v] to [3]\ncreate clone of (_myself_ v)\n\nwhen I receive [animation finished v]\ndelete this clone\n\nif <not <(username) = [timo1os]>> then\nelse\nend\n\n@paly button\n\nwhen flag clicked\nhide\n\nwhen I receive [animation finished v]\ngo to x: (0) y: (30)\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((70) - (size)) / (4))\n        set [brightness v] effect to (10)\n        if <mouse down?> then\n            wait until <not <mouse down?>>\n            set size to (40) %\n            play sound [Coin v] until done\n            broadcast (story v)\n            hide\n            stop [this script v]\n        end\n    else\n        change size by (((55) - (size)) / (4))\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [skin v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [music v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [story v]\nhide\nstop [other scripts in sprite v]\n\n@idk\n\nwhen flag clicked\nhide\n\nwhen I receive [animation finished v]\nshow\ngo to x: (0) y: (0)\nforever\n    repeat (30)\n        change x by (1)\n    end\n    repeat (30)\n        change x by (-1)\n    end\nend\n\nwhen I receive [start! v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [skin v]\nhide\n\nwhen I receive [music v]\nhide\n\nwhen I receive [story v]\nhide\nstop [other scripts in sprite v]\n\n@music button\n\nwhen flag clicked\nhide\n\nwhen I receive [animation finished v]\ngo to x: (0) y: (-35)\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((70) - (size)) / (4))\n        set [brightness v] effect to (10)\n        if <mouse down?> then\n            wait until <not <mouse down?>>\n            set size to (40) %\n            play sound [Coin v] until done\n            broadcast (music v)\n            hide\n        end\n    else\n        change size by (((50) - (size)) / (4))\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [start! v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [skin v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [music v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [story v]\nhide\nstop [other scripts in sprite v]\n\n@skin\n\nwhen I receive [skin v]\nshow\ngo to x: (0) y: (0)\nforever\n    switch costume to (Skin)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [animation finished v]\nhide\nstop [other scripts in sprite v]\n\n@ksin button\n\nwhen flag clicked\nhide\n\nwhen I receive [animation finished v]\ngo to x: (0) y: (-100)\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((70) - (size)) / (4))\n        set [brightness v] effect to (10)\n        if <mouse down?> then\n            wait until <not <mouse down?>>\n            set size to (40) %\n            play sound [Coin v] until done\n            broadcast (skin v)\n            hide\n        end\n    else\n        change size by (((50) - (size)) / (4))\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [start! v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [skin v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [music v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [story v]\nhide\nstop [other scripts in sprite v]\n\n@GUI\n\nwhen flag clicked\nforever\n    go to (mouse-pointer v)\n    show\n    set size to (100) %\n    go to [front v] layer\n    switch costume to (costume1 v)\n    if <touching (paly button v)?> then\n        switch costume to (costume2 v)\n        set size to (120) %\n    else\n        if <touching (music button v)?> then\n            switch costume to (costume3 v)\n            set size to (120) %\n        else\n            if <touching (ksin button v)?> then\n                switch costume to (costume4 v)\n                set size to (120) %\n            else\n                if <touching (back to menu v)?> then\n                    switch costume to (costume5 v)\n                    set size to (120) %\n                else\n                    if <touching (music but not music v)?> then\n                        switch costume to ((button number) + (7))\n                        set size to (120) %\n                    else\n                        hide\n                    end\n                end\n            end\n        end\n    end\nend\n\n@arrows\n\nwhen flag clicked\nset [clone id v] to [1]\nrepeat (2)\n    create clone of (_myself_ v)\n    change [clone id v] by (1)\nend\nhide\n\nwhen I start as a clone\nif <(clone ID) = [1]> then\n    point in direction (90)\n    go to x: (95) y: (0)\nelse\n    point in direction (-90)\n    go to x: (-95) y: (0)\nend\n\nwhen I receive [skin v]\nforever\n    if <(clone ID) < [3]> then\n        show\n        if <touching (mouse-pointer v)?> then\n            change size by (((120) - (size)) / (4))\n            set [brightness v] effect to (10)\n            if <mouse down?> then\n                wait until <not <mouse down?>>\n                set size to (40) %\n                start sound [Coin v]\n                if <(clone ID) = [1]> then\n                    change [skin v] by (1)\n                else\n                    change [skin v] by (-1)\n                end\n                if <(Skin) > [6]> then\n                    set [skin v] to [1]\n                end\n                if <(Skin) < [1]> then\n                    set [skin v] to [6]\n                end\n            end\n        else\n            change size by (((100) - (size)) / (4))\n            set [brightness v] effect to (0)\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [animation finished v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [animation finished v]\nhide\n\nwhen I receive [story v]\nhide\nstop [other scripts in sprite v]\n\n@back to menu\n\nwhen flag clicked\nhide\n\nwhen I receive [skin v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((120) - (size)) / (4))\n        set [brightness v] effect to (10)\n        if <mouse down?> then\n            wait until <not <mouse down?>>\n            start sound [Coin v]\n            set size to (40) %\n            broadcast (animation finished v)\n            stop [this script v]\n        end\n    else\n        change size by (((100) - (size)) / (4))\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [animation finished v]\nhide\n\nwhen I receive [music v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((120) - (size)) / (4))\n        set [brightness v] effect to (10)\n        if <mouse down?> then\n            wait until <not <mouse down?>>\n            start sound [Coin v]\n            set size to (40) %\n            broadcast (animation finished v)\n            stop [this script v]\n        end\n    else\n        change size by (((100) - (size)) / (4))\n        set [brightness v] effect to (0)\n    end\nend\n\n@music but not music\n\nwhen flag clicked\nhide\nset [clone id v] to [1]\nrepeat (6)\n    create clone of (_myself_ v)\n    change [clone id v] by (1)\nend\n\nwhen I receive [music v]\nshow\nforever\n    if <(Clone ID) < [7]> then\n        if <touching (mouse-pointer v)?> then\n            set [button number v] to (Clone ID)\n            change size by (((70) - (size)) / (4))\n            set [brightness v] effect to (10)\n            if <mouse down?> then\n                wait until <not <mouse down?>>\n                set size to (40) %\n                start sound [Coin v]\n                set [music v] to (Clone ID)\n            end\n        else\n            change size by (((50) - (size)) / (4))\n            set [brightness v] effect to (0)\n        end\n    else\n        hide\n    end\nend\n\nwhen I receive [start! v]\nhide\n\nwhen I receive [animation finished v]\nhide\nstop [other scripts in sprite v]\n\nwhen I start as a clone\nif <(Clone ID) = [1]> then\n    go to x: (-120) y: (60)\nelse\n    if <(Clone ID) = [2]> then\n        go to x: (120) y: (60)\n    else\n        if <(Clone ID) = [3]> then\n            go to x: (-120) y: (-60)\n        else\n            if <(Clone ID) = [4]> then\n                go to x: (120) y: (-60)\n            else\n                if <(Clone ID) = [5]> then\n                    go to x: (0) y: (60)\n                else\n                    if <(Clone ID) = [6]> then\n                        go to x: (0) y: (-60)\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [story v]\nhide\nstop [other scripts in sprite v]\n\n@thumbnail\n\nwhen flag clicked\nhide\n\ngo to [front v] layer\nshow\n\n@Detector Boosts\n\nwhen flag clicked\nset [timer v] to [0]\nforever\n    change [timer v] by (.0297)\nend\n\nwhen flag clicked\nforever\n    set [check v] to (Timer)\nend\n\nwhen flag clicked\nhide\nset [clone id2 v] to [0]\ncreate clone of (_myself_ v)\nwait (0.2) seconds\nset [clone id2 v] to [1]\ncreate clone of (_myself_ v)\nforever\n    set [timer v] to [0]\n    wait until <<(LOVED__) = [1]> and <(FAVED___) = [1]>>\n    wait (1) seconds\n    if <[lovenfave? v] contains (username)?> then\n        set [timer v] to [0]\n        delete (item # of (username) in [lovenfave? v]) of [lovenfave? v]\n        set [loved__ v] to [0]\n        set [faved___ v] to [0]\n        go to [front v] layer\n        show\n        go to x: (0) y: (-100)\n        set [timer v] to [0]\n        switch costume to (:\( v)\n        set [ghost v] effect to (100)\n        set [lovenfavejump v] to [0]\n        set [lovenfavespeed v] to [0]\n        repeat until <(Timer) > [3.5]>\n            change y by ((y position) / (-15))\n            change [ghost v] effect by (-3)\n        end\n        set [timer v] to [0]\n        repeat until <(Timer) > [3.5]>\n            change y by (((y position) - (-100)) / (-15))\n            change [ghost v] effect by (10)\n        end\n    else\n        add (username) to [lovenfave? v]\n        set [loved__ v] to [0]\n        set [faved___ v] to [0]\n        go to [front v] layer\n        show\n        go to x: (0) y: (-100)\n        set [timer v] to [0]\n        switch costume to (:\) v)\n        set [ghost v] effect to (100)\n        set [lovenfavejump v] to [0.5]\n        set [lovenfavespeed v] to [0.1]\n        repeat until <(Timer) > [3.5]>\n            change y by ((y position) / (-15))\n            change [ghost v] effect by (-3)\n        end\n        set [timer v] to [0]\n        repeat until <(Timer) > [3.5]>\n            change y by (((y position) - (-100)) / (-15))\n            change [ghost v] effect by (10)\n        end\n    end\nend\n\nwhen I start as a clone\nif <(clone id2) = [0]> then\n    go to x: (-15) y: (0)\n    set [loved__ v] to [0]\n    switch costume to (love v)\n    forever\n        set [love? v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [loved__ v] to [1]\n        end\n    end\nend\nif <(clone id2) = [1]> then\n    go to x: (0) y: (0)\n    switch costume to (fave v)\n    set [faved___ v] to [0]\n    forever\n        set [fav v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [faved___ v] to [1]\n        end\n    end\nend\n\n@head\n\nwhen flag clicked\nhide\n\ndefine go to (x) (y)\ngo to x: (x) y: (y)\nif <<(round (x)) = (round (x position))> and <(round (y)) = (round (y position))>> then\n    set [ghost v] effect to (100)\n    set size to (110) %\n    show\nelse\n    hide\nend\n\nwhen I receive [tick v]\ngo to ((14325) - (Scroll x)) ((0) - (Scroll y))\n\nwhen I receive [start! v]\nchange [loaded v] by (1)\n\n@story\n\nwhen flag clicked\nhide\nset [clone id v] to [1]\nrepeat (2)\n    create clone of (_myself_ v)\n    change [clone id v] by (1)\nend\n\nwhen I receive [story v]\nstop all sounds\nset [ghost v] effect to (100)\nif <(Clone ID) < [2]> then\n    set [music choosen v] to (music)\n    set [music v] to [10]\n    clear graphic effects\n    switch costume to (costume1 v)\n    show\n    go to [front v] layer\n    repeat (4)\n        wait (2) seconds\n        broadcast (fade v)\n        wait (0.6) seconds\n        next costume\n    end\n    wait (5) seconds\n    stop all sounds\n    set [music v] to (music choosen)\n    broadcast (start! v)\nelse\n    hide\nend\n\nwhen I receive [fade v]\nif <(Clone ID) = [2]> then\n    go to [front v] layer\n    switch costume to (costume6 v)\n    show\n    repeat (20)\n        change [ghost v] effect by (-5)\n    end\n    repeat (20)\n        change [ghost v] effect by (5)\n    end\nend\n\nwhen I receive [start! v]\nhide\ndelete this clone\n\n@heart\n\nwhen flag clicked\nhide\n\ndefine go to (x) (y)\ngo to x: (x) y: (y)\nif <<(round (x)) = (round (x position))> and <(round (y)) = (round (y position))>> then\n    set size to (110) %\n    show\nelse\n    hide\nend\n\nwhen I start as a clone\nset [y v] to [-10]\nif <(pick random (1) to (3)) = [1]> then\n    set [start x v] to (pick random (14294) to (14321))\nelse\n    if <(pick random (1) to (2)) = [1]> then\n        set [start x v] to (pick random (14494) to (14528))\n    else\n        if <(Scroll x) > [14240]> then\n            set [start x v] to ((Scroll x) + ([x position v] of [player v]))\n            set [y v] to (([y position v] of [player v]) + (50))\n        else\n            if <(pick random (1) to (2)) = [1]> then\n                set [start x v] to (pick random (14494) to (14528))\n            else\n                set [start x v] to (pick random (14294) to (14321))\n            end\n        end\n    end\nend\nset [ghost v] effect to (0)\nrepeat (25)\n    go to [front v] layer\n    go to ((start x) - (Scroll x)) ((y) - (Scroll y))\n    change [ghost v] effect by (5)\n    change [y v] by (5)\nend\ndelete this clone\n\nwhen I receive [boss died! v]\nforever\n    create clone of (_myself_ v)\n    wait (0.1) seconds\nend\n\n@button\n\nwhen flag clicked\nhide\n\nwhen I receive [fight! v]\nif <(mode) = [2]> then\n    show\n    go to x: (168) y: (-134)\nend\nforever\n    go to [front v] layer\n    set [mouse v] to (<touching (mouse-pointer v)?> + (0))\nend\n\nwhen this sprite clicked\nif <([hiting? v] of [sword v]) = [0]> then\n    broadcast (hit v) and wait\nend\n\n@comp -mobile\n\nwhen flag clicked\nhide\nset [mode v] to [1]\n\nwhen I receive [animation finished v]\ngo to x: (-160) y: (-150)\nswitch costume to (comp v)\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((140) - (size)) / (4))\n        set [brightness v] effect to (10)\n        if <mouse down?> then\n            wait until <not <mouse down?>>\n            set size to (40) %\n            play sound [Coin v] until done\n            next costume\n            set [mode v] to (costume [number v])\n        end\n    else\n        change size by (((120) - (size)) / (4))\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [start! v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [skin v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [music v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [story v]\nhide\nstop [other scripts in sprite v]\n\n@loading\n\nwhen I receive [start! v]\ngo to x: (-1000) y: (0)\nshow\nrepeat until <(round (x position)) = [0]>\n    go to [front v] layer\n    change x by (((0) - (x position)) / (4))\nend\nwait until <(loaded) = [62]>\nrepeat until <(round (x position)) = [461]>\n    go to [front v] layer\n    change x by (((461) - (x position)) / (4))\nend\nbroadcast (play v)\nwait (0.2) seconds\nhide\n\nwait (2) seconds\n\nwhen flag clicked\nhide\n\n
click the flag 3 times\n\nuse up arrow or touch with your finger up to jump \n\nuse right arrow or touch with your finger right to move right\n\nuse left arrow or touch with your finger left to move left\n\nhold up arrow or hold with your finger up to increase the height of the jump\nDon't jump into the water just run in it and hold up arrow to swim\n\nuse space bar or click the button  to use \nyour sword \n(the game is possible)