ONE EYE WORLD_ a Mobile platformer
@Stage\n\nwhen [m v] key pressed\nif <(username) = [JellySulio]> then\n    set [mouse v] to (join ((mouse x) + (SCROLL X)) (join [,] ((mouse y) + (SCROLL Y))))\n    show variable [mouse v]\nelse\n    hide variable [mouse v]\nend\n\nwhen flag clicked\nswitch backdrop to (black v)\nhide variable [mouse v]\n\nwhen I receive [setup v]\nhide variable [mouse v]\n\nwhen I receive [lc v]\nswitch backdrop to (black v)\n\nwhen flag clicked\nset [levels unlocked v] to [1]\n\nwhen I receive [trans 2 v]\nif <(LEVEL) = [1]> then\n    switch backdrop to (bg v)\nelse\n    if <(LEVEL) = [2]> then\n        switch backdrop to (bg2 v)\n    else\n        switch backdrop to (bg3 v)\n    end\nend\n\n@player\n\nwhen I receive [play game v]\nset [attempts v] to [0]\nforever\n    broadcast (RESET v) and wait\n    broadcast (SETUP v) and wait\n    GAME ON\n    repeat until <(EXIT) > [50]>\n        TICK\n        broadcast (TICK v)\n        if <(PAUSE) = [1]> then\n            wait until <(PAUSE) = [0]>\n        end\n    end\n    if <(EXIT) = [WIN]> then\n        I WON!\n    else\n        broadcast (game over v)\n        start sound [Dun Dun Dunnn v]\n        GAME OVER\n        wait (1) seconds\n    end\nend\n\nwhen I receive [green flag v]\nhide\ngo to [front v] layer\n\nwhen flag clicked\nbroadcast (GREEN FLAG v) and wait\n\ndefine GAME ON\nbroadcast (grow v)\nset [x v] to [0]\nset [y v] to [0]\nif <(attempts) = [0]> then\n    if <(LEVEL) = [1]> then\n        set [scroll x v] to [2500]\n        set [scroll y v] to [0]\n    else\n        if <(LEVEL) = [2]> then\n            set [scroll x v] to [0]\n            set [scroll y v] to [0]\n        else\n            set [scroll x v] to [1500]\n            set [scroll y v] to [500]\n        end\n    end\nend\nset [sj v] to [16]\nset [pause v] to [0]\nset [can be hit v] to [1]\nset [sx v] to [0]\nset [sy v] to [0]\nset [jump power v] to [4]\nset [in air v] to [0]\nset [exit v] to []\nset [tick v] to [0]\nset [hp v] to [3]\nchange [attempts v] by (1)\npoint in direction (90)\nshow\nset size to (10) %\nset [ghost v] effect to (0)\nset [whirl v] effect to (0)\n\ndefine TICK\nswitch costume to (idle)\nif <(Tick) > [50]> then\n    if <<key (left arrow v) pressed?> or <<key (q v) pressed?> or <<key (a v) pressed?> or <<(mouse x) < [-10]> and <mouse down?>>>>> then\n        change [sx v] by (-1)\n    end\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<(mouse x) > [10]> and <mouse down?>>>> then\n        change [sx v] by (1)\n    end\n    if <(sx) > [8.889]> then\n        set [sx v] to [8.889]\n    end\n    if <[-8.889] > (sx)> then\n        set [sx v] to [-8.889]\n    end\n    if <<key (up arrow v) pressed?> or <<key (z v) pressed?> or <<key (w v) pressed?> or <<(mouse y) > (y position)> and <mouse down?>>>>> then\n        if <(IN AIR) < (jump power)> then\n            set [sy v] to (sj)\n            if <(IN AIR) < [1]> then\n                start sound [Jump v]\n            end\n        end\n    end\n    set [sx v] to ((sx) * (0.9))\n    change [sy v] by (-2)\n    CHANGE PLAYER X BY (sx)\n    CHANGE PLAYER Y BY (SY)\nend\nTEST DIE\nPOSITION\nchange [scroll x v] by (round (((X) - (SCROLL X)) / (10)))\nif <(SCROLL X) < [0]> then\n    set [scroll x v] to [0]\nend\nchange [scroll y v] by (round (((Y) - (SCROLL Y)) / (5)))\nif <(SCROLL Y) < [0]> then\n    set [scroll y v] to [0]\nend\nPOSITION\nif <(Y) < [-400]> then\n    set [exit v] to [die]\nend\nchange [tick v] by (1)\n\ndefine CHANGE PLAYER Y BY (sy)\nchange [y v] by (sy)\nchange [in air v] by (1)\nPOSITION\nTEST DIE\nif <touching (platforms v)?> then\n    repeat until <not <touching (platforms v)?>>\n        if <(sy) > [0]> then\n            change [y v] by (-1)\n        else\n            change [y v] by (1)\n            set [in air v] to [0]\n        end\n        POSITION\n        set [sy v] to [0]\n    end\nend\n\ndefine POSITION\ngo to x: ((X) - (SCROLL X)) y: ((Y) - (SCROLL Y))\n\ndefine CHANGE PLAYER X BY (sx)\nchange [x v] by (sx)\nPOSITION\nTEST DIE\nif <touching (platforms v)?> then\n    repeat (8)\n        change [y v] by (1)\n        POSITION\n        if <not <touching (platforms v)?>> then\n            stop [this script v]\n        end\n    end\n    change [y v] by (-7)\n    repeat until <not <touching (platforms v)?>>\n        if <(sx) > [0]> then\n            change [x v] by (-1)\n        else\n            change [x v] by (1)\n        end\n        POSITION\n        set [sx v] to [0]\n    end\nend\n\ndefine GAME OVER\nset [exit v] to []\nrepeat (5)\n    hide\n    wait (0.1) seconds\n    show\n    wait (0.1) seconds\nend\nhide\nwait (0.5) seconds\n\ndefine TEST DIE\nif <(LEVEL) = [1]> then\n    if <<touching color (#9fe1ff)?> and <<not <touching color (#c5dd59)?>> or <<not <touching color (#b3d02a)?>> or <<not <touching color (#6fa124)?>> or <<not <touching color (#ac6c48)?>> or <not <touching color (#ac6c48)?>>>>>>> then\n        set [exit v] to [DIE]\n    end\nelse\n    if <(LEVEL) = [2]> then\n        if <<touching color (#9fe1ff)?> and < or < or < or < or >>>>> then\n            set [exit v] to [DIE]\n        end\n    end\nend\n\ndefine I WON!\nrepeat (50)\n    set rotation style [all around v]\n    point towards (portal v)\n    turn right (65) degrees\n    move ((distance to [portal v]) / (2)) steps\n    change size by (-1)\n    change [ghost v] effect by (2)\n    change [whirl v] effect by (2)\nend\nhide\nchange [levels unlocked v] by (1)\nwait (1) seconds\nbroadcast (trans end v)\n\nwhen flag clicked\nset [idle v] to [3]\nforever\n    change [idle v] by (1)\n    if <(idle) > [21]> then\n        set [idle v] to [3]\n        wait (pick random (1) to (10)) seconds\n    end\nend\n\nwhen I receive [bounce v]\nset [sy v] to [15]\n\nwhen I receive [ouch v]\nif <(can be hit) = [1]> then\n    broadcast (hurt v)\nend\n\nwhen I receive [hurt v]\nset [can be hit v] to [0]\nchange [hp v] by (-1)\nif <(hp) = [0]> then\n    set [exit v] to [DIE]\n    stop [this script v]\nelse\n    start sound [Oops v]\n    repeat (5)\n        set [brightness v] effect to (-70)\n        wait (0.1) seconds\n        clear graphic effects\n        wait (0.1) seconds\n    end\nend\nset [can be hit v] to [1]\n\nwait until <(SCROLL X) = [0]>\nhide\nbroadcast (show v)\n\nwhen I receive [grow v]\nwait (2) seconds\nrepeat (8)\n    change size by (10)\nend\nchange size by (6)\n\nwhen I receive [trans end v]\nhide\nstop [other scripts in sprite v]\nhide\n\nset [attempts v] to [0]\n\nwhen I receive [volume set to ... v]\nset volume to (answer) %\n\nwhen I receive [sj v]\nset [sj v] to [30]\n\nwhen I receive [fm v]\nset [jump power v] to [999999999999999999]\n\nwhen I receive [hp imm v]\nset [can be hit v] to [0]\n\n@PLATFORMS\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nmove level\n\nwhen I receive [setup v]\nhide\nset size to (50) %\nRESET\nlevel list\n\ndefine POSITION (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I start as a clone\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine WORLD 1\nset [ghost v] effect to (0)\nswitch costume to (1 v)\ncreate clone of (_myself_ v)\nchange [x v] by (50)\nswitch costume to (2 v)\ncreate clone of (_myself_ v)\nchange [x v] by (50)\nswitch costume to (2 v)\ncreate clone of (_myself_ v)\nchange [x v] by (50)\nrepeat (4)\n    switch costume to (2 v)\n    create clone of (_myself_ v)\n    change [x v] by (50)\n    change [y v] by (0)\nend\nswitch costume to (3 v)\ncreate clone of (_myself_ v)\nchange [x v] by (-250)\nchange [y v] by (-64)\nrepeat (5)\n    switch costume to (5 v)\n    create clone of (_myself_ v)\n    change [x v] by (50)\n    change [y v] by (0)\nend\nswitch costume to (6 v)\ncreate clone of (_myself_ v)\nchange [x v] by (55)\nchange [y v] by (0)\nswitch costume to (18 v)\ncreate clone of (_myself_ v)\nchange [x v] by (55)\nchange [y v] by (0)\nswitch costume to (18 v)\ncreate clone of (_myself_ v)\nchange [x v] by (-50)\nchange [y v] by (56)\nswitch costume to (17 v)\ncreate clone of (_myself_ v)\nchange [x v] by (64)\nchange [y v] by (0)\ncreate clone of (_myself_ v)\nchange [x v] by (49)\nchange [y v] by (70)\nswitch costume to (1 v)\ncreate clone of (_myself_ v)\nchange [x v] by (0)\nchange [y v] by (-50)\nswitch costume to (4 v)\ncreate clone of (_myself_ v)\nchange [x v] by (0)\nchange [y v] by (-50)\nswitch costume to (12 v)\ncreate clone of (_myself_ v)\nchange [x v] by (0)\nchange [y v] by (-50)\nswitch costume to (12 v)\ncreate clone of (_myself_ v)\nchange [x v] by (-1)\nchange [y v] by (0)\nswitch costume to (18 v)\ncreate clone of (_myself_ v)\nchange [x v] by (0)\nchange [y v] by (50)\nswitch costume to (18 v)\ncreate clone of (_myself_ v)\nchange [x v] by (50)\nchange [y v] by (0)\nswitch costume to (5 v)\ncreate clone of (_myself_ v)\nchange [x v] by (0)\nchange [y v] by (-60)\nswitch costume to (5 v)\ncreate clone of (_myself_ v)\nchange [x v] by (0)\nchange [y v] by (120)\nswitch costume to (5 v)\ncreate clone of (_myself_ v)\nchange [x v] by (0)\nchange [y v] by (40)\nswitch costume to (2 v)\ncreate clone of (_myself_ v)\nchange [x v] by (64)\nchange [y v] by (0)\nswitch costume to (2 v)\ncreate clone of (_myself_ v)\nchange [x v] by (64)\nchange [y v] by (0)\nswitch costume to (3 v)\ncreate clone of (_myself_ v)\nchange [x v] by (261)\nchange [y v] by (0)\nswitch costume to (13 v)\ncreate clone of (_myself_ v)\nchange [x v] by (64)\nchange [y v] by (0)\nswitch costume to (14 v)\ncreate clone of (_myself_ v)\nchange [x v] by (64)\nchange [y v] by (0)\nswitch costume to (14 v)\ncreate clone of (_myself_ v)\nchange [x v] by (64)\nchange [y v] by (0)\nswitch costume to (15 v)\ncreate clone of (_myself_ v)\nchange [x v] by (100)\nchange [y v] by (-134)\nswitch costume to (1 v)\ncreate clone of (_myself_ v)\nchange [x v] by (50)\nchange [y v] by (0)\nrepeat (10)\n    switch costume to (2 v)\n    create clone of (_myself_ v)\n    change [x v] by (50)\n    change [y v] by (0)\nend\nswitch costume to (13 v)\nchange [x v] by (-300)\nchange [y v] by (100)\ncreate clone of (_myself_ v)\nswitch costume to (14 v)\nchange [x v] by (50)\nchange [y v] by (0)\ncreate clone of (_myself_ v)\nswitch costume to (14 v)\nchange [x v] by (50)\nchange [y v] by (0)\ncreate clone of (_myself_ v)\nswitch costume to (15 v)\nchange [x v] by (50)\nchange [y v] by (0)\ncreate clone of (_myself_ v)\nswitch costume to (13 v)\nchange [x v] by (-300)\nchange [y v] by (100)\ncreate clone of (_myself_ v)\nswitch costume to (14 v)\nchange [x v] by (50)\nchange [y v] by (0)\ncreate clone of (_myself_ v)\nswitch costume to (15 v)\nchange [x v] by (50)\nchange [y v] by (0)\ncreate clone of (_myself_ v)\nswitch costume to (3 v)\nchange [x v] by (364)\nchange [y v] by (-200)\ncreate clone of (_myself_ v)\nswitch costume to (1 v)\nchange [x v] by (100)\nchange [y v] by (200)\ncreate clone of (_myself_ v)\nswitch costume to (12 v)\nchange [x v] by (0)\nchange [y v] by (-50)\ncreate clone of (_myself_ v)\nset [ghost v] effect to (100)\nswitch costume to (2 v)\nchange [x v] by (-50)\nchange [y v] by (0)\ncreate clone of (_myself_ v)\nset [ghost v] effect to (0)\nswitch costume to (2 v)\nchange [x v] by (100)\nchange [y v] by (50)\ncreate clone of (_myself_ v)\nswitch costume to (2 v)\nchange [x v] by (50)\nchange [y v] by (0)\ncreate clone of (_myself_ v)\nswitch costume to (2 v)\nchange [x v] by (50)\nchange [y v] by (0)\ncreate clone of (_myself_ v)\nswitch costume to (3 v)\nchange [x v] by (50)\nchange [y v] by (0)\ncreate clone of (_myself_ v)\nswitch costume to (9 v)\nchange [x v] by (-150)\nchange [y v] by (-50)\ncreate clone of (_myself_ v)\nrepeat (2)\n    switch costume to (9 v)\n    change [x v] by (50)\n    change [y v] by (0)\n    create clone of (_myself_ v)\nend\nswitch costume to (6 v)\nchange [x v] by (50)\nchange [y v] by (0)\ncreate clone of (_myself_ v)\nswitch costume to (4 v)\nchange [x v] by (-2115)\nchange [y v] by (-142)\ncreate clone of (_myself_ v)\nswitch costume to (5 v)\nchange [x v] by (50)\nchange [y v] by (0)\ncreate clone of (_myself_ v)\nswitch costume to (12 v)\nchange [x v] by (-50)\nchange [y v] by (-50)\ncreate clone of (_myself_ v)\nrepeat (6)\n    switch costume to (5 v)\n    change [x v] by (50)\n    change [y v] by (0)\n    create clone of (_myself_ v)\nend\nswitch costume to (16 v)\nchange [x v] by (50)\nchange [y v] by (0)\ncreate clone of (_myself_ v)\nrepeat (3)\n    switch costume to (18 v)\n    change [x v] by (50)\n    change [y v] by (0)\n    create clone of (_myself_ v)\nend\nswitch costume to (12 v)\nchange [x v] by (20)\nchange [y v] by (0)\ncreate clone of (_myself_ v)\nswitch costume to (5 v)\nchange [x v] by (50)\nchange [y v] by (0)\ncreate clone of (_myself_ v)\nswitch costume to (5 v)\nchange [x v] by (50)\nchange [y v] by (0)\ncreate clone of (_myself_ v)\nswitch costume to (5 v)\nchange [x v] by (0)\nchange [y v] by (50)\ncreate clone of (_myself_ v)\nswitch costume to (5 v)\nchange [x v] by (0)\nchange [y v] by (50)\ncreate clone of (_myself_ v)\nswitch costume to (5 v)\nchange [x v] by (0)\nchange [y v] by (20)\ncreate clone of (_myself_ v)\nswitch costume to (5 v)\nchange [x v] by (50)\nchange [y v] by (0)\ncreate clone of (_myself_ v)\nswitch costume to (6 v)\nchange [x v] by (28)\nchange [y v] by (0)\ncreate clone of (_myself_ v)\nswitch costume to (6 v)\nchange [x v] by (0)\nchange [y v] by (-64)\ncreate clone of (_myself_ v)\nswitch costume to (5 v)\nchange [x v] by (-28)\nchange [y v] by (0)\ncreate clone of (_myself_ v)\nswitch costume to (16 v)\nchange [x v] by (28)\nchange [y v] by (-58)\ncreate clone of (_myself_ v)\nswitch costume to (5 v)\nchange [x v] by (-28)\nchange [y v] by (2)\ncreate clone of (_myself_ v)\nswitch costume to (12 v)\nchange [x v] by (580)\nchange [y v] by (-20)\ncreate clone of (_myself_ v)\nrepeat (10)\n    switch costume to (5 v)\n    change [x v] by (50)\n    change [y v] by (0)\n    create clone of (_myself_ v)\nend\nswitch costume to (16 v)\nchange [x v] by (64)\nchange [y v] by (0)\ncreate clone of (_myself_ v)\nswitch costume to (12 v)\nchange [x v] by (400)\nchange [y v] by (210)\ncreate clone of (_myself_ v)\nrepeat (10)\n    switch costume to (4 v)\n    change [x v] by (0)\n    change [y v] by (64)\n    create clone of (_myself_ v)\nend\nswitch costume to (1 v)\nchange [x v] by (0)\nchange [y v] by (64)\ncreate clone of (_myself_ v)\nswitch costume to (3 v)\nchange [x v] by (50)\nchange [y v] by (0)\ncreate clone of (_myself_ v)\nrepeat (10)\n    switch costume to (6 v)\n    change [x v] by (0)\n    change [y v] by (-64)\n    create clone of (_myself_ v)\nend\nswitch costume to (16 v)\nchange [x v] by (0)\nchange [y v] by (-64)\ncreate clone of (_myself_ v)\nswitch costume to (15 v)\nchange [x v] by (-200)\nchange [y v] by (160)\ncreate clone of (_myself_ v)\nswitch costume to (14 v)\nchange [x v] by (-64)\nchange [y v] by (0)\ncreate clone of (_myself_ v)\nswitch costume to (13 v)\nchange [x v] by (-64)\nchange [y v] by (0)\ncreate clone of (_myself_ v)\nrepeat (3)\n    switch costume to (15 v)\n    change [x v] by (-160)\n    change [y v] by (96)\n    create clone of (_myself_ v)\n    switch costume to (14 v)\n    change [x v] by (-64)\n    change [y v] by (0)\n    create clone of (_myself_ v)\n    switch costume to (13 v)\n    change [x v] by (-64)\n    change [y v] by (0)\n    create clone of (_myself_ v)\nend\nswitch costume to (15 v)\nchange [x v] by (320)\nchange [y v] by (96)\ncreate clone of (_myself_ v)\nswitch costume to (14 v)\nchange [x v] by (-64)\nchange [y v] by (0)\ncreate clone of (_myself_ v)\nswitch costume to (13 v)\nchange [x v] by (-64)\nchange [y v] by (0)\ncreate clone of (_myself_ v)\nrepeat (3)\n    switch costume to (15 v)\n    change [x v] by (320)\n    change [y v] by (96)\n    create clone of (_myself_ v)\n    switch costume to (14 v)\n    change [x v] by (-64)\n    change [y v] by (0)\n    create clone of (_myself_ v)\n    switch costume to (13 v)\n    change [x v] by (-64)\n    change [y v] by (0)\n    create clone of (_myself_ v)\nend\nset [ghost v] effect to (100)\nchange [x v] by (320)\nchange [y v] by (-40)\nswitch costume to (14 v)\nchange [x v] by (168)\nchange [y v] by (-648)\nrepeat (2)\n    switch costume to (14 v)\n    change [x v] by (64)\n    change [y v] by (0)\nend\nchange [x v] by (128)\nrepeat (10)\n    switch costume to (14 v)\n    change [x v] by (64)\n    create clone of (_myself_ v)\nend\nhide\n\ndefine WORLD 2\nclear graphic effects\nswitch costume to (19 v)\nchange [x v] by (0)\nchange [y v] by (0)\ncreate clone of (_myself_ v)\nrepeat (3)\n    switch costume to (20 v)\n    change [x v] by (50)\n    change [y v] by (0)\n    create clone of (_myself_ v)\nend\nswitch costume to (21 v)\nchange [x v] by (50)\nchange [y v] by (0)\ncreate clone of (_myself_ v)\nswitch costume to (30 v)\nchange [x v] by (-200)\nchange [y v] by (-50)\ncreate clone of (_myself_ v)\nrepeat (3)\n    switch costume to (27 v)\n    change [x v] by (50)\n    create clone of (_myself_ v)\nend\nswitch costume to (31 v)\nchange [x v] by (50)\ncreate clone of (_myself_ v)\nswitch costume to (19 v)\nchange [x v] by (260)\nchange [y v] by (0)\ncreate clone of (_myself_ v)\nrepeat (5)\n    switch costume to (20 v)\n    change [x v] by (50)\n    create clone of (_myself_ v)\nend\nswitch costume to (21 v)\nchange [x v] by (50)\ncreate clone of (_myself_ v)\nrepeat (5)\n    switch costume to (32 v)\n    change [x v] by (200)\n    change [y v] by (100)\n    create clone of (_myself_ v)\n    repeat (2)\n        switch costume to (33 v)\n        change [x v] by (64)\n        create clone of (_myself_ v)\n    end\n    switch costume to (34 v)\n    change [x v] by (64)\n    create clone of (_myself_ v)\n    switch costume to (34 v)\n    change [x v] by (-200)\n    change [y v] by (100)\n    create clone of (_myself_ v)\n    repeat (2)\n        switch costume to (33 v)\n        change [x v] by (-64)\n        create clone of (_myself_ v)\n    end\n    switch costume to (32 v)\n    change [x v] by (-64)\n    create clone of (_myself_ v)\nend\nswitch costume to (19 v)\nchange [x v] by ((64) * (9))\nchange [y v] by (-15)\ncreate clone of (_myself_ v)\nswitch costume to (30 v)\nchange [x v] by (0)\nchange [y v] by (-50)\ncreate clone of (_myself_ v)\nswitch costume to (20 v)\nchange [x v] by (14)\nchange [y v] by (50)\nrepeat (4)\n    change [x v] by (50)\n    create clone of (_myself_ v)\nend\nchange [y v] by (-50)\nrepeat (4)\n    change [x v] by (-50)\nend\nswitch costume to (27 v)\nrepeat (4)\n    change [x v] by (50)\n    create clone of (_myself_ v)\nend\nswitch costume to (21 v)\nchange [x v] by (50)\nchange [y v] by (50)\ncreate clone of (_myself_ v)\nswitch costume to (31 v)\nchange [y v] by (-50)\ncreate clone of (_myself_ v)\nset [ghost v] effect to (100)\nswitch costume to (20 v)\nchange [y v] by (140)\ncreate clone of (_myself_ v)\nset [ghost v] effect to (0)\nswitch costume to (34 v)\nchange [x v] by (-200)\nchange [y v] by (100)\ncreate clone of (_myself_ v)\nrepeat (2)\n    switch costume to (33 v)\n    change [x v] by (-64)\n    create clone of (_myself_ v)\nend\nswitch costume to (32 v)\nchange [x v] by (-64)\ncreate clone of (_myself_ v)\nswitch costume to (21 v)\nchange [x v] by (((-64) * (3)) - (30))\nchange [y v] by (50)\ncreate clone of (_myself_ v)\nswitch costume to (24 v)\nchange [y v] by (-50)\ncreate clone of (_myself_ v)\nswitch costume to (31 v)\nchange [y v] by (-64)\ncreate clone of (_myself_ v)\nswitch costume to (27 v)\nrepeat (12)\n    change [x v] by (-64)\n    create clone of (_myself_ v)\nend\nswitch costume to (30 v)\nchange [x v] by (-64)\ncreate clone of (_myself_ v)\nswitch costume to (22 v)\nchange [y v] by (64)\ncreate clone of (_myself_ v)\nswitch costume to (19 v)\nchange [y v] by (64)\ncreate clone of (_myself_ v)\nswitch costume to (17 v)\nchange [y v] by (-20)\nchange [x v] by ((64) * (12))\ncreate clone of (_myself_ v)\nrepeat (11)\n    change [x v] by (-64)\n    create clone of (_myself_ v)\nend\nswitch costume to (18 v)\nchange [y v] by (-54)\ncreate clone of (_myself_ v)\nrepeat (11)\n    change [x v] by (64)\n    create clone of (_myself_ v)\nend\nset [ghost v] effect to (100)\nswitch costume to (33 v)\nchange [y v] by (128)\nchange [x v] by (-165)\ncreate clone of (_myself_ v)\nrepeat (3)\n    change [y v] by (30)\n    change [x v] by (-170)\n    create clone of (_myself_ v)\nend\nswitch costume to (20 v)\nchange [y v] by (-300)\nchange [x v] by (1400)\ncreate clone of (_myself_ v)\nrepeat (10)\n    change [x v] by (70)\n    create clone of (_myself_ v)\nend\nRESET\nchange [x v] by (-100)\nchange [y v] by (1021)\nset [ghost v] effect to (0)\nswitch costume to (19 v)\ncreate clone of (_myself_ v)\nswitch costume to (20 v)\nchange [x v] by (64)\ncreate clone of (_myself_ v)\nswitch costume to (21 v)\nchange [x v] by (64)\ncreate clone of (_myself_ v)\nswitch costume to (30 v)\nchange [x v] by (-128)\nchange [y v] by (-64)\ncreate clone of (_myself_ v)\nswitch costume to (27 v)\nchange [x v] by (64)\ncreate clone of (_myself_ v)\nswitch costume to (31 v)\nchange [x v] by (64)\ncreate clone of (_myself_ v)\nrepeat (4)\n    change [y v] by (-70)\n    switch costume to (19 v)\n    create clone of (_myself_ v)\n    switch costume to (20 v)\n    change [x v] by (64)\n    create clone of (_myself_ v)\n    switch costume to (21 v)\n    change [x v] by (64)\n    create clone of (_myself_ v)\n    switch costume to (30 v)\n    change [x v] by (-128)\n    change [y v] by (-64)\n    create clone of (_myself_ v)\n    switch costume to (27 v)\n    change [x v] by (64)\n    create clone of (_myself_ v)\n    switch costume to (31 v)\n    change [x v] by (64)\n    create clone of (_myself_ v)\nend\nchange [y v] by (-70)\nchange [x v] by (64)\nswitch costume to (34 v)\nchange [y v] by (((-64) * (2)) - (70))\nchange [x v] by (-65)\ncreate clone of (_myself_ v)\nswitch costume to (33 v)\nchange [x v] by (-64)\ncreate clone of (_myself_ v)\nswitch costume to (32 v)\nchange [x v] by (-64)\ncreate clone of (_myself_ v)\n\ndefine RESET\nset [x v] to [-100]\nset [y v] to [-100]\n\nswitch costume to (34 v)\nchange [x v] by (-100)\ncreate clone of (_myself_ v)\nswitch costume to (33 v)\nchange [x v] by (-64)\ncreate clone of (_myself_ v)\nswitch costume to (32 v)\nchange [x v] by (-64)\ncreate clone of (_myself_ v)\n\ncreate clone of (_myself_ v)\nswitch costume to (33 v)\nchange [x v] by (-64)\ncreate clone of (_myself_ v)\nswitch costume to (32 v)\nchange [x v] by (-64)\ncreate clone of (_myself_ v)\n\ndefine level list\nif <(LEVEL) = [1]> then\n    WORLD 1\nelse\n    if <(LEVEL) = [2]> then\n        WORLD 2\n    else\n        World 3\n    end\nend\n\ndefine World 3\nRESET\nclear graphic effects\nswitch costume to (tile \(1\) v)\ncreate clone of (_myself_ v)\nswitch costume to (tile \(2\) v)\nrepeat (10)\n    change [x v] by (50)\n    create clone of (_myself_ v)\nend\nswitch costume to (tile \(3\) v)\nchange [x v] by (50)\ncreate clone of (_myself_ v)\nswitch costume to (tile \(13\) v)\nchange [y v] by (-50)\ncreate clone of (_myself_ v)\nswitch costume to (tile \(9\) v)\nrepeat (10)\n    change [x v] by (-50)\n    create clone of (_myself_ v)\nend\nswitch costume to (tile \(12\) v)\nchange [x v] by (-50)\ncreate clone of (_myself_ v)\nswitch costume to (tile \(14\) v)\nchange [x v] by (700)\nchange [y v] by (120)\ncreate clone of (_myself_ v)\nswitch costume to (tile \(15\) v)\nchange [x v] by (64)\ncreate clone of (_myself_ v)\nswitch costume to (tile \(16\) v)\nchange [x v] by (64)\ncreate clone of (_myself_ v)\nrepeat (2)\n    switch costume to (tile \(16\) v)\n    change [x v] by (-190)\n    change [y v] by (100)\n    create clone of (_myself_ v)\n    switch costume to (tile \(15\) v)\n    change [x v] by (-64)\n    create clone of (_myself_ v)\n    switch costume to (tile \(14\) v)\n    change [x v] by (-64)\n    create clone of (_myself_ v)\nend\nrepeat (2)\n    switch costume to (tile \(14\) v)\n    change [x v] by (200)\n    change [y v] by (100)\n    create clone of (_myself_ v)\n    switch costume to (tile \(15\) v)\n    change [x v] by (64)\n    create clone of (_myself_ v)\n    switch costume to (tile \(16\) v)\n    change [x v] by (64)\n    create clone of (_myself_ v)\nend\nswitch costume to (tile \(1\) v)\nchange [x v] by (260)\ncreate clone of (_myself_ v)\nswitch costume to (tile \(2\) v)\nrepeat (5)\n    change [x v] by (50)\n    create clone of (_myself_ v)\nend\nswitch costume to (tile \(3\) v)\nchange [x v] by (50)\ncreate clone of (_myself_ v)\nswitch costume to (tile \(13\) v)\nchange [y v] by (-50)\ncreate clone of (_myself_ v)\nswitch costume to (tile \(9\) v)\nrepeat (5)\n    change [x v] by (-50)\n    create clone of (_myself_ v)\nend\nswitch costume to (tile \(12\) v)\nchange [x v] by (-50)\ncreate clone of (_myself_ v)\nswitch costume to (tile \(14\) v)\nset [x v] to [1400]\nset [y v] to [200]\ncreate clone of (_myself_ v)\nswitch costume to (tile \(15\) v)\nrepeat (5)\n    change [x v] by (64)\n    create clone of (_myself_ v)\nend\nswitch costume to (tile \(16\) v)\nchange [x v] by (64)\ncreate clone of (_myself_ v)\n\nif <<(costume [number v]) < [18]> or <(costume [number v]) > [19]>> then\n\nPOSITION ((X) - (SCROLL X)) (((Y) + ((5) * ([sin v] of (((X) + (Tick)) * (10)) ))) - (SCROLL Y))\n\nswitch costume to (tile \(12\) v)\nchange [x v] by (-50)\ncreate clone of (_myself_ v)\n\nchange [x v] by (1)\n\nwhen I receive [lc v]\nhide\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [volume set to ... v]\nset volume to (answer) %\n\ndefine move level\nPOSITION ((X) - (SCROLL X)) ((Y) - (SCROLL Y))\nif <<(costume [number v]) < [18]> or <(costume [number v]) > [19]>> then\n    show\nelse\n    set [ghost v] effect to (0)\n    go [backward v] (costume [number v]) layers\nend\n\n@COINS\n\nwhen I receive [tick v]\nreact\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [setup v]\nhide\nset size to (20) %\nif <(LEVEL) < [3]> then\n    set [collected max v] to [5]\nelse\n    set [collected max v] to [0]\nend\nset [coins v] to [0]\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    WORLD 1 COINS\nelse\n    if <(LEVEL) = [2]> then\n        World 2 coins\n    end\nend\nchange [x v] by (-99999999999)\n\ndefine POSITION (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\ndefine WORLD 1 COINS\nset [ghost v] effect to (0)\nchange [x v] by (200)\nchange [y v] by (0)\ncreate clone of (_myself_ v)\nchange [x v] by (200)\nchange [y v] by (50)\ncreate clone of (_myself_ v)\nchange [x v] by (565)\nchange [y v] by (0)\ncreate clone of (_myself_ v)\nchange [x v] by (675)\nchange [y v] by (0)\ncreate clone of (_myself_ v)\nset [ghost v] effect to (100)\nchange [x v] by (100)\nchange [y v] by (-10)\ncreate clone of (_myself_ v)\n\ndefine World 2 coins\nset [ghost v] effect to (0)\nchange [x v] by (649)\nchange [y v] by (1197)\ncreate clone of (_myself_ v)\nrepeat (3)\n    change [x v] by (-170)\n    change [y v] by (30)\n    create clone of (_myself_ v)\nend\nchange [x v] by (-150)\nchange [y v] by (-80)\ncreate clone of (_myself_ v)\n\nwhen I receive [lc v]\nhide\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [volume set to ... v]\nset volume to (answer) %\n\nset [levels unlocked v] to [3]\n\ndefine react\nif <(Tick) > [50]> then\n    next costume\n    POSITION ((X) - (SCROLL X)) (((Y) + ((5) * ([sin v] of (((X) + (Tick)) * (10)) ))) - (SCROLL Y))\n    if <(coins) = (COLLECTED MAX)> then\n        broadcast (CAN GO NEXT v)\n    end\n    if <touching (player v)?> then\n        change [coins v] by (1)\n        start sound [nsmb_coin v]\n        if <(coins) = (COLLECTED MAX)> then\n            broadcast (CAN GO NEXT v)\n        end\n        delete this clone\n    end\nend\n\n@music\n\nwhen I receive [game over v]\nstop [other scripts in sprite v]\n\nwhen I receive [grow v]\nstop [other scripts in sprite v]\nforever\n    if <(LEVEL) = [1]> then\n        play sound [Grasslands Theme v] until done\n    else\n        if <(LEVEL) = [2]> then\n            play sound [Desert Theme v] until done\n        else\n            play sound [Dungeon Theme v] until done\n        end\n    end\nend\n\nwhen I receive [volume set to ... v]\nset volume to (answer) %\n\nwhen I receive [lvl select v]\nstop [other scripts in sprite v]\nforever\n    play sound [Intro Theme v] until done\nend\n\nwhen I receive [lc v]\nstop [other scripts in sprite v]\nforever\n    play sound [Worldmap Theme v] until done\nend\n\n@PORTAL\n\nwhen I receive [tick v]\nif <(Tick) > [50]> then\n    POSITION ((X) - (SCROLL X)) ((Y) - (SCROLL Y))\n    LEVEL TEST\n    next costume\n    if <(portal open?) = [1]> then\n        change [color v] effect by (5)\n    else\n        clear graphic effects\n    end\nend\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [setup v]\nhide\nclear graphic effects\nset [portal open? v] to [0]\nset size to (70) %\nset [coins v] to [0]\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    WORLD MODEL\nelse\n    if <(LEVEL) = [2]> then\n        Portal 2\n    else\n        portal 3\n    end\nend\n\ndefine POSITION (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\ndefine WORLD MODEL\nset size to (70) %\nset [ghost v] effect to (0)\nchange [x v] by (2300)\nchange [y v] by (0)\n\nwhen I receive [can go next v]\nset [portal open? v] to [1]\nset [brightness v] effect to (40)\npoint in direction (90)\n\ndefine LEVEL TEST\nif <<(portal open?) = [1]> and <touching (player v)?>> then\n    set [exit v] to [WIN]\nend\n\ndefine Portal 2\nset size to (70) %\nset [ghost v] effect to (0)\nchange [x v] by (-146)\nchange [y v] by (40)\n\ndefine portal 3\nset size to (70) %\nset [ghost v] effect to (0)\nchange [x v] by (1450)\nchange [y v] by (500)\n\nwhen I receive [lc v]\nhide\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [volume set to ... v]\nset volume to (answer) %\n\n@big coin\n\nwhen I receive [tick v]\nmove BIG COIN\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [setup v]\nhide\nset size to (50) %\nset [color v] effect to (20)\nset [big coin v] to [NO]\nset [coins v] to [0]\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    WORLD 1 COINS\nelse\n    if <(LEVEL) = [2]> then\n        World 2 coins\n    end\nend\nchange [x v] by (-99999999999)\n\ndefine POSITION (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\ndefine WORLD 1 COINS\nset [ghost v] effect to (0)\nchange [x v] by (2849)\nchange [y v] by (186)\ncreate clone of (_myself_ v)\n\ndefine World 2 coins\nset [ghost v] effect to (0)\nchange [x v] by (2067)\nchange [y v] by (998)\ncreate clone of (_myself_ v)\n\nwhen I receive [lc v]\nhide\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [volume set to ... v]\nset volume to (answer) %\n\ndefine move BIG COIN\nif <(Tick) > [50]> then\n    next costume\n    change [color v] effect by (5)\n    POSITION ((X) - (SCROLL X)) ((Y) - (SCROLL Y))\n    if <touching (player v)?> then\n        set [big coin v] to [YES]\n        start sound [nsmb_coin v]\n        if <(coins) = (COLLECTED MAX)> then\n            broadcast (CAN GO NEXT v)\n        end\n        delete this clone\n    end\nend\n\n@Sprite1\n\nwhen I receive [lc v]\nhide\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [volume set to ... v]\nset volume to (answer) %\n\n@entities\n\ndefine move enemy\nset rotation style [left-right v]\npoint towards (player v)\nclear graphic effects\nif <(type) = [3]> then\n    switch costume to (hitbox 2 v)\nelse\n    switch costume to (hitbox v)\nend\nset [old x v] to (x)\nif <(type) = [3]> then\n    set size to (60) %\n    set [brightness v] effect to (-70)\n    set [x v] to (round ((orig x) + ((move x) * ([abs v] of (((((Tick) / (div)) + (offset)) mod (2)) - (1)) ))))\n    set [y v] to (round ((orig y) + ((move y) * ([abs v] of (((((Tick) / (div)) + (offset)) mod (2)) - (1)) ))))\nelse\n    set size to (100) %\n    set [x v] to (round ((orig x) + ((move x) * ([abs v] of (((((Tick) / (div)) + (offset)) mod (2)) - (1)) ))))\n    set [y v] to (round ((orig y) + ((move y) * ([abs v] of (((((Tick) / (div)) + (offset)) mod (2)) - (1)) ))))\nend\nif <<touching (player v)?> and <<([y v] of [player v]) > (y)> and <(SY) < [0]>>> then\n    start sound [pop v]\n    broadcast (bounce v)\n    switch costume to (dead v)\n    delete this clone\nend\nif <<touching (player v)?> and <<(SY) = [0]> or <(SY) > [0]>>> then\n    broadcast (ouch v)\nend\nposition\nif <(type) = [3]> then\n    switch costume to ((((Tick) * ((div) / (100))) mod (12)) + (76))\nelse\n    switch costume to ((((Tick) * ((div) / (100))) mod (56)) + (1))\n    if <<touching (player v)?> and <<([y v] of [player v]) > (y)> and <(SY) < [0]>>> then\n        switch costume to (dead v)\n    end\nend\n\n\n\ndefine position at x (x) y (y)\ngo to x: (x) y: (y)\nif <(type) = [3]> then\n    set size to (60) %\nelse\n    set size to (100) %\nend\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    set [visible v] to [1]\nelse\n    hide\n    set [visible v] to [0]\nend\n\ndefine position\nposition at x ((x) - (SCROLL X)) y ((y) - (SCROLL Y))\n\ndefine New enemy at x: (x) y: (y) With costume: (costume)\ncreate clone of (_myself_ v)\nset rotation style [left-right v]\nswitch costume to (costume)\nset [type v] to [1]\nset [x v] to (x)\nset [y v] to (y)\nset [orig x v] to (x)\nset [orig y v] to (y)\nset [old x v] to [0]\n\ndefine then glide (time) secs to x: (x) y: (y)\nset [type v] to [2]\nset [orig x v] to (x)\nset [orig y v] to (y)\nset [move x v] to ((x) - (x))\nset [move y v] to ((y) - (y))\nset [div v] to ((30) * (time))\nset [offset v] to [0]\n\ndefine then fly (speed) secs to x: (x) y: (y)\nset [type v] to [3]\nset [orig x v] to (x)\nset [orig y v] to (y)\nset [move x v] to ((x) - (x))\nset [move y v] to ((y) - (y))\nset [div v] to ((30) * (speed))\nset [offset v] to [0]\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [setup v]\nhide\nset [type v] to []\nif <(LEVEL) = [1]> then\n    New enemy at x: [410] y: [12] With costume: [1]\n    then glide [3] secs to x: [620] y: [12]\n    New enemy at x: [650] y: [12] With costume: [62]\n    then fly [2] secs to x: [800] y: [12]\n    New enemy at x: [850] y: [2] With costume: [1]\n    then glide [2] secs to x: [1050] y: [2]\n    New enemy at x: [1235] y: [69] With costume: [1]\n    then glide [1] secs to x: [1375] y: [69]\n    New enemy at x: [1135] y: [-122] With costume: [1]\n    then glide [6] secs to x: [1470] y: [-122]\n    New enemy at x: [1720] y: [-122] With costume: [1]\n    then glide [6] secs to x: [1500] y: [-122]\n    New enemy at x: [1830] y: [177] With costume: [1]\n    then glide [2] secs to x: [1970] y: [177]\n    New enemy at x: [1535] y: [273] With costume: [1]\n    then glide [2] secs to x: [1695] y: [273]\n    New enemy at x: [1250] y: [368] With costume: [1]\n    then glide [3] secs to x: [1395] y: [368]\n    New enemy at x: [1155] y: [561] With costume: [1]\n    then glide [2] secs to x: [1295] y: [561]\n    New enemy at x: [2245] y: [675] With costume: [62]\n    then fly [1] secs to x: [2500] y: [675]\n    New enemy at x: [2245] y: [600] With costume: [62]\n    then fly [2] secs to x: [2500] y: [600]\n    New enemy at x: [2245] y: [525] With costume: [62]\n    then fly [3] secs to x: [2500] y: [525]\n    New enemy at x: [2245] y: [450] With costume: [62]\n    then fly [4] secs to x: [2500] y: [450]\n    New enemy at x: [2245] y: [375] With costume: [62]\n    then fly [5] secs to x: [2500] y: [375]\n    New enemy at x: [2245] y: [300] With costume: [62]\n    then fly [6] secs to x: [2500] y: [300]\n    New enemy at x: [2245] y: [225] With costume: [62]\n    then fly [7] secs to x: [2500] y: [225]\n    New enemy at x: [2245] y: [150] With costume: [62]\n    then fly [8] secs to x: [2500] y: [150]\nelse\n    if <(LEVEL) = [2]> then\n        New enemy at x: [350] y: [-100] With costume: [1]\n        then glide [2] secs to x: [500] y: [-100]\n        New enemy at x: [660] y: [-100] With costume: [1]\n        then glide [2] secs to x: [530] y: [-100]\n        New enemy at x: [850] y: [-10] With costume: [1]\n        then glide [2] secs to x: [1060] y: [-10]\n        New enemy at x: [640] y: [90] With costume: [1]\n        then glide [2] secs to x: [855] y: [90]\n        New enemy at x: [850] y: [190] With costume: [1]\n        then glide [2] secs to x: [1060] y: [190]\n        New enemy at x: [640] y: [290] With costume: [1]\n        then glide [2] secs to x: [855] y: [290]\n        New enemy at x: [850] y: [390] With costume: [1]\n        then glide [2] secs to x: [1060] y: [390]\n        New enemy at x: [640] y: [490] With costume: [1]\n        then glide [2] secs to x: [855] y: [490]\n        New enemy at x: [850] y: [590] With costume: [1]\n        then glide [2] secs to x: [1060] y: [590]\n        New enemy at x: [640] y: [690] With costume: [1]\n        then glide [2] secs to x: [855] y: [690]\n        New enemy at x: [850] y: [790] With costume: [1]\n        then glide [2] secs to x: [1060] y: [790]\n        New enemy at x: [640] y: [890] With costume: [1]\n        then glide [2] secs to x: [855] y: [890]\n    else\n        New enemy at x: [-100] y: [-50] With costume: [1]\n        then glide [2] secs to x: [160] y: [-50]\n        New enemy at x: [450] y: [-50] With costume: [1]\n        then glide [2] secs to x: [190] y: [-50]\n        New enemy at x: [590] y: [20] With costume: [1]\n        then glide [2] secs to x: [730] y: [20]\n        New enemy at x: [400] y: [120] With costume: [1]\n        then glide [2] secs to x: [550] y: [120]\n        New enemy at x: [85] y: [220] With costume: [1]\n        then glide [2] secs to x: [225] y: [220]\n        New enemy at x: [285] y: [320] With costume: [1]\n        then glide [2] secs to x: [430] y: [320]\n        New enemy at x: [615] y: [420] With costume: [1]\n        then glide [2] secs to x: [760] y: [420]\n    end\nend\nNew enemy at x: [9999] y: [9] With costume: [1]\nthen glide [2] secs to x: [9999] y: [9]\n\nwhen I receive [tick v]\nmove in level\n\nsay [ouch]\n\nwhen I receive [lc v]\nhide\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [volume set to ... v]\nset volume to (answer) %\n\ndefine move in level\nif <(Tick) > [50]> then\n    if <(type) > []> then\n        if <(type) = [3]> then\n            set size to (60) %\n            move enemy\n        else\n            set size to (100) %\n            move enemy\n        end\n    end\nend\n\n@coins noter\n\nwhen I receive [tick v]\nshow\nif <(length of (coins)) < (digit)> then\n    digit (0)\nelse\n    digit ((letter (digit) of (coins)) + (1))\nend\n\ndefine digit (cost)\nif <(cost) = (costume [number v])> then\n    set size to (30) %\nelse\n    switch costume to (cost)\n    set size to (30) %\nend\n\nwhen I receive [setup v]\nshow\nwait (0) seconds\ngo to x: (-170) y: (136)\nswitch costume to (0 v)\ngo to [front v] layer\nset [digit v] to [1]\n\nwhen I receive [lvl select v]\nhide\nstop [other scripts in sprite v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [lc v]\nhide\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [volume set to ... v]\nset volume to (answer) %\n\n@BG\n\nwhen I receive [tick v]\nshow\nset [ghost v] effect to (0)\nswitch costume to (LEVEL)\nif <(costume [number v]) = [3]> then\n    set size to (135) %\nelse\n    set size to (100) %\nend\ngo to [back v] layer\ngo to x: (0) y: (0)\n\nwhen flag clicked\nshow\nswitch costume to (bg v)\ngo to [back v] layer\ngo to x: (0) y: (0)\n\nwhen I receive [lvl select v]\nset size to (100) %\nswitch costume to (costume3 v)\n\nwhen I receive [lc v]\ngo to [back v] layer\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nhide\nbroadcast (gg v)\n\nwhen I receive [volume set to ... v]\nset volume to (answer) %\n\n@Sprite2\n\nwhen flag clicked\nshow\nset size to (100) %\n\nwhen I receive [tick v]\ngo to [front v] layer\n\nwhen flag clicked\n\nwhen I receive [music 1 v]\nforever\n    if <(Tick) > [50]> then\n        broadcast (transition v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [lvl select v]\ngo to [front v] layer\n\n@thumbnail\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\ngo to [front v] layer\n\nwhen I receive [tick v]\ngo to [front v] layer\ngo to [front v] layer\n\nwhen [timer v] > (check)\ngo to [front v] layer\n\n@Icon\n\nwhen I receive [tick v]\nshow\ngo to x: (180) y: (145)\n\nwhen I receive [lvl select v]\nhide\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [lc v]\nhide\nstop [other scripts in sprite v]\nhide\n\n@Sprite3\n\nwhen I receive [tick v]\nshow\nset size to (30) %\ngo to x: (210) y: (141)\nswitch costume to (([hp v] of [player v]) + (1))\n\nwhen I receive [lvl select v]\nhide\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [lc v]\nhide\nstop [other scripts in sprite v]\nhide\n\n@not in use\n\n@Text\n\nwhen I receive [intro done v]\nset [a v] to [1]\nhide\nerase all\nstop [other scripts in sprite v]\n\nwhen flag clicked\nhide\n\nwhen I receive [ok v]\nset [a v] to [1]\ndelete this clone\n\ndefine Map Talk (text) With Sound (value)\nset [dialogue mode v] to [1]\nif <(light) = [-100]> then\n    set [brightness v] effect to (100)\nelse\n    set [brightness v] effect to (-100)\nend\ngo to x: (-220) y: (-110)\nset [a v] to [0]\nset [b v] to [1]\ngo to [front v] layer\nhide\nbroadcast (show tb v) and wait\nrepeat (length of (text))\n    show\n    set [a v] to [0]\n    if <(x position) > [150]> then\n        change y by (-20)\n        set x to (-220)\n    end\n    change x by ((size) * (0.12))\n    if <(letter (b) of (text)) = [ ]> then\n        switch costume to (  v)\n        change [b v] by (1)\n        create clone of (_myself_ v)\n    else\n        switch costume to (letter (b) of (text))\n        change [b v] by (1)\n    end\n    create clone of (_myself_ v)\nend\nif <(letter (b) of (name)) = [-]> then\n    wait (0.001) seconds\nelse\n    wait until <mouse down?>\nend\nhide\nset [dialogue mode v] to [0]\nbroadcast (ok v) and wait\n\nwhen I start as a clone\nrepeat until <(a) = [1]>\n    go to [front v] layer\n    show\nend\ndelete this clone\n\nMap Talk (join [apple ] (join [apple ] [banana])) With Sound (1)\n\nMap Talk [omg your game is so so broken!!!!!] With Sound (1)\n\nwhen [d v] key pressed\n\nstop [this script v]\n\nwhen I receive [talk v]\nMap Talk (join (join [Hello,] (username)) [\(tap or click to continue\)]) With Sound (1)\nMap Talk [Ready to play?] With Sound (1)\nMap Talk [If You're ready, click to begin!] With Sound (1)\nMap Talk [\(Don't forget to love and fave for extra cheat codes\)] With Sound (1)\nMap Talk (join [Leave a follow for more like this, ] (username)) With Sound (1)\nMap Talk [Oh, Just joking :D] With Sound (1)\nMap Talk [Ok, so let's start!] With Sound (1)\nbroadcast (intro done v)\n\nwhen [timer v] > (check)\nhide\n\nwhen I receive [help v]\nMap Talk [Oh! you want help?] With Sound (1)\nMap Talk [You know, it's really easy to play to my platformer] With Sound (1)\nMap Talk [Use WASD, ZQSD for French keyboarders , and sides of the screen if you want to play on mobile] With Sound (1)\nMap Talk [Avoid enemies and water and collect ALL coins to open the portal] With Sound (1)\nMap Talk [there are cheat codes in the pause menu only available if you love and fave.] With Sound (1)\nMap Talk [There are also invisible platforms but there are signs to help you!] With Sound (1)\nMap Talk [G.L] With Sound (1)\n\nwhen I receive [locked v]\nMap Talk [This level's locked :\(] With Sound (1)\n\nwhen I receive [volume v]\nMap Talk [For the moment, the only setting is volume.] With Sound (1)\nMap Talk [Which volume value do you desire? \(use a number input\)] With Sound (1)\nask [Which volume value do you desire?] and wait\nbroadcast (volume set to ... v)\nMap Talk (join [Good! now volume's set to ] (answer)) With Sound (1)\n\nwhen I receive [volume set to ... v]\nset volume to (answer) %\n\nwhen I receive [cheater... v]\nMap Talk [Hmmm... so you wanna cheat....] With Sound (1)\nif <[project lovers v] contains (username)?> then\n    Map Talk [OK I'll tell you the cheat codes] With Sound (1)\n    Map Talk [In fact, they are randomly generated, so you can't cheat on them!] With Sound (1)\n    Map Talk [Mwahahahahahahahaha!!!!!!] With Sound (1)\n    Map Talk (join [So the hp code is ] (hp code)) With Sound (1)\n    Map Talk (join [The Superjump code is  ] (superjump code)) With Sound (1)\n    Map Talk (join [And the fly code is ] (fly code)) With Sound (1)\n    Map Talk [Wanna test one of these random codes?] With Sound (1)\n    Map Talk [so let's get a try!] With Sound (1)\n    ask [type a code] and wait\n    if <(answer) = (superjump code)> then\n        broadcast (sj v)\n        Map Talk [So cool! you got super jump !!!!] With Sound (1)\n    else\n        if <(answer) = (fly code)> then\n            broadcast (fm v)\n            Map Talk [Now you're flappy bird :D] With Sound (1)\n        else\n            if <(answer) = (hp code)> then\n                broadcast (hp imm v)\n                Map Talk [You're now immune against enemies] With Sound (1)\n            else\n                Map Talk [this code isn't valid, sorry] With Sound (1)\n            end\n        end\n    end\nelse\n    Map Talk [Then please put a heart and a little star on my project] With Sound (1)\nend\nMap Talk [don't forget that the codes are randomly generated at each game over] With Sound (1)\n\nwhen I receive [lc v]\nif <(levels unlocked) = [4]> then\n    Map Talk [you actually made it!] With Sound (1)\n    if <[project lovers v] contains (username)?> then\n        Map Talk [thx for the love and fave! Thanks to you, this project got featured!!] With Sound (1)\n        Map Talk [Follow for more stuff like this!] With Sound (1)\n    else\n        Map Talk [Levels are hard to create ] With Sound (1)\n        Map Talk [And I don't have time to create them because of school] With Sound (1)\n        Map Talk [So please put a heart and a little star as a contribution!\] With Sound (1)\n    end\n    Map Talk [I'll soon continue the serie of this game] With Sound (1)\n    Map Talk [If you want, you can quit or replay levels!] With Sound (1)\n    Map Talk [See ya!] With Sound (1)\nend\n\n@detector\n\nwhen flag clicked\nhide\nset [clone id v] to [0]\ncreate clone of (_myself_ v)\nwait (0.2) seconds\nset [clone id v] to [1]\ncreate clone of (_myself_ v)\nforever\n    wait until <<(LOVED__) = [1]> and <(FAVED___) = [1]>>\n    wait (1) seconds\n    if <[project lovers v] contains (username)?> then\n        delete (item # of (username) in [project lovers v]) of [project lovers 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 (costume2 v)\n        set [ghost v] effect to (100)\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 [project lovers 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 (pick random (1) to (4))\n        set [ghost v] effect to (100)\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 id) = [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 id) = [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\nwhen flag clicked\nset [timer v] to [0]\nforever\n    change [timer v] by (.097)\nend\n\nwhen flag clicked\nreset timer\nforever\n    set [check v] to (timer)\nend\n\nwhen [timer v] > (check)\nhide\nif <not <[project lovers v] contains (username)?>> then\n    go to [front v] layer\n    clear graphic effects\n    wait (1) seconds\n    show\n    go to x: (0) y: (-100)\n    reset timer\n    switch costume to (costume1 v)\n    set [ghost v] effect to (100)\n    repeat until <(timer) > [3.5]>\n        change y by ((y position) / (-15))\n        change [ghost v] effect by (-3)\n    end\n    reset timer\n    repeat until <(timer) > [3.5]>\n        change y by (((y position) - (-100)) / (-15))\n        change [ghost v] effect by (10)\n    end\nelse\n    go to [front v] layer\n    show\n    go to x: (0) y: (-100)\n    reset timer\n    switch costume to (5 v)\n    set [ghost v] effect to (100)\n    repeat until <(timer) > [3.5]>\n        change y by ((y position) / (-15))\n        change [ghost v] effect by (-3)\n    end\n    reset timer\n    repeat until <(timer) > [3.5]>\n        change y by (((y position) - (-100)) / (-15))\n        change [ghost v] effect by (10)\n    end\nend\n\nhide\n\n@logo\n\nwhen flag clicked\nshow\ngo to [front v] layer\ngo to x: (0) y: (60)\nset size to (100) %\ncreate clone of (_myself_ v)\nforever\n    next costume\n    if <(costume [number v]) > [80]> then\n        switch costume to (crunch v)\n    end\nend\n\nwhen I start as a clone\ngo to x: (0) y: (0)\ngo to [front v] layer\ngo [backward v] (7) layers\nswitch costume to (d v)\nset size to (100) %\nbroadcast (talk v) and wait\nrepeat (100)\n    clear graphic effects\nend\nbroadcast (lvl select v)\nrepeat (100)\n    change [ghost v] effect by (1)\nend\nbroadcast (transition v)\n\nwhen [timer v] > (check)\nhide\n\nwhen flag clicked\ndelete this clone\n\nwhen I receive [intro done v]\nrepeat (100)\n    change [whirl v] effect by (10)\n    change [ghost v] effect by ((100) / (100))\nend\n\nwhen I receive [lvl select v]\nwait (5) seconds\nstop [other scripts in sprite v]\n\nforever\n\n@play\n\ndefine Rotate\nrepeat (10)\n    change [rotation vel v] by (0.1)\n    turn right (rotation vel) degrees\nend\nrepeat (10)\n    change [rotation vel v] by (-0.1)\n    turn right (rotation vel) degrees\nend\nrepeat (10)\n    change [rotation vel v] by (-0.1)\n    turn right (rotation vel) degrees\nend\nrepeat (10)\n    change [rotation vel v] by (0.1)\n    turn right (rotation vel) degrees\nend\nrepeat (10)\n    change [rotation vel v] by (-0.1)\n    turn right (rotation vel) degrees\nend\nrepeat (10)\n    change [rotation vel v] by (0.1)\n    turn right (rotation vel) degrees\nend\nrepeat (10)\n    change [rotation vel v] by (0.1)\n    turn right (rotation vel) degrees\nend\nrepeat (10)\n    change [rotation vel v] by (-0.1)\n    turn right (rotation vel) degrees\nend\n\nwhen I receive [lvl select v]\npoint in direction (90)\nset size to (100) %\nswitch costume to (pn v)\nshow\ngo to x: (0) y: (300)\nwait (1) seconds\nglide (1) secs to x: (0) y: (-10)\nforever\n    Rotate\nend\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nif <(active) = [0]> then\n    if <(dialogue mode) = [0]> then\n        set [active v] to [1]\n        broadcast (lc v)\n        repeat (50)\n            change [ghost v] effect by (2)\n        end\n        hide\n        stop [other scripts in sprite v]\n    end\nend\nif <(active) = [1]> then\n    hide\n    stop [other scripts in sprite v]\nend\n\nwhen flag clicked\nset [rotation vel v] to [0]\nset [active v] to [0]\n\ndefine color change\nif <<touching (mouse-pointer v)?> and <mouse down?>> then\n    set [color v] effect to (100)\nelse\n    if <touching (mouse-pointer v)?> then\n        set [color v] effect to (150)\n    else\n        set [color v] effect to (0)\n    end\nend\n\nwhen I receive [lvl select v]\nforever\n    color change\nend\n\n@Window\n\nwhen I receive [gg v]\ngo to x: (2) y: (0)\ngo to [front v] layer\ngo [backward v] (3) layers\nshow\nset [ghost v] effect to (100)\nrepeat (50)\n    change [ghost v] effect by (-2)\nend\nbroadcast (montrer les niveaux v)\n\nwhen flag clicked\nhide\n\nwhen I receive [play game v]\nhide\n\nwhen I receive [hide menu v]\nhide\n\n@pause\n\nwhen I receive [pause v]\ngo to x: (0) y: (10)\ngo to [front v] layer\ngo [backward v] (4) layers\nshow\n\nwhen I receive [lc v]\nhide\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [lvl select v]\nhide\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [replay v]\nhide\n\nwhen flag clicked\nhide\n\n@opt\n\nwhen I receive [lvl select v]\npoint in direction (90)\nset size to (100) %\nshow\nswitch costume to (opt v)\ngo to x: (300) y: (-105)\nwait (1) seconds\nglide (1) secs to x: (130) y: (-105)\nforever\n    Rotate\nend\n\nwhen I receive [lc v]\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nhide\nstop [other scripts in sprite v]\n\ndefine Rotate\nrepeat (10)\n    change [rotation vel v] by (0.1)\n    turn right (rotation vel) degrees\nend\nrepeat (10)\n    change [rotation vel v] by (-0.1)\n    turn right (rotation vel) degrees\nend\nrepeat (10)\n    change [rotation vel v] by (-0.1)\n    turn right (rotation vel) degrees\nend\nrepeat (10)\n    change [rotation vel v] by (0.1)\n    turn right (rotation vel) degrees\nend\nrepeat (10)\n    change [rotation vel v] by (-0.1)\n    turn right (rotation vel) degrees\nend\nrepeat (10)\n    change [rotation vel v] by (0.1)\n    turn right (rotation vel) degrees\nend\nrepeat (10)\n    change [rotation vel v] by (0.1)\n    turn right (rotation vel) degrees\nend\nrepeat (10)\n    change [rotation vel v] by (-0.1)\n    turn right (rotation vel) degrees\nend\n\ndefine cc\nif <<touching (mouse-pointer v)?> and <mouse down?>> then\n    set [color v] effect to (100)\nelse\n    if <touching (mouse-pointer v)?> then\n        set [color v] effect to (150)\n    else\n        set [color v] effect to (0)\n    end\nend\n\nwhen I receive [lvl select v]\nforever\n    cc\nend\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nif <(dialogue mode) = [0]> then\n    broadcast (volume v) and wait\n    broadcast (done v)\nend\n\n@help\n\nwhen I receive [lvl select v]\npoint in direction (90)\nset size to (100) %\nshow\nswitch costume to (help v)\ngo to x: (-300) y: (-105)\nwait (1) seconds\nglide (1) secs to x: (-130) y: (-105)\nforever\n    Rotate\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [lc v]\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nhide\nstop [other scripts in sprite v]\n\ndefine Rotate\nrepeat (10)\n    change [rotation vel v] by (0.1)\n    turn right (rotation vel) degrees\nend\nrepeat (10)\n    change [rotation vel v] by (-0.1)\n    turn right (rotation vel) degrees\nend\nrepeat (10)\n    change [rotation vel v] by (-0.1)\n    turn right (rotation vel) degrees\nend\nrepeat (10)\n    change [rotation vel v] by (0.1)\n    turn right (rotation vel) degrees\nend\nrepeat (10)\n    change [rotation vel v] by (-0.1)\n    turn right (rotation vel) degrees\nend\nrepeat (10)\n    change [rotation vel v] by (0.1)\n    turn right (rotation vel) degrees\nend\nrepeat (10)\n    change [rotation vel v] by (0.1)\n    turn right (rotation vel) degrees\nend\nrepeat (10)\n    change [rotation vel v] by (-0.1)\n    turn right (rotation vel) degrees\nend\n\ndefine cc\nif <<touching (mouse-pointer v)?> and <mouse down?>> then\n    set [color v] effect to (100)\nelse\n    if <touching (mouse-pointer v)?> then\n        set [color v] effect to (150)\n    else\n        set [color v] effect to (0)\n    end\nend\n\nwhen I receive [lvl select v]\nforever\n    cc\nend\n\nwhen this sprite clicked\nif <(dialogue mode) = [0]> then\n    broadcast (help v) and wait\n    broadcast (instructions finished v)\nend\n\n@Sprite4\n\nwhen I receive [lvl select v]\nshow\nset [yv v] to [0]\ngo to x: (0) y: (410)\nrepeat (15)\n    change [yv v] by (-1)\n    change y by (YV)\nend\nset [yv v] to [6]\ngo to x: (0) y: (132)\nrepeat (12)\n    change [yv v] by (-1)\n    change y by (YV)\nend\nforever\n    grow\nend\n\nwhen flag clicked\nset [grow speed v] to [0]\npoint in direction (90)\nset size to (70) %\nhide\n\nwhen I receive [lc v]\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nhide\nstop [other scripts in sprite v]\n\ndefine grow\nrepeat (10)\n    change [grow speed v] by (0.1)\n    change size by (grow speed)\nend\nrepeat (10)\n    change [grow speed v] by (-0.1)\n    change size by (grow speed)\nend\nrepeat (10)\n    change [grow speed v] by (-0.1)\n    change size by (grow speed)\nend\nrepeat (10)\n    change [grow speed v] by (0.1)\n    change size by (grow speed)\nend\nrepeat (10)\n    change [grow speed v] by (-0.1)\n    change size by (grow speed)\nend\nrepeat (10)\n    change [grow speed v] by (0.1)\n    change size by (grow speed)\nend\nrepeat (10)\n    change [grow speed v] by (0.1)\n    change size by (grow speed)\nend\nrepeat (10)\n    change [grow speed v] by (-0.1)\n    change size by (grow speed)\nend\n\n@BG2\n\nwhen I receive [lc v]\nset size to (125) %\ngo to [back v] layer\nshow\nset [ghost v] effect to (100)\nrepeat (50)\n    change [ghost v] effect by (-2)\nend\ngo [forward v] (2) layers\n\nwhen flag clicked\nhide\n\nwhen I receive [play game v]\nhide\n\nwhen I receive [hide menu v]\nhide\n\n@tb2\n\nwhen I receive [ok v]\nglide (1) secs to x: (-30) y: (-213)\nif <(dialogue mode) = [1]> then\n    show\nelse\n    hide\nend\n\nwhen I receive [show tb v]\ngo to [front v] layer\nshow\nglide (1) secs to x: (-30) y: (-120)\n\nwhen flag clicked\nset [brightness v] effect to (100)\nset [light v] to [100]\nhide\n\nwhen I receive [instructions finished v]\nset [brightness v] effect to (100)\nset [light v] to [100]\nhide\n\nwhen I receive [help v]\nset [brightness v] effect to (-100)\nset [light v] to [-100]\n\nwhen I receive [done v]\nset [brightness v] effect to (100)\nset [light v] to [100]\nhide\n\n@level 1\n\nwhen flag clicked\nset [glide speed v] to [0]\nhide\n\nwhen I receive [montrer les niveaux v]\nset [glide speed v] to [0]\ngo to [front v] layer\nshow\ngo to x: (-300) y: (-40)\nglide (1) secs to x: (-130) y: (-40)\nforever\n    glide\nend\n\ndefine glide\nrepeat (10)\n    change [glide speed v] by (0.1)\n    change y by (glide speed)\nend\nrepeat (10)\n    change [glide speed v] by (-0.1)\n    change y by (glide speed)\nend\nrepeat (10)\n    change [glide speed v] by (-0.1)\n    change y by (glide speed)\nend\nrepeat (10)\n    change [glide speed v] by (0.1)\n    change y by (glide speed)\nend\nrepeat (10)\n    change [glide speed v] by (-0.1)\n    change y by (glide speed)\nend\nrepeat (10)\n    change [glide speed v] by (0.1)\n    change y by (glide speed)\nend\nrepeat (10)\n    change [glide speed v] by (0.1)\n    change y by (glide speed)\nend\nrepeat (10)\n    change [glide speed v] by (-0.1)\n    change y by (glide speed)\nend\n\nwhen I receive [montrer les niveaux v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (30)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen this sprite clicked\nset [level v] to [1]\nbroadcast (trans 2 v)\n\nwhen I receive [play game v]\nhide\n\nwhen I receive [hide menu v]\nhide\n\n@level 2\n\nwhen flag clicked\nhide\n\nwhen I receive [montrer les niveaux v]\ngo to [front v] layer\nshow\ngo to x: (0) y: (-210)\nglide (1) secs to x: (0) y: (-40)\nforever\n    glide\nend\n\ndefine glide\nrepeat (10)\n    change [glide speed v] by (0.1)\n    change y by (glide speed)\nend\nrepeat (10)\n    change [glide speed v] by (-0.1)\n    change y by (glide speed)\nend\nrepeat (10)\n    change [glide speed v] by (-0.1)\n    change y by (glide speed)\nend\nrepeat (10)\n    change [glide speed v] by (0.1)\n    change y by (glide speed)\nend\nrepeat (10)\n    change [glide speed v] by (-0.1)\n    change y by (glide speed)\nend\nrepeat (10)\n    change [glide speed v] by (0.1)\n    change y by (glide speed)\nend\nrepeat (10)\n    change [glide speed v] by (0.1)\n    change y by (glide speed)\nend\nrepeat (10)\n    change [glide speed v] by (-0.1)\n    change y by (glide speed)\nend\n\nwhen I receive [montrer les niveaux v]\nforever\n    if <(levels unlocked) > [1]> then\n        switch costume to (button v)\n    else\n        switch costume to (bu v)\n    end\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (30)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen this sprite clicked\nif <(levels unlocked) > [1]> then\n    set [level v] to [2]\n    broadcast (trans 2 v)\nelse\n    broadcast (locked v)\nend\n\nwhen I receive [play game v]\nhide\n\nwhen I receive [hide menu v]\nhide\n\n@level 3\n\nwhen flag clicked\nhide\n\nwhen I receive [montrer les niveaux v]\ngo to [front v] layer\nshow\ngo to x: (300) y: (-40)\nglide (1) secs to x: (130) y: (-40)\nforever\n    glide\nend\n\ndefine glide\nrepeat (10)\n    change [glide speed v] by (0.1)\n    change y by (glide speed)\nend\nrepeat (10)\n    change [glide speed v] by (-0.1)\n    change y by (glide speed)\nend\nrepeat (10)\n    change [glide speed v] by (-0.1)\n    change y by (glide speed)\nend\nrepeat (10)\n    change [glide speed v] by (0.1)\n    change y by (glide speed)\nend\nrepeat (10)\n    change [glide speed v] by (-0.1)\n    change y by (glide speed)\nend\nrepeat (10)\n    change [glide speed v] by (0.1)\n    change y by (glide speed)\nend\nrepeat (10)\n    change [glide speed v] by (0.1)\n    change y by (glide speed)\nend\nrepeat (10)\n    change [glide speed v] by (-0.1)\n    change y by (glide speed)\nend\n\nwhen I receive [montrer les niveaux v]\nforever\n    if <(levels unlocked) > [2]> then\n        switch costume to (button v)\n    else\n        switch costume to (costume1 v)\n    end\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (30)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen this sprite clicked\nif <(levels unlocked) > [2]> then\n    set [level v] to [3]\n    broadcast (trans 2 v)\nelse\n    broadcast (locked v)\nend\n\nwhen I receive [play game v]\nhide\n\nwhen I receive [hide menu v]\nhide\n\n@number pack\n\n@Sprite5\n\ngo to x: (0) y: (0)\n\nwhen I receive [trans 2 v]\nshow\ngo to [front v] layer\nswitch costume to (dot v)\nset size to (10000000) %\nrepeat (8)\n    go to [front v] layer\n    switch costume to (dot v)\n    change size by (-1000)\n    switch costume to (trans v)\nend\nswitch costume to (black v)\nwait (1) seconds\nbroadcast (hide menu v)\ngo to [front v] layer\nswitch costume to (dot v)\nset size to (1000) %\nrepeat (8)\n    go to [front v] layer\n    switch costume to (dot v)\n    change size by (1000)\n    switch costume to (trans v)\nend\nbroadcast (PLAY GAME v)\nhide\n\nwhen I receive [trans end v]\nbroadcast (lc v)\nshow\ngo to [front v] layer\nswitch costume to (dot v)\nset size to (10000000) %\nrepeat (8)\n    go to [front v] layer\n    switch costume to (dot v)\n    change size by (-1000)\n    switch costume to (trans v)\nend\nswitch costume to (black v)\nwait (1) seconds\ngo to [front v] layer\nswitch costume to (dot v)\nset size to (1000) %\nrepeat (8)\n    go to [front v] layer\n    switch costume to (dot v)\n    change size by (1000)\n    switch costume to (trans v)\nend\nhide\n\n@pause2\n\nwhen I receive [lvl select v]\nhide\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [tick v]\nshow\ngo to x: (0) y: (135)\nif <touching (mouse-pointer v)?> then\n    set [brightness v] effect to (50)\nelse\n    set [brightness v] effect to (0)\nend\n\nwhen I receive [lc v]\nhide\nstop [other scripts in sprite v]\nhide\n\nset size to (20) %\n\nwhen this sprite clicked\nset [pause v] to [1]\nbroadcast (PAUSE v)\n\nwhen I receive [replay v]\nset [pause v] to [0]\n\nwhen flag clicked\nhide\n\n@PLAY\n\nwhen I receive [pause v]\ngo to x: (0) y: (20)\nset size to (100) %\ngo to [front v] layer\nshow\ngo to [front v] layer\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (30)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen this sprite clicked\nif <(dialogue mode) = [0]> then\n    broadcast (REPLAY v)\n    hide\n    stop [other scripts in sprite v]\nend\n\nwhen flag clicked\nhide\n\n@brains\n\nwhen I receive [pause v]\ngo to x: (0) y: (-61)\nset size to (100) %\ngo to [front v] layer\nshow\ngo to [front v] layer\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (30)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen this sprite clicked\nif <(dialogue mode) = [0]> then\n    broadcast (cheater... v) and wait\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [replay v]\nhide\nstop [other scripts in sprite v]\n\ndefine set random hints\nset [letters v] to [azertyuiopqsdfghjklmwxcvbn]\ndelete all of [hint 1 v]\ndelete all of [hint 2 v]\ndelete all of [hint 3 v]\ndelete all of [hint 4 v]\ndelete all of [hint 5 v]\ndelete all of [hint 6 v]\ndelete all of [hint 7 v]\ndelete all of [hint 8 v]\nrepeat (3)\n    add (letter (pick random (1) to (25)) of (letters)) to [hint 1 v]\n    add (letter (pick random (1) to (25)) of (letters)) to [hint 2 v]\n    add (letter (pick random (1) to (25)) of (letters)) to [hint 3 v]\n    add (letter (pick random (1) to (25)) of (letters)) to [hint 4 v]\n    add (letter (pick random (1) to (25)) of (letters)) to [hint 5 v]\n    add (letter (pick random (1) to (25)) of (letters)) to [hint 6 v]\n    add (letter (pick random (1) to (25)) of (letters)) to [hint 7 v]\n    add (letter (pick random (1) to (25)) of (letters)) to [hint 8 v]\nend\nset [superjump code v] to (join (item (pick random (1) to (2)) of [hint 1 v]) (join (item (pick random (1) to (2)) of [hint 2 v]) (join (item (pick random (1) to (2)) of [hint 3 v]) (join (item (pick random (1) to (2)) of [hint 4 v]) (join (item (pick random (1) to (3)) of [hint 5 v]) (join (item (pick random (1) to (3)) of [hint 6 v]) (join (item (pick random (1) to (3)) of [hint 7 v]) (item (pick random (1) to (3)) of [hint 8 v]))))))))\nset [hp code v] to (join (item (pick random (1) to (2)) of [hint 1 v]) (join (item (pick random (1) to (2)) of [hint 2 v]) (join (item (pick random (1) to (2)) of [hint 3 v]) (join (item (pick random (1) to (2)) of [hint 4 v]) (join (item (pick random (1) to (3)) of [hint 5 v]) (join (item (pick random (1) to (3)) of [hint 6 v]) (join (item (pick random (1) to (3)) of [hint 7 v]) (item (pick random (1) to (3)) of [hint 8 v]))))))))\nset [fly code v] to (join (item (pick random (1) to (2)) of [hint 1 v]) (join (item (pick random (1) to (2)) of [hint 2 v]) (join (item (pick random (1) to (2)) of [hint 3 v]) (join (item (pick random (1) to (3)) of [hint 4 v]) (join (item (pick random (1) to (3)) of [hint 5 v]) (join (item (pick random (1) to (3)) of [hint 6 v]) (join (item (pick random (1) to (3)) of [hint 7 v]) (item (pick random (1) to (3)) of [hint 8 v]))))))))\n\nwhen I receive [setup v]\nset random hints\n\n@details\n\nwhen I receive [setup v]\nhide\nset size to (50) %\nRESET\nlist\n\nwhen I receive [lc v]\nhide\nstop [other scripts in sprite v]\nhide\n\ndefine RESET\nset [x v] to [-100]\nset [y v] to [-100]\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [tick v]\nPOSITION ((X) - (SCROLL X)) ((Y) - (SCROLL Y))\n\ndefine POSITION (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\ndefine list\nif <(LEVEL) = [1]> then\n    w1\nelse\n    if <(LEVEL) = [2]> then\n        w2\n    else\n        end?\n    end\nend\n\ndefine tile (tile) at x: (x) y: (y)\nswitch costume to (tile)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\ndefine tile (tile) moves by x: (x) y: (y)\nswitch costume to (tile)\nchange [x v] by (x)\nchange [y v] by (y)\ncreate clone of (_myself_ v)\n\ndefine w1\nset rotation style [left-right v]\npoint in direction (90)\ntile [1] at x: [-50] y: [-52]\ntile [2] at x: [1725] y: [30]\nset size to (100) %\ntile [4] at x: [2335] y: [790]\n\ndefine w2\nset rotation style [left-right v]\npoint in direction (90)\ntile [1] at x: [-50] y: [-52]\nset rotation style [left-right v]\npoint in direction (-90)\ntile [1] at x: [1460] y: [974]\nset size to (100) %\nset rotation style [left-right v]\npoint in direction (90)\ntile [3] at x: [740] y: [1300]\ntile [1] at x: [-200] y: [985]\nset rotation style [left-right v]\npoint in direction (-90)\ntile [1] at x: [450] y: [108]\n\ndefine end?\nset rotation style [left-right v]\npoint in direction (90)\ntile [1] at x: [-50] y: [-52]\n\nwhen I receive [green flag v]\nhide\n\ngo [backward v] (3) layers\n\nset [jump power v] to [9999]\n\n@Sprite6\n\n
New game: https://scratch.mit.edu/projects/377953940 \n---------------------------------------------------------------\nHi Folks!\nThis is my 4th release.It's a scrolling platformer with enemies, based on a one-eyed cube.\n-Use arrow keys/WASD to move (or screen sides in mobile mode) \n-Avoid water and the void\n-Collect all coins to open the portal for next level\nLove and fave for extra cheat codes :D\nThanks for 300 loves _:D_