sunset || mobile platformer

Instructions: -Instructions-\nHi ! Welcome to my new game, it's probably my best project. It contains 1.1k blocks!\nCreate platforms with the mouse!\nWhen you are in shopping ,click on the stickman to get coins!\nNew update! Click on the settings icon and you can now change the pen color! This game is now playable with ur phone! :D\nPress 1, 2, 3,4 or 5 to change the type of thing you wanna build.\n1 = Create platforms\n2 = Create conveyor belts\n3 = Create trampolines\n4 = Create poison\n5 = Create conveyor belts in the other direction!\nYou can even put a like and a favorite to this project!\nClick on the stickman to get coins !\nTrending? YEAH #1 on trendinggggg yas queen !!\nuh #yasqueen

@Stage\n\nwhen flag clicked\nset [begin v] to [0]\nclear graphic effects\nswitch backdrop to (背景1 v)\nwait until <(begin) = [1]>\nset [ghost v] effect to (35)\nswitch backdrop to (backdrop1 v)\n\n@Player\n\nwhen flag clicked\nset [dead v] to [0]\nforever\n    if <(dead) = [1]> then\n        set [yv v] to [0]\n        hide\n        repeat (12)\n            create clone of (lava ball v)\n        end\n        wait (2) seconds\n        set [dead v] to [0]\n        go to x: (0) y: (94)\n        show\n    end\nend\n\nwhen flag clicked\nwait (1) seconds\nwait until <(ha!! hit u!!!!!!! :l) = [1]>\ngo to x: (0) y: (38)\nrepeat (25)\n    change x by (3)\n    create clone of (_myself_ v)\nend\nwait (2) seconds\nglide (1.6) secs to x: (242) y: (38)\nhide\nwait until <(talk) = [0]>\nchange [level v] by (1)\ngo to x: (0) y: (94)\nshow\n\nwhen I start as a clone\nrepeat (20)\n    change [ghost v] effect by (5)\nend\ndelete this clone\n\nwhen flag clicked\nwait (1) seconds\nwait until <<touching (end v)?> and <(level) = [6]>>\nset [end v] to [1]\nstop [other scripts in sprite v]\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nhide\n\nwhen flag clicked\nset [end v] to [0]\nset [level v] to [1]\nset [begin v] to [0]\nclear graphic effects\nhide\nwait until <(begin) = [1]>\nswitch costume to (costume1 v)\nshow\ngo to x: (0) y: (94)\nset [yv v] to [0]\nforever\n    if <(talk) = [0]> then\n        go to [front v] layer\n        change [yv v] by (-0.65)\n        change y by (yv)\n        if <<touching (level v)?> or <touching (boat v)?>> then\n            change y by ((yv) * (-1))\n            set [yv v] to [0]\n        end\n        if <key (up arrow v) pressed?> then\n            change y by (-1)\n            if <<touching (level v)?> or <touching (boat v)?>> then\n                change [yv v] by (10)\n            end\n            change y by (1)\n        end\n        set rotation style [left-right v]\n        if <key (left arrow v) pressed?> then\n            point in direction (-90)\n        end\n        if <key (right arrow v) pressed?> then\n            point in direction (90)\n        end\n        if <([x position v] of [level v]) < [-413]> then\n            change x by (([xv v] of [level v]) * (-1))\n            if <touching (level v)?> then\n                change y by (1)\n                if <touching (level v)?> then\n                    change y by (1)\n                    if <touching (level v)?> then\n                        change y by (1)\n                        if <touching (level v)?> then\n                            change y by (1)\n                            if <touching (level v)?> then\n                                change y by (1)\n                            end\n                            if <touching (level v)?> then\n                                change x by (1)\n                                change y by (-5)\n                                change x by (-1)\n                                change x by ([xv v] of [level v])\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        if <[239] < (x position)> then\n            if <not <(level) = [5]>> then\n                change [level v] by (1)\n                set [level changing v] to [1]\n                hide\n                wait until <(level changing) = [0]>\n                show\n                go to x: (0) y: (94)\n            end\n        end\n    end\nend\n\n@Lava&intro\n\nwhen I start as a clone\nif <(CLONE) = [2]> then\n    switch costume to (造型7 v)\n    go to x: (pick random (-230) to (230)) y: (-110)\n    go [backward v] (1) layers\n    set [ghost v] effect to (pick random (30) to (62))\n    repeat (30)\n        change y by (pick random (1) to (2.3))\n        change x by (pick random (-0.2) to (0.2))\n    end\n    delete this clone\nend\n\nwhen flag clicked\nclear graphic effects\nset [begin v] to [0]\nset [story v] to [0]\nerase all\nhide\npen up\nset pen color to (#cc7700)\nset pen size to (7)\ngo to x: (20) y: (20)\npen down\nglide (0.5) secs to x: (20) y: (-20)\nglide (0.5) secs to x: (-20) y: (-20)\nglide (0.5) secs to x: (-20) y: (20)\nglide (0.5) secs to x: (20) y: (20)\nwait (0.5) seconds\npen up\ngo to x: (4) y: (10)\npen down\nglide (0.2) secs to x: (19) y: (10)\nset pen size to (10)\npen up\ngo to x: (13) y: (1)\npen down\npen up\ngo to x: (13) y: (-44)\nset [clone v] to [1]\nswitch costume to (造型1 v)\ncreate clone of (_myself_ v)\nshow\ngo to x: (13) y: (-31)\nswitch costume to (造型2 v)\ngo to [front v] layer\nwait (1) seconds\nset [x v] to [20]\nrepeat until <(X) < [0.1]>\n    set [x v] to ((X) * (0.9))\n    change x by (X)\nend\nwait (2) seconds\nerase all\nhide\nset [story v] to [1]\ngo to x: (0) y: (0)\nswitch costume to (造型3 v)\nset [ghost v] effect to (100)\nwait (1) seconds\nshow\nrepeat (4)\n    change\nend\nwait (1) seconds\ngo to x: (0) y: (-20)\nset [begin v] to [1]\nforever\n    set [ghost v] effect to (15)\n    repeat (35)\n        change y by (0.2)\n    end\n    repeat (35)\n        change y by (-0.2)\n    end\nend\n\nwhen flag clicked\nset [begin v] to [0]\nwait until <(begin) = [1]>\nforever\n    if <touching (player v)?> then\n        set [dead v] to [1]\n    end\nend\n\nwhen flag clicked\nset [begin v] to [0]\nwait until <(begin) = [1]>\nforever\n    wait (pick random (0.001) to (0.1)) seconds\n    set [clone v] to [2]\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nif <(CLONE) = [1]> then\n    show\n    wait until <(story) = [1]>\n    delete this clone\nend\n\nwhen flag clicked\nwait (1) seconds\nwait until <(end) = [1]>\nstop [other scripts in sprite v]\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nswitch costume to (造型8 v)\nwait (1) seconds\nrepeat (2)\n    change\nend\nstop [all v]\n\ndefine change\nrepeat (50)\n    change [ghost v] effect by (-2)\nend\nwait (2) seconds\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nnext costume\n\n@Level\n\nwhen flag clicked\nforever\n    if <([on boat v] of [boat v]) = [1]> then\n        if <touching (boat v)?> then\n            change y by (-1)\n            if <touching (boat v)?> then\n                change y by (-1)\n                if <touching (boat v)?> then\n                    change y by (-1)\n                    if <touching (boat v)?> then\n                        change y by (-1)\n                        if <touching (boat v)?> then\n                            change y by (-1)\n                        end\n                        if <touching (boat v)?> then\n                            change x by (-1)\n                            change y by (5)\n                            change x by (1)\n                            change x by ((xv) * (-1))\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nwait (1) seconds\nwait until <(end) = [1]>\nstop [other scripts in sprite v]\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nhide\nclear graphic effects\n\nwhen flag clicked\nset [level changing v] to [0]\nset [begin v] to [0]\nhide\nwait until <(begin) = [1]>\nshow\nset [xv v] to [0]\nswitch costume to (g48 v)\nset size to (480) %\nswitch costume to (g1 v)\ngo to x: (1122) y: (677)\nforever\n    go [backward v] (1) layers\n    if <(dead) = [0]> then\n        if <(level changing) = [1]> then\n            set size to (100) %\n            go to x: (0) y: (0)\n            switch costume to (level complete v)\n            go to [front v] layer\n            wait (2) seconds\n            repeat (50)\n                change [ghost v] effect by (2)\n            end\n            hide\n            clear graphic effects\n            show\n            switch costume to (g48 v)\n            set size to (480) %\n            go [backward v] (10) layers\n            switch costume to (join [G] (level))\n            go to x: (1122) y: (677)\n            set [level changing v] to [0]\n            set [flag on? v] to [0]\n        end\n        if <(talk) = [0]> then\n            if <key (left arrow v) pressed?> then\n                change [xv v] by (0.82)\n            end\n            if <key (right arrow v) pressed?> then\n                change [xv v] by (-0.82)\n            end\n            set [xv v] to ((xv) * (0.82))\n            if <(x position) > [-414]> then\n                change x by (xv)\n            end\n            if <touching (player v)?> then\n                change y by (-1)\n                if <touching (player v)?> then\n                    change y by (-1)\n                    if <touching (player v)?> then\n                        change y by (-1)\n                        if <touching (player v)?> then\n                            change y by (-1)\n                            if <touching (player v)?> then\n                                change y by (-1)\n                            end\n                            if <touching (player v)?> then\n                                change x by (-1)\n                                change y by (5)\n                                change x by (1)\n                                change x by ((xv) * (-1))\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    else\n        wait until <(dead) = [0]>\n        if <(flag on?) = [0]> then\n            go to x: (1122) y: (677)\n        else\n            if <(level) = [1]> then\n                go to x: (298) y: (677)\n            else\n                if <(level) = [2]> then\n                    go to x: (224) y: (677)\n                else\n                    if <(level) = [3]> then\n                        go to x: (-249) y: (677)\n                    else\n                        go to x: (190) y: (677)\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(x position) < [-413]> then\n        wait (1e-22) seconds\n        wait until <([x position v] of [player v]) < [-4]>\n        set x to (-413)\n    end\nend\n\nwhen flag clicked\nset [talk v] to [0]\nwait (1) seconds\nwait until <(level) = [5]>\nwait (6) seconds\nwait until <(x position) < [642]>\nset [talk v] to [1]\nwait until <(ha!! hit u!!!!!!! :l) = [1]>\nwait (4.3) seconds\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nhide\nclear graphic effects\nswitch costume to (g6 v)\ngo to x: (1122) y: (677)\nwait (1) seconds\nshow\nset [talk v] to [0]\nset [level changing v] to [0]\n\n@Flag\n\nwhen I start as a clone\nforever\n    go to [front v] layer\n    if <(level) = [1]> then\n        set y to (14)\n        set x to (([x position v] of [level v]) - (260))\n    else\n        if <(level) = [2]> then\n            set y to (-30)\n            set x to (([x position v] of [level v]) - (204))\n        else\n            if <(level) = [3]> then\n                set y to (-64)\n                set x to (([x position v] of [level v]) - (-265))\n            else\n                if <(level) = [4]> then\n                    set y to (-26)\n                    set x to (([x position v] of [level v]) - (172))\n                else\n                end\n            end\n        end\n    end\n    if <<(x position) < [245]> and <<[-240] < (x position)> and <(level changing) = [0]>>> then\n        show\n    else\n        hide\n    end\n    if <touching (player v)?> then\n        set [flag on? v] to [1]\n    end\n    if <(flag on?) = [1]> then\n        switch costume to (_f1c v)\n    else\n        switch costume to (_f2 v)\n    end\nend\n\nwhen flag clicked\nset [begin v] to [0]\nhide\nswitch costume to (_f2 v)\nwait until <(begin) = [1]>\nset [flag on? v] to [0]\ncreate clone of (_myself_ v)\n\n@Blob\n\nwhen I start as a clone\nset rotation style [left-right v]\nset [x v] to [0]\nif <(clone pos) = [1]> then\n    set [distance v] to [200]\nelse\n    if <(clone pos) = [2]> then\n        set [distance v] to [120]\n    else\n        if <(clone pos) = [3]> then\n            set [distance v] to [80]\n        else\n            if <(clone pos) = [4]> then\n                set [distance v] to [90]\n            else\n                if <(clone pos) = [5]> then\n                    set [distance v] to [100]\n                else\n                    if <(clone pos) = [6]> then\n                        set [distance v] to [60]\n                    else\n                        if <(clone pos) = [7]> then\n                            set [distance v] to [80]\n                        else\n                            if <(clone pos) = [8]> then\n                                set [distance v] to [130]\n                            else\n                                if <(clone pos) = [9]> then\n                                    set [distance v] to [140]\n                                else\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nforever\n    point in direction (90)\n    repeat (distance)\n        change [x v] by (1)\n    end\n    point in direction (-90)\n    repeat (distance)\n        change [x v] by (-1)\n    end\nend\n\nwhen I start as a clone\nforever\n    wait (0.4) seconds\n    switch costume to (costume1 v)\n    wait (0.4) seconds\n    switch costume to (costume2 v)\nend\n\nwhen I start as a clone\nforever\n    if <(clone pos) = [1]> then\n        set y to (-14)\n        set x to ((([x position v] of [level v]) - (685.5)) + (x))\n    end\n    if <(clone pos) = [2]> then\n        set y to (50)\n        set x to ((([x position v] of [level v]) - (-136)) + (x))\n    end\n    if <(clone pos) = [3]> then\n        set y to (-12)\n        set x to ((([x position v] of [level v]) - (47)) + (x))\n    end\n    if <(clone pos) = [4]> then\n        set y to (-2)\n        set x to ((([x position v] of [level v]) - (207)) + (x))\n    end\n    if <(clone pos) = [5]> then\n        set y to (-2)\n        set x to ((([x position v] of [level v]) - (62)) + (x))\n    end\n    if <(clone pos) = [6]> then\n        set y to (-2)\n        set x to ((([x position v] of [level v]) - (-24)) + (x))\n    end\n    if <(clone pos) = [7]> then\n        set y to (-10)\n        set x to ((([x position v] of [level v]) - (82)) + (x))\n    end\n    if <(clone pos) = [8]> then\n        set y to (-8)\n        set x to ((([x position v] of [level v]) - (-55)) + (x))\n    end\n    if <(clone pos) = [9]> then\n        set y to (50)\n        set x to ((([x position v] of [level v]) - (-230)) + (x))\n    end\nend\n\nwhen flag clicked\nhide\nwait (1) seconds\nwait until <(level) = [2]>\nset [clone pos v] to [1]\ncreate clone of (_myself_ v)\nset [clone pos v] to [2]\ncreate clone of (_myself_ v)\nset [clone pos v] to [3]\ncreate clone of (_myself_ v)\nwait until <(level) = [3]>\nset [clone pos v] to [4]\ncreate clone of (_myself_ v)\nset [clone pos v] to [5]\ncreate clone of (_myself_ v)\nset [clone pos v] to [6]\ncreate clone of (_myself_ v)\nwait until <(level) = [4]>\nset [clone pos v] to [7]\ncreate clone of (_myself_ v)\nwait until <(level) = [6]>\nset [clone pos v] to [8]\ncreate clone of (_myself_ v)\nset [clone pos v] to [9]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nforever\n    if <<[-240] < (x position)> and <<(x position) < [240]> and <(level changing) = [0]>>> then\n        show\n    else\n        hide\n    end\n    if <touching (player v)?> then\n        set [dead v] to [1]\n    end\nend\n\nwhen I start as a clone\nwait (4) seconds\nwait until <<(level changing) = [1]> or <(end) = [1]>>\ndelete this clone\n\n@Boat\n\nwhen flag clicked\nhide\nset [on boat v] to [0]\nwait (1) seconds\nwait until <(level) = [3]>\nshow\nset y to (-86)\nset [t v] to [818]\nwait until <(level) = [4]>\nset [t v] to [534]\nwait until <(level) = [6]>\nset [t v] to [482]\n\nwhen flag clicked\nforever\n    if <<<[2] < (level)> and <(level) < [5]>> or <(level) = [6]>> then\n        if <<(round (([y position v] of [player v]) - (y position))) < [21]> and <(round ([abs v] of (([x position v] of [player v]) - (x position)) )) < [47]>> then\n            set [t v] to (([x position v] of [level v]) - (x position))\n            set [on boat v] to [1]\n        else\n            set [on boat v] to [0]\n            set x to (([x position v] of [level v]) - (t))\n            if <<(x position) < [271]> and <[-271] < (x position)>> then\n                show\n            else\n                hide\n            end\n        end\n        if <(dead) = [1]> then\n            wait until <(dead) = [0]>\n            if <(level) = [3]> then\n                set [t v] to [818]\n            else\n                set [t v] to [534]\n            end\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <(boat sink) = [0]> then\n        clear graphic effects\n        set y to (-86)\n    else\n        repeat (10)\n            change y by (-6)\n            change [ghost v] effect by (10)\n        end\n        wait (3) seconds\n        set [boat sink v] to [0]\n    end\nend\n\nwhen flag clicked\n\n@lava ball\n\nwhen flag clicked\nforever\n    hide\n    go to (player v)\nend\n\nwhen I start as a clone\nswitch costume to (造型1 v)\nshow\nset [ghost v] effect to (pick random (20) to (40))\nset [xv v] to (pick random (40) to (-40))\nset [yv v] to (pick random (12) to (19))\nrepeat until <touching (_edge_ v)?>\n    go to [front v] layer\n    set [xv v] to ((xv) * (0.82))\n    change [yv v] by (-0.65)\n    change x by (xv)\n    change y by (yv)\nend\ndelete this clone\n\n@Sigh\n\nwhen flag clicked\nhide\nswitch costume to (造型1 v)\nwait (1) seconds\nwait until <(begin) = [1]>\nwait (1) seconds\nsigh\nwait until <([x position v] of [level v]) < [537]>\nsigh\nwait until <(level) = [2]>\nwait (4.5) seconds\nwait until <([x position v] of [level v]) < [950]>\nsigh\nwait until <(level) = [3]>\nwait (3.5) seconds\nsigh\nwait until <(level) = [4]>\nwait (3) seconds\nsigh\nwait until <(level) = [6]>\nwait (1) seconds\nsigh\n\ndefine sigh\nshow\ngo to x: (0) y: (-25)\nwait (0.5) seconds\nrepeat (20)\n    change y by (1)\n    go to [front v] layer\nend\nwait (1) seconds\nrepeat (20)\n    change y by (-1)\n    go to [front v] layer\nend\nwait (0.5) seconds\nhide\nnext costume\n\n@gun guy\n\nwhen I start as a clone\nif <(clone tipe) = [2]> then\n    wait until <(dead) = [1]>\n    wait until <(dead) = [0]>\n    delete this clone\nend\n\nwhen I start as a clone\nforever\n    if <(clone tipe) = [1]> then\n        if <(ok) = [1]> then\n            wait (pick random (0.9) to (1.5)) seconds\n            switch costume to (mettoru1 v)\n            wait (0.1) seconds\n            switch costume to (mettoru2 v)\n            wait (0.1) seconds\n            switch costume to (mettoru3 v)\n            set [clone tipe v] to [2]\n            create clone of (_myself_ v)\n            set [clone tipe v] to [1]\n            wait (0.1) seconds\n            switch costume to (mettoru2 v)\n            wait (0.1) seconds\n            switch costume to (mettoru1 v)\n        end\n    end\nend\n\nwhen I start as a clone\nif <(clone tipe) = [2]> then\n    switch costume to (generalea v)\n    point towards (player v)\n    set rotation style [all around v]\n    repeat until <touching (_edge_ v)?>\n        change x by ((([sin v] of (direction) ) * (4)) + ([xv v] of [level v]))\n        change y by (([cos v] of (direction) ) * (4))\n        if <touching (player v)?> then\n            set [dead v] to [1]\n            delete this clone\n        end\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nwait (5) seconds\nwait until <(level changing) = [1]>\ndelete this clone\n\nwhen flag clicked\nhide\nwait (1) seconds\nwait until <(level) = [4]>\nset [clone tipe v] to [1]\nset [clone pos v] to [1]\ncreate clone of (_myself_ v)\nset [clone pos v] to [2]\ncreate clone of (_myself_ v)\nset [clone pos v] to [3]\ncreate clone of (_myself_ v)\nwait until <(level) = [6]>\nset [clone pos v] to [4]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(clone tipe) = [1]> then\n    switch costume to (mettoru1 v)\n    hide\n    wait (3) seconds\n    forever\n        set rotation style [left-right v]\n        point towards (player v)\n        if <(clone pos) = [1]> then\n            set x to (([x position v] of [level v]) - (867))\n            set y to (76)\n        else\n            if <(clone pos) = [2]> then\n                set x to (([x position v] of [level v]) - (509))\n                set y to (85)\n            else\n                if <(clone pos) = [3]> then\n                    set x to (([x position v] of [level v]) - (-129))\n                    set y to (33)\n                else\n                    set x to (([x position v] of [level v]) - (652))\n                    set y to (34)\n                end\n            end\n        end\n        if <<(x position) < [240]> and <[-240] < (x position)>> then\n            show\n            set [ok v] to [1]\n        else\n            hide\n            set [ok v] to [0]\n        end\n    end\nend\n\n@Bad buy D:\n\nwhen flag clicked\nset rotation style [left-right v]\npoint in direction (-90)\ngo to x: (241) y: (36)\nhide\nwait (1) seconds\nwait until <(talk) = [1]>\nwait (1) seconds\nshow\nglide (1) secs to x: (93) y: (36)\nwait until <(ha!! hit u!!!!!!! :l) = [1]>\nwait (1) seconds\nset [fy v] to [9]\nset [fx v] to [1]\nset rotation style [all around v]\nrepeat (100)\n    turn right (15) degrees\n    change x by (fx)\n    change y by (fy)\n    change [fx v] by (0.1)\n    change [fy v] by (-0.4)\nend\nhide\n\n@Talking\n\nwhen flag clicked\nset [ha!! hit u!!!!!!! :l v] to [0]\nhide\nwait (1) seconds\nwait until <(talk) = [1]>\nwait (2) seconds\nshow\nswitch costume to (costume1 v)\ngo to x: (-5) y: (60)\ntalk\ngo to x: (90) y: (60)\ntalk\ngo to x: (-5) y: (60)\ntalk\ngo to x: (90) y: (60)\ntalk\ntalk\ngo to x: (-5) y: (60)\ntalk\nset [ha!! hit u!!!!!!! :l v] to [1]\nhide\n\ndefine talk\nset [ghost v] effect to (80)\nset size to (10) %\nrepeat (10)\n    change size by (7)\n    change [ghost v] effect by (-8)\nend\nwait until <key (space v) pressed?>\nrepeat (10)\n    change size by (-7)\n    change [ghost v] effect by (8)\nend\nnext costume\nwait until <not <key (space v) pressed?>>\nwait (0.1) seconds\n\n@Crow\n\nwhen I start as a clone\nset [yv v] to [-0.4]\nset y to (110)\nforever\n    go to [front v] layer\n    if <(y position) < [60]> then\n        change [yv v] by (0.6)\n    end\n    if <(y position) > [60]> then\n        change [yv v] by (-0.6)\n    end\n    change y by (yv)\nend\n\nwhen flag clicked\nhide\nwait (1) seconds\nwait until <(level) = [6]>\nset [clone pos v] to [1]\ncreate clone of (_myself_ v)\nset [clone pos v] to [2]\ncreate clone of (_myself_ v)\nset [clone pos v] to [3]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nwait (1) seconds\nforever\n    if <(dead) = [1]> then\n        wait until <(dead) = [0]>\n        set [x v] to [0]\n    end\nend\n\nwhen I start as a clone\nset [x v] to [0]\nwait (0.5) seconds\nwait until <([x position v] of [level v]) < (sx)>\nforever\n    if <(dead) = [1]> then\n        wait (0.5) seconds\n        wait until <(dead) = [0]>\n        repeat until <([x position v] of [level v]) < (sx)>\n            set [x v] to [0]\n        end\n    end\nend\n\nwhen I start as a clone\nforever\n    wait (0.1) seconds\n    next costume\nend\n\nwhen I start as a clone\nif <(clone pos) = [1]> then\n    set [sx v] to [1054]\n    set [lx v] to [650]\nelse\n    if <(clone pos) = [2]> then\n        set [sx v] to [24]\n        set [lx v] to [-214]\n    else\n        set [sx v] to [24]\n        set [lx v] to [-350]\n    end\nend\nforever\n    change [x v] by (-3)\n    if <([abs v] of (x position) ) < [240]> then\n        show\n    else\n        hide\n    end\n    set x to ((([x position v] of [level v]) - (lx)) + (x))\n    if <touching (player v)?> then\n        set [dead v] to [1]\n    end\nend\n\n@Lava fish\n\nwhen flag clicked\nhide\nset [boat sink v] to [0]\nwait (1) seconds\nwait until <(level) = [6]>\nset [clone pos v] to [1]\ncreate clone of (_myself_ v)\nset [clone pos v] to [2]\ncreate clone of (_myself_ v)\nset [clone pos v] to [3]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nrepeat until <(y position) < [-170]>\n    change y by (-2)\nend\nforever\n    repeat (34)\n        change y by (2)\n    end\n    repeat (34)\n        change y by (-2)\n    end\nend\n\nwhen I start as a clone\ngo [backward v] (1) layers\nif <(clone pos) = [1]> then\n    set [a v] to [440]\n    set y to (-105)\nelse\n    if <(clone pos) = [2]> then\n        set [a v] to [290]\n        set y to (-133)\n    else\n        set [a v] to [120]\n        set y to (-160)\n    end\nend\nforever\n    set rotation style [left-right v]\n    point towards (player v)\n    set x to (([x position v] of [level v]) - (a))\n    if <([abs v] of (x position) ) < [240]> then\n        show\n        if <touching (boat v)?> then\n            set [boat sink v] to [1]\n        end\n    else\n        hide\n    end\nend\n\n@End\n\nwhen flag clicked\nclear graphic effects\nhide\nwait (1) seconds\nwait until <(level) = [6]>\nforever\n    turn right (8) degrees\n    set y to (21)\n    set x to (([x position v] of [level v]) - (-560))\n    if <([abs v] of (x position) ) < [240]> then\n        show\n    else\n        hide\n    end\n    if <(end) = [1]> then\n        repeat (50)\n            change [ghost v] effect by (2)\n            hide\n        end\n    end\nend\n\n@Logo\n\ngo to [front v] layer\ngo to x: (0) y: (0)\n\nwhen flag clicked\nhide\n\n