Sticky Notes ✎ [platformer]


@Stage\n\nwhen flag clicked\nforever\n    repeat (25)\n        reset timer\n    end\n    set [fps v] to (round ((1) / (timer)))\nend\n\nwhen flag clicked\nforever\n    if <not <(World Time) = [0]>> then\n        broadcast (Tick v)\n    end\nend\n\nwhen flag clicked\nwait (1) seconds\nforever\n    play sound [Vexento - Sunrise v] until done\nend\n\nwhen flag clicked\nif <(username) = [manh_noob]> then\n    set [play v] to [0]\nend\nif <(play) = [0]> then\n    set [fov effects % v] to [100]\n    set [volume % v] to [100]\n    set [world time v] to [1]\n    set [parcicle effects? v] to [1]\n    set [points v] to [1]\n    set [played times v] to [1]\n    set [joystick v] to [0]\n    set [jump button v] to [0]\n    set [real map v] to [0]\n    set [cinema mode v] to [1]\n    delete all of [effect_shop v]\n    add [0] to [effect_shop v]\n    add [2] to [effect_shop v]\n    add [5] to [effect_shop v]\n    add [10] to [effect_shop v]\n    set [play v] to [1]\nend\nforever\n    if <(username) = [manh_noob]> then\n        replace item (2) of [_settings v] with [1]\n    end\n    if <(World Time) = [0]> then\n        Show variable\n    else\n        Hide variable\n    end\n    set volume to (Volume %) %\nend\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <(Played Times) > (☁ Most Played Times)> then\n        set [☁ most played times v] to (Played Times)\n    end\n    wait (1) seconds\nend\n\ndefine Show variable\nshow variable [fov effects % v]\nshow variable [volume % v]\nshow variable [parcicle effects? v]\nshow variable [points v]\nshow variable [fps v]\nshow variable [☁ most played times v]\nshow variable [played times v]\nshow variable [joystick v]\nshow variable [real map v]\nshow variable [cinema mode v]\n\ndefine Hide variable\nhide variable [fov effects % v]\nhide variable [volume % v]\nhide variable [parcicle effects? v]\nhide variable [points v]\nhide variable [fps v]\nhide variable [☁ most played times v]\nhide variable [played times v]\nhide variable [joystick v]\nhide variable [real map v]\nhide variable [cinema mode v]\n\nwhen [timer v] > (0.5)\nHide variable\n\n@Player\n\nwhen flag clicked\nSetup\nCreate Effect [10]\nswitch costume to (player - hitbox v)\nwait (1) seconds\nforever\n    wait until <(item (1) of [_settings v]) = [13]>\n    change [points v] by (pick random (1) to (2))\n    change [played times v] by (1)\n    wait until <(item (1) of [_settings v]) = [1]>\nend\n\ndefine Run (fps) (main fps) Power (power)\nswitch costume to (player - hitbox v)\nButton <key (right arrow v) pressed?> [1]\nButton <key (left arrow v) pressed?> [2]\nButton <<key (up arrow v) pressed?> or <key (space v) pressed?>> [3]\nButton <key (down arrow v) pressed?> [4]\nButton <<key (z v) pressed?> and <key (right arrow v) pressed?>> [5]\nButton <<key (z v) pressed?> and <key (left arrow v) pressed?>> [6]\nif <(item (2) of [player_data v]) < [-150]> then\n    broadcast (teleback v)\nend\nif <(item (1) of [input v]) = [1]> then\n    point in direction (90)\n    change [xv v] by ((0.65) + ((0.65) * (((main fps) / (fps)) * (power))))\nend\nif <(item (2) of [input v]) = [1]> then\n    point in direction (-90)\n    change [xv v] by ((-0.65) + ((-0.65) * (((main fps) / (fps)) * (power))))\nend\nset [xv v] to ((xv) * (0.85))\nchange x by (xv)\nif <touching (visual v)?> then\n    change y by (-2)\n    if <touching (visual v)?> then\n        change y by (1)\n        if <touching (visual v)?> then\n            change y by (1)\n            if <touching (visual v)?> then\n                change y by (1)\n                if <touching (visual v)?> then\n                    change y by (1)\n                    if <touching (visual v)?> then\n                        change y by (1)\n                        if <touching (visual v)?> then\n                            change y by (-5)\n                            change x by ((-1) * (xv))\n                            if <<(item (3) of [input v]) = [1]> and <not <(xv) = [0]>>> then\n                                set [mode v] to [walljump]\n                                set [yv v] to ((9) * (power))\n                                set [xv v] to (((xv) / ([abs v] of (xv) )) * (((-4.5) + ((-4.5) * ((main fps) / (fps)))) * (power)))\n                            else\n                                set [mode v] to [wallslide]\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (2)\nend\nchange y by (-3)\nif <touching (visual v)?> then\n    if <(yv) = [-3]> then\n        if <<(item (1) of [input v]) = [1]> or <(item (2) of [input v]) = [1]>> then\n            set [mode v] to [run]\n        else\n            if <([abs v] of (xv) ) > [.1]> then\n                set [mode v] to [skid]\n            else\n                set [mode v] to [stand]\n            end\n        end\n    end\n    if <(item (3) of [input v]) = [1]> then\n        set [mode v] to [jump]\n        set [yv v] to ((12) * (power))\n    end\nend\nif <<<<(mode) = [jump]> or <(mode) = [walljump]>> and <(yv) < [0]>> or <<<(mode) = [run]> or <(mode) = [skid]>> and <(yv) < [-3]>>> then\n    set [mode v] to [fall]\nend\nchange y by (3)\nif <(yv) > ((-15) * (((main fps) / (fps)) * (power)))> then\n    change [yv v] by ((-0.4) + ((-0.4) * (((main fps) / (fps)) * (power))))\nend\nchange y by (-2)\nif <not <touching (visual v)?>> then\n    change y by (-1)\n    if <not <touching (visual v)?>> then\n        change y by (-1)\n        if <not <touching (visual v)?>> then\n            change y by (-1)\n            if <not <touching (visual v)?>> then\n                change y by (-1)\n                if <not <touching (visual v)?>> then\n                    change y by (-1)\n                    if <not <touching (visual v)?>> then\n                        change y by (5)\n                    end\n                end\n            end\n        end\n    end\nend\nchange y by (2)\nchange y by (yv)\nif <touching (visual v)?> then\n    change y by (-2)\n    if <touching (visual v)?> then\n        change y by ((-1) * (yv))\n        set [yv v] to ((-3) * (((main fps) / (fps)) * (power)))\n    end\n    change y by (2)\nend\n\ndefine Setup\ndelete all of [input v]\nrepeat (10)\n    add [0] to [input v]\nend\ndelete all of [player_data v]\nrepeat (5)\n    add [0] to [player_data v]\nend\nreplace item (5) of [player_data v] with [1]\ndelete all of [_effect_ v]\nrepeat ((8) * (20))\n    add [] to [_effect_ v]\nend\npoint in direction (90)\nclear graphic effects\ngo to [front v] layer\nset size to (100) %\ngo to x: (-100) y: (50)\nset [xv v] to [0]\nset [yv v] to [0]\nshow\n\ndefine Button <arrow> (change)\nif <(Joystick) = [0]> then\n    if <arrow> then\n        replace item (change) of [input v] with [1]\n    else\n        replace item (change) of [input v] with [0]\n    end\nend\n\nwhen I receive [tick v]\nif < (costume [name v]) contains [Player]?> then\n    Run (fps) [30] Power ((World Time) * (0.7))\n    replace item (1) of [player_data v] with (x position)\n    replace item (2) of [player_data v] with (y position)\n    replace item (3) of [player_data v] with (direction)\n    set [ghost v] effect to ((100) - (Real Map))\nend\n\ndefine Set size to (n) (c)\nswitch costume to (size skip v)\nset size to (n) %\nswitch costume to (c)\n\nwhen I start as a clone\nif < (costume [name v]) contains [Effect]?> then\n    show\n    go to [front v] layer\n    clear graphic effects\n    set [ghost v] effect to ((100) - (Real Map))\nend\n\nwhen I receive [tick v]\nif < (costume [name v]) contains [Effect]?> then\n    if <touching (visual v)?> then\n        if <[0.8] > (item ((((effect_id) - (1)) * (8)) + (5)) of [_effect_ v])> then\n            Effect - Set ((((effect_id) - (1)) * (8)) + (5)) to ((item ((((effect_id) - (1)) * (8)) + (5)) of [_effect_ v]) * (-0.5))\n        else\n            Effect - Set ((((effect_id) - (1)) * (8)) + (5)) to [1]\n        end\n    end\n    Effect - Change ((((effect_id) - (1)) * (8)) + (5)) to [-0.3]\n    change x by (item ((((effect_id) - (1)) * (8)) + (4)) of [_effect_ v])\n    change y by (item ((((effect_id) - (1)) * (8)) + (5)) of [_effect_ v])\n    change x by (10)\n    if <not <touching (visual v)?>> then\n        Effect - Change ((((effect_id) - (1)) * (8)) + (4)) to [0.2]\n        Effect - Change ((((effect_id) - (1)) * (8)) + (6)) to [0.8]\n    end\n    change x by (-20)\n    if <not <touching (visual v)?>> then\n        Effect - Change ((((effect_id) - (1)) * (8)) + (4)) to [-0.2]\n        Effect - Change ((((effect_id) - (1)) * (8)) + (6)) to [-0.8]\n    end\n    change x by (10)\n    Effect - Set ((((effect_id) - (1)) * (8)) + (4)) to ((item ((((effect_id) - (1)) * (8)) + (4)) of [_effect_ v]) * (0.95))\n    Effect - Set ((((effect_id) - (1)) * (8)) + (6)) to ((item ((((effect_id) - (1)) * (8)) + (6)) of [_effect_ v]) * (0.75))\n    turn right (2) degrees\n    if <not <touching (visual v)?>> then\n        Effect - Change ((((effect_id) - (1)) * (8)) + (6)) to [1]\n    end\n    turn left (4) degrees\n    if <not <touching (visual v)?>> then\n        Effect - Change ((((effect_id) - (1)) * (8)) + (6)) to [-1]\n    end\n    turn right (2) degrees\n    turn right (10) degrees\n    if <not <touching (visual v)?>> then\n        Effect - Change ((((effect_id) - (1)) * (8)) + (6)) to [2]\n    end\n    turn left (20) degrees\n    if <not <touching (visual v)?>> then\n        Effect - Change ((((effect_id) - (1)) * (8)) + (6)) to [-2]\n    end\n    turn right (10) degrees\n    turn right (item ((((effect_id) - (1)) * (8)) + (6)) of [_effect_ v]) degrees\n    if <touching (visual v)?> then\n        Effect - Set ((((effect_id) - (1)) * (8)) + (4)) to ((item ((((effect_id) - (1)) * (8)) + (4)) of [_effect_ v]) * (-1))\n        change y by (1)\n    end\n    if <touching (visual v)?> then\n        change y by (1)\n    end\n    if <touching (visual v)?> then\n        change y by (1)\n    end\n    if <touching (visual v)?> then\n        change y by (1)\n    end\n    if <touching (visual v)?> then\n        change y by (1)\n    end\n    if <touching (visual v)?> then\n        change y by (1)\n    end\n    if <touching (visual v)?> then\n        change y by (1)\n    end\n    if <touching (visual v)?> then\n        change y by (1)\n    end\n    if <touching (visual v)?> then\n        change y by (1)\n    end\n    if <touching (visual v)?> then\n        change y by (1)\n    end\n    change y by (-1)\n    Effect - Set ((((effect_id) - (1)) * (8)) + (1)) to (((round (x position)) * (20)) / (20))\n    Effect - Set ((((effect_id) - (1)) * (8)) + (2)) to (((round (y position)) * (20)) / (20))\n    Effect - Set ((((effect_id) - (1)) * (8)) + (3)) to (((round (direction)) * (20)) / (20))\nend\n\ndefine Create Effect (n)\nset [effect_id v] to [1]\nswitch costume to (effect - hitbox v)\nrepeat (n)\n    Effect - Set ((((effect_id) - (1)) * (8)) + (4)) to ((pick random (-3) to (3)) * (2))\n    Effect - Set ((((effect_id) - (1)) * (8)) + (5)) to (pick random (3) to (-1))\n    Effect - Set ((((effect_id) - (1)) * (8)) + (6)) to ((pick random (-5) to (5)) * (2))\n    Effect - Set ((((effect_id) - (1)) * (8)) + (7)) to (pick random (1) to (2))\n    create clone of (_myself_ v)\n    change [effect_id v] by (1)\nend\n\ndefine Effect - Set (n) to (a)\nreplace item (n) of [_effect_ v] with (a)\n\ndefine Effect - Change (n) to (a)\nreplace item (n) of [_effect_ v] with ((item (n) of [_effect_ v]) + (a))\n\nwhen I receive [teleback v]\nset [xv v] to [0]\nset [yv v] to [0]\ngo to x: (-100) y: (50)\nif < (costume [name v]) contains [Effect]?> then\n    Effect - Set ((((effect_id) - (1)) * (8)) + (4)) to ((pick random (-3) to (3)) * (2))\n    Effect - Set ((((effect_id) - (1)) * (8)) + (5)) to (pick random (3) to (-1))\n    Effect - Set ((((effect_id) - (1)) * (8)) + (6)) to ((pick random (-5) to (5)) * (2))\n    Effect - Set ((((effect_id) - (1)) * (8)) + (7)) to (pick random (1) to (2))\nend\n\n@Visual\n\ndefine Set size to (n) (c)\nswitch costume to (size skip v)\nset size to (n) %\nswitch costume to (c)\n\ndefine Draw\nerase all\nclear graphic effects\nSet size to (Zoom) (costume [number v])\ngo to x: (0) y: (0)\npoint in direction ((viewDirection) + (90))\nswitch costume to (background v)\nmove ((xmap) * ((Zoom) / (100))) steps\nturn left (90) degrees\nmove ((ymap) * ((Zoom) / (100))) steps\nturn right (90) degrees\nturn right (item (4) of [player_data v]) degrees\nstamp\nswitch costume to (join [Map - ] (item (1) of [_settings v]))\nstamp\ngo to x: (0) y: (0)\npoint in direction ((viewDirection) + (90))\nmove (((item (1) of [player_data v]) + (xmap)) * ((Zoom) / (100))) steps\nturn left (90) degrees\nmove (((item (2) of [player_data v]) + (ymap)) * ((Zoom) / (100))) steps\nturn right (90) degrees\nif <(item (3) of [player_data v]) = [90]> then\n    switch costume to (player - normal v)\nelse\n    switch costume to (player - normal 2 v)\nend\nstamp\nif <<not <(Parcicle Effects?) = [0]>> and <<(item (2) of [_settings v]) = [1]> or <(item (1) of [_settings v]) = [13]>>> then\n    Draw Effect\nend\nif <<(World Time) = [0]> or <(Joystick) = [0]>> then\nswitch costume to (join [Touch - ] (item (1) of [_settings v]))\nSet size to [100] (costume [number v])\npoint in direction ((90) + (item (4) of [player_data v]))\ngo to x: (0) y: (0)\nset [ghost v] effect to ((100) - (Real Map))\n\nwhen flag clicked\nSetup\n\ndefine Setup\ndelete all of [_memory v]\nrepeat (10)\n    add [] to [_memory v]\nend\ndelete all of [_settings v]\nrepeat (10)\n    add [100] to [_settings v]\nend\nreplace item (1) of [_settings v] with [1]\nreplace item (2) of [_settings v] with [0]\nreplace item (3) of [_settings v] with [0]\nset [zoom v] to [100]\nset [direction v] to [0]\nset [viewdirection v] to [0]\nset [xmap v] to [0]\nset [ymap v] to [0]\n\nwhen I receive [tick v]\nif <<key (c v) pressed?> or <key (z v) pressed?>> then\n    change [zoom v] by (((225) - (Zoom)) * (0.2))\n    change [xmap v] by (((item (1) of [player_data v]) + (xmap)) * (-0.2))\n    change [ymap v] by (((item (2) of [player_data v]) + (ymap)) * (-0.2))\n    if <(viewDirection) > [0]> then\n        change [viewdirection v] by (((0) - (viewDirection)) * (0.1))\n    else\n        change [viewdirection v] by (((0) - (viewDirection)) * (0.1))\n    end\nelse\n    change [zoom v] by (((Zoom) - (125)) * (-0.3))\n    change [xmap v] by ((((item (1) of [player_data v]) * (0.6)) + (xmap)) * (-0.2))\n    change [ymap v] by ((((item (2) of [player_data v]) * (0.3)) + (ymap)) * (-0.2))\n    change [viewdirection v] by (((Direction) - (viewDirection)) * (0.1))\n    set [direction v] to (() - ((item (1) of [player_data v]) * ((0.2) * ((FOV Effects %) / (100)))))\n    if <(Direction) > [180]> then\n        change [viewdirection v] by (-360)\n    end\n    if <(Direction) < [-180]> then\n        change [viewdirection v] by (360)\n    end\nend\n\nwhen I receive [tick v]\nDraw\nif <(Direction) > [180]> then\n    change [direction v] by (-360)\nend\nif <(Direction) < [-180]> then\n    change [direction v] by (360)\nend\nif <(item (4) of [player_data v]) > [180]> then\n    replace item (4) of [player_data v] with ((item (4) of [player_data v]) + (-360))\nend\nif <(item (4) of [player_data v]) < [-180]> then\n    replace item (4) of [player_data v] with ((item (4) of [player_data v]) + (360))\nend\n\ndefine Draw Effect (n)\nif <not <(item ((((n) - (1)) * (8)) + (1)) of [_effect_ v]) = []>> then\n    switch costume to (join [Effect - Custom] (item ((((n) - (1)) * (8)) + (7)) of [_effect_ v]))\n    go to x: (0) y: (0)\n    point in direction ((viewDirection) + (90))\n    move (((item ((((n) - (1)) * (8)) + (1)) of [_effect_ v]) + (xmap)) * ((Zoom) / (100))) steps\n    turn left (90) degrees\n    move (((item ((((n) - (1)) * (8)) + (2)) of [_effect_ v]) + (ymap)) * ((Zoom) / (100))) steps\n    turn right (item ((((n) - (1)) * (8)) + (3)) of [_effect_ v]) degrees\n    stamp\nend\n\ndefine Draw Effect\nDraw Effect [1]\nDraw Effect [2]\nDraw Effect [3]\nDraw Effect [4]\nDraw Effect [5]\nDraw Effect [6]\nDraw Effect [7]\nDraw Effect [8]\nDraw Effect [9]\nDraw Effect [10]\nDraw Effect [11]\nDraw Effect [12]\nDraw Effect [13]\nDraw Effect [14]\nDraw Effect [15]\nDraw Effect [16]\nDraw Effect [17]\nDraw Effect [18]\nDraw Effect [19]\nDraw Effect [20]\n\n@Button & Clone\n\nwhen I start as a clone\nif < (costume [name v]) contains [GUI]?> then\n    if < (costume [name v]) contains [Effect]?> then\n        go to [back v] layer\n        forever\n            clear graphic effects\n            if <(World Time) = [0]> then\n                go to x: (item (2) of [_clone_data v]) y: (item (3) of [_clone_data v])\n                if <(distance to [mouse-pointer v]) < [18]> then\n                    if <(item (item (1) of [_clone_data v]) of [effect_shop v]) = [0]> then\n                        if < (costume [name v]) contains [End]?> then\n                            if <(item (2) of [_settings v]) = [1]> then\n                                say [Equiped]\n                            else\n                                say [Click to equip]\n                            end\n                            if <mouse down?> then\n                                wait until <not <mouse down?>>\n                                if <(distance to [mouse-pointer v]) < [18]> then\n                                    if <(item (2) of [_settings v]) = [1]> then\n                                        replace item (2) of [_settings v] with [0]\n                                    else\n                                        replace item (2) of [_settings v] with [1]\n                                    end\n                                end\n                            end\n                        else\n                            if <(item (1) of [_clone_data v]) = (item (5) of [player_data v])> then\n                                say [Equiped]\n                            else\n                                say [Click to equip]\n                                if <mouse down?> then\n                                    wait until <not <mouse down?>>\n                                    if <(distance to [mouse-pointer v]) < [18]> then\n                                        if < (costume [name v]) contains [End]?> then\n                                            replace item (2) of [_settings v] with [1]\n                                        else\n                                            replace item (5) of [player_data v] with (item (1) of [_clone_data v])\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    else\n                        say (join [Price: ] (join (item (item (1) of [_clone_data v]) of [effect_shop v]) [ points]))\n                        if <mouse down?> then\n                            wait until <not <mouse down?>>\n                            if <(distance to [mouse-pointer v]) < [18]> then\n                                if <((Points) + (1)) > (item (item (1) of [_clone_data v]) of [effect_shop v])> then\n                                    change [points v] by (() - (item (item (1) of [_clone_data v]) of [effect_shop v]))\n                                    replace item (item (1) of [_clone_data v]) of [effect_shop v] with [0]\n                                else\n                                    say [Don't have enough points :<] for (1.5) seconds\n                                end\n                            end\n                        end\n                    end\n                    Set size to ((size) + (((140) - (size)) * (0.1))) (costume [number v])\n                else\n                    Set size to ((size) + (((100) - (size)) * (0.2))) (costume [number v])\n                    say []\n                end\n            end\n        end\n    end\nend\nif < (costume [name v]) contains [Effect+]?> then\n    switch costume to (join [Effect+ - ] (item (5) of [player_data v]))\n    show\n    clear graphic effects\n    go to [front v] layer\n    set [ghost v] effect to (100)\n    replace item (1) of [_clone_data v] with (item (1) of [player_data v])\n    replace item (2) of [_clone_data v] with (item (2) of [player_data v])\n    replace item (3) of [_clone_data v] with (((pick random (0) to (1)) * (2)) - (1))\n    replace item (4) of [_clone_data v] with (((pick random (0) to (1)) * (2)) - (1))\n    replace item (5) of [_clone_data v] with (pick random (0.3) to (0.8))\n    replace item (6) of [_clone_data v] with (pick random (0.3) to (0.8))\n    repeat (10)\n        change [ghost v] effect by (-4)\n        replace item (1) of [_clone_data v] with ((item (1) of [_clone_data v]) + ((item (5) of [_clone_data v]) * (item (3) of [_clone_data v])))\n        replace item (2) of [_clone_data v] with ((item (2) of [_clone_data v]) + ((item (6) of [_clone_data v]) * (item (4) of [_clone_data v])))\n    end\n    repeat (15)\n        replace item (1) of [_clone_data v] with ((item (1) of [_clone_data v]) + ((item (5) of [_clone_data v]) * (item (3) of [_clone_data v])))\n        replace item (2) of [_clone_data v] with ((item (2) of [_clone_data v]) + ((item (6) of [_clone_data v]) * (item (4) of [_clone_data v])))\n    end\n    repeat (10)\n        change [ghost v] effect by (4)\n        replace item (1) of [_clone_data v] with ((item (1) of [_clone_data v]) + ((item (5) of [_clone_data v]) * (item (3) of [_clone_data v])))\n        replace item (2) of [_clone_data v] with ((item (2) of [_clone_data v]) + ((item (6) of [_clone_data v]) * (item (4) of [_clone_data v])))\n    end\nend\nif < (costume [name v]) contains [Menu]?> then\n    if < (costume [name v]) contains [Restart]?> then\n        switch costume to (menu - restart v)\n        forever\n            show\n            clear graphic effects\n            go to [front v] layer\n            go to x: (item (2) of [_clone_data v]) y: (item (3) of [_clone_data v])\n            if <(distance to [mouse-pointer v]) < [20]> then\n                Set size to ((size) + (((140) - (size)) * (0.1))) (costume [number v])\n                if <mouse down?> then\n                    broadcast (teleback v)\n                    wait until <not <mouse down?>>\n                end\n            else\n                Set size to ((size) + (((100) - (size)) * (0.2))) (costume [number v])\n            end\n            if <key (r v) pressed?> then\n                if <(World Time) = [0]> then\n                    set [world time v] to [1]\n                    switch costume to (menu - continue v)\n                else\n                    set [world time v] to [0]\n                    switch costume to (menu - stop v)\n                end\n                wait until <not <key (r v) pressed?>>\n            end\n            if <key (o v) pressed?> then\n                if <(World Time) = [0]> then\n                    set [world time v] to [1]\n                    switch costume to (menu - continue v)\n                else\n                    set [world time v] to [0]\n                    switch costume to (menu - stop v)\n                end\n                wait until <not <key (o v) pressed?>>\n            end\n        end\n    else\n        switch costume to (menu - continue v)\n        forever\n            show\n            clear graphic effects\n            go to [front v] layer\n            go to x: (item (2) of [_clone_data v]) y: (item (3) of [_clone_data v])\n            if <(distance to [mouse-pointer v]) < [20]> then\n                Set size to ((size) + (((140) - (size)) * (0.1))) (costume [number v])\n                if <mouse down?> then\n                    if <(World Time) = [0]> then\n                        set [world time v] to [1]\n                        switch costume to (menu - continue v)\n                    else\n                        set [world time v] to [0]\n                        switch costume to (menu - stop v)\n                    end\n                    wait until <not <mouse down?>>\n                end\n            else\n                Set size to ((size) + (((100) - (size)) * (0.2))) (costume [number v])\n            end\n            if <key (p v) pressed?> then\n                if <(World Time) = [0]> then\n                    set [world time v] to [1]\n                    switch costume to (menu - continue v)\n                else\n                    set [world time v] to [0]\n                    switch costume to (menu - stop v)\n                end\n                wait until <not <key (p v) pressed?>>\n            end\n            if <key (m v) pressed?> then\n                if <(World Time) = [0]> then\n                    set [world time v] to [1]\n                    switch costume to (menu - continue v)\n                else\n                    set [world time v] to [0]\n                    switch costume to (menu - stop v)\n                end\n                wait until <not <key (m v) pressed?>>\n            end\n        end\n    end\nend\nif < (costume [name v]) contains [Screen Effect]?> then\n    forever\n        clear graphic effects\n        go to [front v] layer\n        go to x: (0) y: (0)\n        if <(Cinema Mode) = [1]> then\n            show\n        else\n            hide\n        end\n    end\nend\nif < (costume [name v]) contains [Screen Stop]?> then\n    forever\n        clear graphic effects\n        go to [back v] layer\n        go to x: (0) y: (0)\n        if <(World Time) = [0]> then\n            show\n        else\n            hide\n        end\n    end\nend\nif < (costume [name v]) contains [Map]?> then\n    show\n    clear graphic effects\n    go to [front v] layer\n    if < (costume [name v]) contains [Next]?> then\n        forever\n            if <(item (1) of [_settings v]) = (item (1) of [_clone_data v])> then\n                show\n                if <<([abs v] of ((item (2) of [_clone_data v]) - (item (1) of [player_data v])) ) < ((20) * ((Zoom) / (100)))> and <([abs v] of ((item (3) of [_clone_data v]) - (item (2) of [player_data v])) ) < ((20) * ((Zoom) / (100)))>> then\n                    broadcast (teleback v)\n                    replace item (1) of [_settings v] with ((item (1) of [_settings v]) + (1))\n                    hide\n                    wait (1) seconds\n                end\n            else\n                hide\n            end\n        end\n    end\nend\ndelete this clone\n\ndefine Clone object in map (n) obj (obj) position (x) (y)\nreplace item (1) of [_clone_data v] with (n)\nreplace item (2) of [_clone_data v] with (x)\nreplace item (3) of [_clone_data v] with (y)\nswitch costume to (obj)\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nSetup\nClone object in map [1] obj [Map - Next] position [200] [-100]\nClone object in map [2] obj [Map - Next] position [-210] [-100]\nClone object in map [3] obj [Map - Next] position [-168] [-20]\nClone object in map [4] obj [Map - Next] position [110] [-170]\nClone object in map [5] obj [Map - Next] position [190] [-170]\nClone object in map [6] obj [Map - Next] position [225] [-145]\nClone object in map [7] obj [Map - Next] position [-100] [-145]\nClone object in map [8] obj [Map - Next] position [70] [-150]\nClone object in map [9] obj [Map - Next] position [170] [-160]\nClone object in map [10] obj [Map - Next] position [-20] [160]\nClone object in map [11] obj [Map - Next] position [-110] [-150]\nClone object in map [12] obj [Map - Next] position [75] [140]\nClone object in map [] obj [Menu - Stop] position [210] [140]\nClone object in map [] obj [Menu - Restart] position [170] [140]\nClone object in map [] obj [Screen Effect] position [0] [0]\nClone object in map [] obj [Screen Stop] position [0] [0]\nClone object in map [1] obj [GUI - Effect - 1] position [180] [10]\nClone object in map [2] obj [GUI - Effect - 2] position [180] [-30]\nClone object in map [3] obj [GUI - Effect - 3] position [180] [-70]\nClone object in map [4] obj [GUI - Effect - End] position [130] [10]\nwait (1) seconds\nforever\n    if <<not <(World Time) = [0]>> and <not <(Parcicle Effects?) = [0]>>> then\n        Clone Effect (pick random (1) to (2))\n        wait (pick random (0.2) to (0.4)) seconds\n    end\nend\n\ndefine Setup\ndelete all of [_clone_data v]\nrepeat (6)\n    add [] to [_clone_data v]\nend\nhide\n\ndefine Set size to (n) (c)\nswitch costume to (size skip v)\nset size to (n) %\nswitch costume to (c)\n\nwhen I receive [tick v]\nif < (costume [name v]) contains [Map]?> then\n    if < (costume [name v]) contains [Next]?> then\n        Set size to (Zoom) (costume [number v])\n        go to x: (0) y: (0)\n        point in direction ((viewDirection) + (90))\n        move (((item (2) of [_clone_data v]) + (xmap)) * ((Zoom) / (100))) steps\n        turn left (90) degrees\n        move (((item (3) of [_clone_data v]) + (ymap)) * ((Zoom) / (100))) steps\n        turn right (90) degrees\n    end\nend\n\ndefine Clone Effect (n)\nrepeat (n)\n    switch costume to (effect+ - 1 v)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nif < (costume [name v]) contains [Effect+]?> then\n    point in direction ((pick random (1) to (36)) * (10))\n    forever\n        Set size to (Zoom) (costume [number v])\n        go to x: (0) y: (0)\n        point in direction ((viewDirection) + (90))\n        move (((item (1) of [_clone_data v]) + (xmap)) * ((Zoom) / (100))) steps\n        turn left (90) degrees\n        move (((item (2) of [_clone_data v]) + (ymap)) * ((Zoom) / (100))) steps\n        turn right (90) degrees\n    end\nend\nif < (costume [name v]) contains [GUI]?> then\n    if < (costume [name v]) contains [Effect]?> then\n        forever\n            if <(World Time) = [0]> then\n                show\n            else\n                hide\n            end\n        end\n    end\nend\n\nwhen [timer v] > (0.5)\nHide variable\ngo to [front v] layer\nswitch costume to (just a thumbnail v)\nclear graphic effects\nshow\npoint in direction (90)\nSet size to [100] (costume [number v])\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\n\n@Joystick\n\nwhen flag clicked\nhide\ngo to x: (-140) y: (-100)\ngo to [front v] layer\nclear graphic effects\nset size to (100) %\nswitch costume to (joystick - button v)\ncreate clone of (_myself_ v)\nswitch costume to (joystick - range v)\n\nwhen I start as a clone\nif < (costume [name v]) contains [Jump]?> then\nelse\n    forever\n        if <<(World Time) = [0]> or <(Joystick) = [0]>> then\n            hide\n        else\n            if <(Joystick) = [1]> then\n                show\n                clear graphic effects\n                go to x: (-140) y: (-100)\n            end\n            if <(Joystick) = [2]> then\n                show\n                clear graphic effects\n                go to x: (140) y: (-100)\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nif < (costume [name v]) contains [Jump]?> then\nelse\n    forever\n        if <<not <(World Time) = [0]>> and <not <(Joystick) = [0]>>> then\n            go to [front v] layer\n            if <(Joystick) = [3]> then\n                switch costume to (joystick - button2 v)\n                if <mouse down?> then\n                    repeat until <not <mouse down?>>\n                        go to (join [Joystick] [])\n                        point towards (mouse-pointer v)\n                        move (distance to [mouse-pointer v]) steps\n                        if <(distance to [(join [Joystick] []) v]) > [300]> then\n                            move ((300) - (distance to [(join [Joystick] []) v])) steps\n                        end\n                        replace item (7) of [input v] with (x position)\n                        replace item (8) of [input v] with (y position)\n                        replace item (9) of [input v] with (direction)\n                        replace item (3) of [_settings v] with ((round ((distance to [(join [Joystick] []) v]) * (10))) / (10))\n                        replace item (4) of [_settings v] with ((round ((direction) * (10))) / (10))\n                    end\n                else\n                    replace item (3) of [_settings v] with [0]\n                    replace item (4) of [_settings v] with [0]\n                end\n                Set size to [100] (costume [number v])\n            else\n                clear graphic effects\n                switch costume to (joystick - button v)\n                show\n                go to (join [Joystick] [])\n                if <(distance to [mouse-pointer v]) < [18]> then\n                    if <mouse down?> then\n                        repeat until <not <mouse down?>>\n                            go to (join [Joystick] [])\n                            point towards (mouse-pointer v)\n                            move (distance to [mouse-pointer v]) steps\n                            if <(distance to [(join [Joystick] []) v]) > [50]> then\n                                move ((50) - (distance to [(join [Joystick] []) v])) steps\n                            end\n                            replace item (3) of [_settings v] with ((round ((distance to [(join [Joystick] []) v]) * (10))) / (10))\n                            replace item (4) of [_settings v] with ((round ((direction) * (10))) / (10))\n                        end\n                    end\n                    Set size to ((size) + (((120) - (size)) * (0.1))) (costume [number v])\n                else\n                    Set size to ((size) + (((100) - (size)) * (0.2))) (costume [number v])\n                    replace item (3) of [_settings v] with [0]\n                    replace item (4) of [_settings v] with [0]\n                end\n            end\n        end\n    end\nend\n\ndefine Set size to (n) (c)\nswitch costume to (size skip v)\nset size to (n) %\nswitch costume to (c)\n\ndefine Check and ready to Move! (direction) (range)\nif <not <(Joystick) = [0]>> then\n    if <<<([abs v] of (range) ) > [40]> and <(Joystick) = [3]>> or <<([abs v] of (range) ) > [25]> and <not <(Joystick) = [3]>>>> then\n        if <<[30] < (direction)> and <(direction) < [150]>> then\n            replace item (1) of [input v] with [1]\n        else\n            replace item (1) of [input v] with [0]\n        end\n        if <<[-150] < (direction)> and <(direction) < [-30]>> then\n            replace item (2) of [input v] with [1]\n        else\n            replace item (2) of [input v] with [0]\n        end\n        if <([abs v] of (direction) ) < [60]> then\n            replace item (3) of [input v] with [1]\n        else\n            replace item (3) of [input v] with [0]\n        end\n        if <([abs v] of (direction) ) > [120]> then\n            replace item (4) of [input v] with [1]\n        else\n            replace item (4) of [input v] with [0]\n        end\n    else\n        replace item (1) of [input v] with [0]\n        replace item (2) of [input v] with [0]\n        replace item (3) of [input v] with [0]\n        replace item (4) of [input v] with [0]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Joystick) = [3]> then\n        if <mouse down?> then\n            go to (mouse-pointer v)\n            replace item (5) of [input v] with (x position)\n            replace item (6) of [input v] with (y position)\n            wait until <not <mouse down?>>\n        end\n    end\nend\n\nwhen I start as a clone\nif < (costume [name v]) contains [Jump]?> then\n\nwhen flag clicked\nforever\n    Check and ready to Move! (item (4) of [_settings v]) (item (3) of [_settings v])\n    if <<(World Time) = [0]> or <(Joystick) = [0]>> then\n        hide\n    else\n        if <(Joystick) = [1]> then\n            show\n            clear graphic effects\n            go to x: (-140) y: (-100)\n        end\n        if <(Joystick) = [2]> then\n            show\n            clear graphic effects\n            go to x: (140) y: (-100)\n        end\n    end\nend\n\n