WHITE - A Platformer -

Instructions: Hi everyone.\n\nWelcome to WHITE - A Platformer-\n Leave a love and a favorite.\n\n

@Stage\n\nwhen I receive [light v]\nrepeat (10)\n    change [brightness v] effect by (10)\nend\n\nwhen I receive [light v]\nrepeat (10)\n    change [brightness v] effect by (10)\nend\n\nwhen I receive [lightno v]\nrepeat (10)\n    change [brightness v] effect by (-10)\nend\n\nwhen flag clicked\nforever\n    repeat until <(GAME) = [1]>\n        play sound [Marine.mp3 v] until done\n    end\nend\n\nwhen flag clicked\nswitch costume to (new piskellol \(1\)-3 v)\nforever\n    if <(nivel) = [9]> then\n        switch costume to (new piskellol \(1\)-2 v)\n    end\nend\n\n@suelo\n\nwhen flag clicked\nclear graphic effects\n\nwhen I receive [lightno v]\nrepeat (10)\n    change [brightness v] effect by (-10)\nend\n\nwhen I receive [light v]\nrepeat (10)\n    change [brightness v] effect by (10)\nend\n\nwhen flag clicked\nswitch costume to (new piskellol \(1\)-1 v)\nforever\n    if <(nivel) = [9]> then\n        switch costume to (new piskellol \(1\)-5 v)\n    end\nend\n\n@jugador\n\nwhen flag clicked\nset [nivel v] to [0]\nset size to (65) %\nset rotation style [left-right v]\ngo to x: (0) y: (100)\nhide\nset [speed y v] to [0]\nset [falling? v] to [10]\nforever\n    switch costume to (running \(3\)-5 v)\n    if <<(speed y) < [4]> or <key (up arrow v) pressed?>> then\n        change [speed y v] by (-1)\n    else\n        change [speed y v] by (-2)\n    end\n    change y by (speed y)\n    Touch Ground <(speed y) > [0]>\n    if <key (left arrow v) pressed?> then\n        Walk (-90) (-4)\n    else\n        if <key (right arrow v) pressed?> then\n            Walk (90) (4)\n        else\n            set [frame v] to [0]\n        end\n    end\n    if <key (up arrow v) pressed?> then\n        if <<(jump key) = [0]> and <(falling?) < [3]>> then\n            set [speed y v] to [15]\n            set [falling? v] to [6]\n            set [jump key v] to [1]\n        end\n    else\n        set [jump key v] to [0]\n    end\n    if <(y position) < [-180]> then\n        go to x: (0) y: (100)\n        set [speed y v] to [0]\n    end\n    Set Costume\nend\n\ndefine None\npoint in direction (direction)\nchange x by (speed)\nset [slope v] to [0]\nrepeat until <<(slope) = [8]> or <not <<<<touching (suelo v)?> or <touching (suelo2 v)?>> or <touching (suelo3 v)?>> or <touching (suelo4 v)?>>>>\n    change y by (1)\n    change [slope v] by (1)\nend\nif <(slope) = [8]> then\n    change x by ((0) - (speed))\n    change y by ((0) - (slope))\nend\nchange [frame v] by (0.5)\n\ndefine Touch Ground <>\nchange [falling? v] by (1)\nrepeat until <not <<<<touching (suelo v)?> or <touching (suelo2 v)?>> or <touching (suelo3 v)?>> or <touching (suelo4 v)?>>>\n    if <up?> then\n        change y by (-1)\n    else\n        change y by (1)\n        set [falling? v] to [0]\n    end\n    set [speed y v] to [0]\nend\n\ndefine Set Costume\nif <(falling?) < [6]> then\n    if <(frame) = [0]> then\n        switch costume to (hitbox v)\n    else\n        switch costume to ([floor v] of ((1) + ((frame) mod (4))) )\n    end\nelse\n    if <(speed y) > [0]> then\n        switch costume to (running \(3\)-3 v)\n    else\n        switch costume to (hitbox v)\n    end\nend\n\nwhen flag clicked\nset [game v] to [0]\n\nwhen flag clicked\nforever\n    if <touching (diamante2 v)?> then\n        hide\n        broadcast (light v)\n        wait (1) seconds\n        change [nivel v] by (1)\n        wait (1) seconds\n        go to x: (-197) y: (-99)\n    end\nend\n\nwhen I receive [mensaje1 v]\nset [ghost v] effect to (100)\nwait (2) seconds\ngo to x: (-197) y: (-99)\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\n\nwhen I receive [light v]\nrepeat (10)\n    change [brightness v] effect by (10)\nend\n\nwhen I receive [lightno v]\nhide\nclear graphic effects\nset [ghost v] effect to (100)\nwait (0.5) seconds\ngo to x: (-197) y: (-99)\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\n\nwhen flag clicked\nforever\n    if <touching (nubenegra3 v)?> then\n        set [speed y v] to [18.5]\n        set [falling? v] to [6]\n        set [jump key v] to [1]\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<touching (pincho v)?> or <touching (nubenegra2 v)?>> or <touching (pincho2 v)?>> then\n        go to x: (-197) y: (-99)\n        repeat (5)\n            set [brightness v] effect to (50)\n            wait (0.1) seconds\n            set [brightness v] effect to (0)\n            wait (0.1) seconds\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(nivel) = [10]> then\n        go to x: (-197) y: (-99)\n    end\nend\n\n@suelo2\n\nwhen flag clicked\nforever\n    if <(nivel) = [1]> then\n        go to x: (360) y: (-23)\n    end\n    if <(nivel) = [2]> then\n        go to x: (11) y: (-25)\n    end\n    if <(nivel) = [3]> then\n        go to x: (401) y: (-42)\n    end\n    if <(nivel) = [4]> then\n        go to x: (388) y: (66)\n    end\n    if <(nivel) = [5]> then\n        switch costume to (new piskellol \(1\)-2 v)\n        go to x: (115) y: (-29)\n    end\n    if <(nivel) = [6]> then\n        switch costume to (new piskellol \(1\)-3 v)\n        go to x: (7) y: (-38)\n    end\n    if <(nivel) = [7]> then\n        switch costume to (new piskellol \(1\)-2 v)\n        go to x: (212) y: (37)\n    end\n    if <(nivel) = [8]> then\n        switch costume to (new piskellol \(1\)-1 v)\n        go to x: (197) y: (15)\n    end\n    if <(nivel) = [9]> then\n        hide\n    end\nend\n\nwhen I start as a clone\ngo to x: (348) y: (51)\nforever\n    if <(nivel) = [1]> then\n        go to x: (202) y: (53)\n    end\n    if <(nivel) = [2]> then\n        go to x: (105) y: (76)\n    end\n    if <(nivel) = [3]> then\n        go to x: (198) y: (26)\n    end\n    if <(nivel) = [4]> then\n        hide\n    end\n    if <(nivel) = [6]> then\n        go to x: (105) y: (54)\n        show\n        switch costume to (new piskellol \(1\)-1 v)\n    end\n    if <(nivel) = [7]> then\n        switch costume to (new piskellol \(1\)-1 v)\n        go to x: (338) y: (-33)\n    end\n    if <(nivel) = [8]> then\n        go to x: (383) y: (-23)\n        switch costume to (new piskellol \(1\)-1 v)\n    end\n    if <(nivel) = [9]> then\n        hide\n    end\nend\n\nwhen I receive [lightno v]\nrepeat (10)\n    change [brightness v] effect by (-10)\nend\n\nwhen I receive [light v]\nrepeat (10)\n    change [brightness v] effect by (10)\nend\n\nwhen flag clicked\nshow\nswitch costume to (new piskellol \(1\)-1 v)\ngo to x: (187) y: (-32)\ncreate clone of (_myself_ v)\n\n@Objeto1\n\nwhen I receive [light v]\nrepeat (10)\n    change [brightness v] effect by (10)\nend\n\nwhen flag clicked\ngo to x: (204) y: (-100)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\ngo to x: (-110) y: (-100)\nforever\n    if <(nivel) = [1]> then\n        show\n        go to x: (-143) y: (-100)\n    end\n    if <(nivel) = [2]> then\n        hide\n    end\n    if <(nivel) = [4]> then\n        show\n        go to x: (-75) y: (-100)\n    end\n    if <(nivel) = [5]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(nivel) = [1]> then\n        show\n        go to x: (194) y: (3)\n    end\n    if <(nivel) = [2]> then\n        show\n        go to x: (56) y: (104)\n    end\n    if <(nivel) = [3]> then\n        show\n        go to x: (20) y: (-101)\n    end\n    if <(nivel) = [4]> then\n        show\n        go to x: (231) y: (-100)\n    end\n    if <(nivel) = [5]> then\n        show\n        go to x: (-83) y: (-2)\n    end\n    if <(nivel) = [6]> then\n        show\n        go to x: (175) y: (104)\n    end\n    if <(nivel) = [7]> then\n        show\n        go to x: (174) y: (-5)\n    end\n    if <(nivel) = [8]> then\n        show\n        go to x: (-152) y: (42)\n    end\n    if <(nivel) = [9]> then\n        show\n        go to x: (34) y: (-100)\n    end\nend\n\nwhen flag clicked\nswitch costume to (new piskellol \(1\)-4 v)\nforever\n    if <(nivel) = [9]> then\n        switch costume to (new piskellol \(1\)-2 v)\n    end\nend\n\nwhen I receive [lightno v]\nrepeat (10)\n    change [brightness v] effect by (-10)\nend\n\n@white\n\nwhen flag clicked\nset [game v] to [0]\ngo to x: (62) y: (-4)\n\nwhen flag clicked\nshow\nforever\n    if <(GAME) = [1]> then\n        set [ghost v] effect to (0)\n        repeat (20)\n            change [ghost v] effect by (5)\n        end\n        hide\n    end\nend\n\nwhen flag clicked\nshow\nset [ghost v] effect to (0)\n\n@New Piskellol (2)\n\nwhen flag clicked\ngo to x: (-39) y: (-192)\n\nwhen flag clicked\nforever\n    repeat (30)\n        change y by (-0.2)\n    end\n    repeat (30)\n        change y by (0.2)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(GAME) = [1]> then\n        set [ghost v] effect to (0)\n        repeat (20)\n            change [ghost v] effect by (5)\n        end\n        hide\n    end\nend\n\nwhen flag clicked\nshow\nset [ghost v] effect to (0)\n\n@Objeto2\n\nwhen flag clicked\ngo to x: (0) y: (-44)\n\nwhen flag clicked\nshow\nset [ghost v] effect to (0)\n\nwhen flag clicked\nforever\n    if <(GAME) = [1]> then\n        set [ghost v] effect to (0)\n        repeat (20)\n            change [ghost v] effect by (5)\n        end\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    repeat (30)\n        change y by (-0.2)\n    end\n    repeat (30)\n        change y by (0.2)\n    end\nend\n\n@Objeto3\n\nwhen flag clicked\ngo to x: (0) y: (0)\n\nwhen flag clicked\nshow\nset [ghost v] effect to (0)\n\nwhen flag clicked\nforever\n    if <(GAME) = [1]> then\n        set [ghost v] effect to (0)\n        repeat (20)\n            change [ghost v] effect by (5)\n        end\n        hide\n    end\nend\n\nwhen I receive [light v]\nrepeat (10)\n    change [brightness v] effect by (10)\nend\n\n@diamante\n\nwhen flag clicked\ngo to x: (146) y: (-64)\n\nwhen flag clicked\nshow\nset [ghost v] effect to (0)\n\nwhen flag clicked\nforever\n    if <(GAME) = [1]> then\n        set [ghost v] effect to (0)\n        repeat (30)\n            change [ghost v] effect by (5)\n        end\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    repeat (30)\n        change x by (-0.2)\n    end\n    repeat (30)\n        change x by (0.2)\n    end\nend\n\nwhen I receive [lightno v]\nrepeat (5)\n    change [brightness v] effect by (-10)\nend\n\n@PRESS ENTER\n\nwhen flag clicked\nset [game v] to [0]\nset [ghost v] effect to (0)\ngo to x: (130) y: (-150)\nforever\n    repeat until <(GAME) = [1]>\n        repeat (30)\n            change [ghost v] effect by (-1)\n        end\n        repeat (30)\n            change [ghost v] effect by (1)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(GAME) = [0]> then\n        if <key (any v) pressed?> then\n            set [game v] to [1]\n            broadcast (mensaje1 v)\n            stop all sounds\n            forever\n                play sound [White.mp3 v] until done\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(GAME) = [1]> then\n        set [ghost v] effect to (0)\n        repeat (20)\n            change [ghost v] effect by (5)\n        end\n        hide\n    end\nend\n\nwhen flag clicked\nshow\nset [ghost v] effect to (0)\n\n@diamante2\n\nwhen flag clicked\ngo to x: (164) y: (96)\nshow\nset [brightness v] effect to (0)\n\nwhen I receive [light v]\nrepeat (10)\n    change [brightness v] effect by (10)\nend\nhide\n\nwhen I receive [lightno v]\nshow\nrepeat (10)\n    change [brightness v] effect by (-10)\nend\n\nwhen flag clicked\nset [nivel v] to [0]\n\nwhen flag clicked\nforever\n    if <(nivel) = [1]> then\n        go to x: (9) y: (104)\n    end\n    if <(nivel) = [2]> then\n        go to x: (167) y: (-91)\n    end\n    if <(nivel) = [3]> then\n        go to x: (-164) y: (77)\n    end\n    if <(nivel) = [4]> then\n        go to x: (191) y: (115)\n    end\n    if <(nivel) = [5]> then\n        go to x: (193) y: (106)\n    end\n    if <(nivel) = [6]> then\n        go to x: (105) y: (-91)\n    end\n    if <(nivel) = [7]> then\n        go to x: (-144) y: (141)\n    end\n    if <(nivel) = [8]> then\n        go to x: (1) y: (168)\n    end\n    if <(nivel) = [9]> then\n        go to x: (217) y: (-87)\n    end\nend\n\nwhen flag clicked\nswitch costume to (diamante-1 v)\nforever\n    if <(nivel) = [9]> then\n        switch costume to (diamante-2 v)\n    end\nend\n\n@arrows\n\nwhen flag clicked\nhide\nforever\n    next costume\n    wait (0.1) seconds\nend\n\nwhen I receive [mensaje1 v]\nset [ghost v] effect to (100)\nwait (2) seconds\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\n\nwhen flag clicked\nforever\n    if <(nivel) = [1]> then\n        hide\n    end\nend\n\nwhen I receive [light v]\nrepeat (10)\n    change [brightness v] effect by (10)\nend\n\n@pincho\n\nwhen I start as a clone\nforever\n    if <(nivel) = [1]> then\n        show\n        go to x: (44) y: (-90)\n    end\n    if <(nivel) = [2]> then\n        hide\n    end\nend\n\nwhen flag clicked\nhide\ncreate clone of (_myself_ v)\nforever\n    if <(nivel) = [1]> then\n        show\n        go to x: (-94) y: (-90)\n    end\n    if <(nivel) = [2]> then\n        hide\n    end\nend\n\nwhen I receive [lightno v]\nrepeat (10)\n    change [brightness v] effect by (-10)\nend\n\nwhen I receive [light v]\nrepeat (10)\n    change [brightness v] effect by (10)\nend\n\nwhen flag clicked\nswitch costume to (pincho-1 v)\nhide\ncreate clone of (_myself_ v)\nforever\n    if <(nivel) = [1]> then\n        show\n        go to x: (-94) y: (-90)\n    end\n    if <(nivel) = [2]> then\n        hide\n    end\n    if <(nivel) = [5]> then\n        switch costume to (pincho-2 v)\n        show\n        go to x: (77) y: (-89)\n    end\n    if <(nivel) = [6]> then\n        switch costume to (pincho-1 v)\n        show\n        go to x: (217) y: (-89)\n    end\n    if <(nivel) = [7]> then\n        switch costume to (pincho-1 v)\n        go to x: (-20) y: (-91)\n    end\n    if <(nivel) = [8]> then\n        go to x: (-74) y: (-90)\n    end\n    if <(nivel) = [9]> then\n        hide\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(nivel) = [1]> then\n        show\n        go to x: (44) y: (-90)\n    end\n    if <(nivel) = [2]> then\n        hide\n    end\n    if <(nivel) = [7]> then\n        show\n        switch costume to (pincho-3 v)\n        go to x: (-22) y: (3)\n    end\n    if <(nivel) = [8]> then\n        show\n        go to x: (59) y: (-90)\n        switch costume to (pincho-1 v)\n    end\n    if <(nivel) = [9]> then\n        hide\n    end\nend\n\n@death2\n\nwhen flag clicked\nset [nivel v] to [0]\nhide\n\nwhen I receive [light v]\nrepeat (10)\n    change [brightness v] effect by (10)\nend\n\nwhen flag clicked\nforever\n    if <(nivel) = [1]> then\n        hide\n        clear graphic effects\n        set [ghost v] effect to (100)\n        wait (2.7) seconds\n        go to x: (-151) y: (111)\n        show\n        repeat (20)\n            change [ghost v] effect by (-5)\n        end\n        wait until <(nivel) = [2]>\n    end\n    if <(nivel) = [2]> then\n        forever\n            hide\n        end\n    end\nend\n\n@suelo3\n\nwhen flag clicked\nhide\nclear graphic effects\n\nwhen I receive [lightno v]\nrepeat (10)\n    change [brightness v] effect by (-10)\nend\n\nwhen I receive [light v]\nrepeat (10)\n    change [brightness v] effect by (10)\nend\n\nwhen flag clicked\nhide\nforever\n    if <(nivel) = [2]> then\n        go to x: (3) y: (68)\n        show\n    end\n    if <(nivel) = [3]> then\n        hide\n    end\nend\n\nwhen flag clicked\nhide\nforever\n    if <(nivel) = [2]> then\n        switch costume to (new piskellol \(1\)-1 v)\n        go to x: (3) y: (68)\n        show\n    end\n    if <(nivel) = [3]> then\n        hide\n    end\n    if <(nivel) = [5]> then\n        hide\n    end\n    if <(nivel) = [6]> then\n        switch costume to (new piskellol \(1\)-1 v)\n        go to x: (3) y: (68)\n        show\n    end\n    if <(nivel) = [7]> then\n        hide\n    end\nend\n\n@nubenegra2\n\nwhen flag clicked\nforever\n    next costume\n    wait (0.25) seconds\nend\n\nwhen I receive [lightno v]\nrepeat (10)\n    change [brightness v] effect by (-10)\nend\n\nwhen I start as a clone\nhide\nforever\n    if <(nivel) = [3]> then\n        show\n        go to x: (116) y: (136)\n        repeat (56)\n            change y by (-4)\n        end\n        repeat (56)\n            change y by (4)\n        end\n    end\n    if <(nivel) = [4]> then\n        hide\n    end\nend\n\nwhen I start as a clone\nforever\n    next costume\n    wait (0.25) seconds\nend\n\nwhen flag clicked\ncreate clone of (_myself_ v)\nhide\nforever\n    if <(nivel) = [2]> then\n        show\n        go to x: (216) y: (38)\n        repeat (30)\n            change x by (-3)\n        end\n        repeat (30)\n            change x by (3)\n        end\n    end\n    if <(nivel) = [3]> then\n        show\n        go to x: (-101) y: (136)\n        repeat (56)\n            change y by (-4)\n        end\n        repeat (56)\n            change y by (4)\n        end\n    end\n    if <(nivel) = [4]> then\n        hide\n    end\n    if <(nivel) = [6]> then\n        show\n        go to x: (-62) y: (1)\n        repeat (60)\n            change x by (-3)\n        end\n        repeat (60)\n            change x by (3)\n        end\n    end\n    if <(nivel) = [7]> then\n        hide\n    end\nend\n\nwhen I receive [light v]\nrepeat (10)\n    change [brightness v] effect by (10)\nend\n\n@loading (3)\n\nwhen flag clicked\nhide\n\nwhen I receive [light v]\ngo to x: (16) y: (-183)\ngo to [front v] layer\nwait (1) seconds\nswitch costume to (cargando-0 v)\nshow\nrepeat (20)\n    next costume\n    wait (0.05) seconds\nend\nwait (0.5) seconds\nhide\nbroadcast (lightno v)\n\n@plus\n\nwhen flag clicked\nforever\n    if <(nivel) = [2]> then\n        hide\n        clear graphic effects\n        set [ghost v] effect to (100)\n        wait (2.7) seconds\n        go to x: (-151) y: (111)\n        show\n        repeat (20)\n            change [ghost v] effect by (-5)\n        end\n        wait until <(nivel) = [3]>\n    end\n    if <(nivel) = [3]> then\n        forever\n            hide\n        end\n    end\nend\n\nwhen I receive [light v]\nrepeat (10)\n    change [brightness v] effect by (10)\nend\n\nwhen flag clicked\nset [nivel v] to [0]\nhide\n\n@nubenegra3\n\nwhen I receive [lightno v]\nrepeat (10)\n    change [brightness v] effect by (-10)\nend\n\nwhen flag clicked\nhide\nforever\n    if <(nivel) = [4]> then\n        show\n        go to x: (41) y: (-64)\n    end\nend\n\nwhen I receive [light v]\nrepeat (10)\n    change [brightness v] effect by (10)\nend\n\nwhen flag clicked\nforever\n    next costume\n    wait (0.25) seconds\nend\n\nwhen flag clicked\nhide\nforever\n    if <(nivel) = [4]> then\n        show\n        go to x: (41) y: (-64)\n    end\n    if <(nivel) = [5]> then\n        show\n        go to x: (87) y: (-41)\n    end\n    if <(nivel) = [6]> then\n        hide\n    end\nend\n\n@plus3\n\nwhen flag clicked\nset [nivel v] to [0]\nhide\n\nwhen I receive [light v]\nrepeat (10)\n    change [brightness v] effect by (10)\nend\n\nwhen flag clicked\nforever\n    if <(nivel) = [4]> then\n        hide\n        clear graphic effects\n        set [ghost v] effect to (100)\n        wait (2.7) seconds\n        go to x: (-151) y: (111)\n        show\n        repeat (20)\n            change [ghost v] effect by (-5)\n        end\n        wait until <(nivel) = [5]>\n    end\n    if <(nivel) = [5]> then\n        forever\n            hide\n        end\n    end\nend\n\n@pincho2\n\nwhen I receive [lightno v]\nrepeat (10)\n    change [brightness v] effect by (-10)\nend\n\nwhen I receive [light v]\nrepeat (10)\n    change [brightness v] effect by (10)\nend\n\nwhen flag clicked\nswitch costume to (pincho-1 v)\nhide\nforever\n    if <(nivel) = [8]> then\n        show\n        go to x: (-152) y: (54)\n    end\n    if <(nivel) = [9]> then\n        hide\n    end\nend\n\n@suelo4\n\nwhen flag clicked\nhide\ngo to x: (187) y: (-32)\ncreate clone of (_myself_ v)\n\nwhen I receive [lightno v]\nrepeat (10)\n    change [brightness v] effect by (-10)\nend\n\nwhen flag clicked\nhide\ncreate clone of (_myself_ v)\nforever\n    if <(nivel) = [6]> then\n        show\n        switch costume to (new piskellol \(1\)-1 v)\n        go to x: (331) y: (76)\n    end\n    if <(nivel) = [7]> then\n        go to x: (49) y: (90)\n        switch costume to (new piskellol \(1\)-1 v)\n    end\n    if <(nivel) = [8]> then\n        show\n        switch costume to (new piskellol \(1\)-1 v)\n        go to x: (48) y: (16)\n    end\n    if <(nivel) = [9]> then\n        hide\n    end\nend\n\nwhen I start as a clone\nhide\nforever\n    if <(nivel) = [8]> then\n        show\n        switch costume to (new piskellol \(1\)-1 v)\n        go to x: (195) y: (125)\n    end\n    if <(nivel) = [9]> then\n        hide\n    end\nend\n\nwhen I receive [light v]\nrepeat (10)\n    change [brightness v] effect by (10)\nend\n\n@Objeto4\n\nwhen flag clicked\ngo to x: (0) y: (0)\n\nwhen flag clicked\nhide\nset [ghost v] effect to (0)\n\nwhen I receive [light v]\nrepeat (10)\n    change [brightness v] effect by (10)\nend\n\nwhen I receive [lightno v]\nrepeat (10)\n    change [brightness v] effect by (-10)\nend\n\nwhen flag clicked\nforever\n    if <(nivel) = [10]> then\n        show\n    end\nend\n\n@white2\n\nwhen flag clicked\nhide\n\n@Sprite1\n\nwhen I receive [light v]\nshow\ngo to x: (36) y: (28)\nwait (4) seconds\nhide\n\n