Lights Out Platformer

Instructions: Credits to \n@evy246\n@samcrach\n@CooperFan5\nThank for all the guys the made this project possible ❤\n-----------------------------------------------------------\nO  M  G  2155 wiews??? im SO happy thank u SOOOOOO much

@Stage\n\nwhen flag clicked\nswitch backdrop to (cenário1 v)\nforever\n    set volume to (150) %\n    play sound [Nebula v] until done\nend\n\nwhen I receive [next level v]\nnext backdrop\n\n@Player\n\ndefine movimento\nswitch costume to (normal v)\nif <<<key (w v) pressed?> or <key (up arrow v) pressed?>> or <key (space v) pressed?>> then\n    switch costume to (cima v)\n    create clone of (_myself_ v)\n    if <(caindo) < [4]> then\n        set [velocidade y v] to [12]\n    end\nend\nif <<key (a v) pressed?> or <key (left arrow v) pressed?>> then\n    switch costume to (esquerda v)\n    create clone of (_myself_ v)\n    change [velocidade x v] by (-3)\n    point in direction (90)\nend\nif <<key (d v) pressed?> or <key (right arrow v) pressed?>> then\n    switch costume to (direita v)\n    create clone of (_myself_ v)\n    change [velocidade x v] by (3)\n    point in direction (90)\nend\nif <<<key (a v) pressed?> or <key (left arrow v) pressed?>> and <<key (d v) pressed?> or <key (right arrow v) pressed?>>> then\n    switch costume to (normal v)\n    set [velocidade x v] to [0]\nend\nset [velocidade x v] to ((velocidade x) * (0.8))\nchange [velocidade y v] by (GRAVIDADE)\nmova em passos (([abs v] of (velocidade x) ) + ([abs v] of (velocidade y) ))\n\ndefine mova em passos (passos)\nchange [caindo v] by (1)\nrepeat (passos)\n    set [ultimo valor v] to (x position)\n    change x by ((velocidade x) / (passos))\n    if <touching (ground v)?> then\n        set x to (ultimo valor)\n        set [velocidade x v] to [0]\n    end\n    set [ultimo valor v] to (y position)\n    change y by ((velocidade y) / (passos))\n    if <touching (ground v)?> then\n        set y to (ultimo valor)\n        if <(velocidade y) < [0]> then\n            set [caindo v] to [0]\n        end\n        set [velocidade y v] to [0]\n    end\nend\n\nwhen flag clicked\npoint in direction (90)\nset [velocidade x v] to [0]\nset [gravidade v] to [-1]\nset [velocidade y v] to [0]\ngo to x: (-163) y: (0)\nforever\n    movimento\nend\n\nwhen I start as a clone\nDesapareça [10]\n\ndefine Desapareça (frames)\nrepeat (frames)\n    change [ghost v] effect by ((100) / (frames))\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    if <(x position) > [210]> then\n        go to x: (-173) y: (-43)\n        broadcast (Next Level v)\n    end\n    if <<touching (obby v)?> or <(y position) = [-185]>> then\n        start sound [Oops v]\n        go to x: (-173) y: (43)\n        set [velocidade y v] to [-5]\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (up v)?> then\n        set [velocidade x v] to [0]\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<key (w v) pressed?> or <key (up arrow v) pressed?>> or <key (space v) pressed?>> then\n        if <(caindo) < [1]> then\n            start sound [Jump v]\n        end\n    end\nend\n\nwhen I receive [next level v]\nchange y by (3)\n\n@Ground\n\nwhen flag clicked\nset [level v] to [1]\nswitch costume to (fantasia1 v)\ngo to x: (0) y: (0)\n\nwhen I receive [next level v]\nchange [level v] by (1)\nswitch costume to (join [fantasia] (LEVEL))\n\n@Obby\n\nwhen flag clicked\ngo to x: (0) y: (-30)\nswitch costume to (fantasia1 v)\nforever\n    switch costume to (join [fantasia] (LEVEL))\n    if <<(costume [number v]) = [6]> or <(costume [number v]) = [7]>> then\n        change [sine v] by (0.010)\n        go to x: (0) y: ((-16) + (([cos v] of ((Sine) * (155)) ) * (10.5)))\n    else\n        go to x: (0) y: (-30)\n        set [sine v] to [0]\n    end\nend\n\nwhen flag clicked\nrepeat until <(costume [number v]) = [7]>\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nswitch costume to (fantasia2 v)\nforever\n    set size to (65) %\n    go to x: (210) y: (-42)\n    if <(LEVEL) = [7]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nhide\ndelete this clone\n\nwhen I receive [next level v]\nshow\n\n@up\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        switch costume to (down v)\n    else\n        switch costume to (up v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [9]> then\n        show\n    else\n        hide\n    end\nend\n\nwait until <not <touching (player v)?>>\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        start sound [Jump v]\n        set [velocidade y v] to [20]\n        wait (0.5) seconds\n    end\nend\n\n@LED\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (small v)\nset size to (110) %\nswitch costume to (costume1 v)\nforever\n    show\nend\n\nwhen flag clicked\ngo to [front v] layer\nforever\n    go to (mouse-pointer v)\nend\n\n@Lightbulb\n\nwhen flag clicked\nset [lightbulbs v] to [0]\nshow\nforever\n    if <touching (player v)?> then\n        hide\n        change [lightbulbs v] by (1)\n        start sound [Collect v]\n    end\nend\n\nwhen flag clicked\ngo to x: (35) y: (41)\nswitch costume to (light bulb1 v)\n\nwhen I receive [next level v]\nshow\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [1]> then\n        go to x: (55) y: (70)\n    end\n    if <(LEVEL) = [2]> then\n        go to x: (60) y: (-29)\n    end\n    if <(LEVEL) = [3]> then\n        go to x: (-122) y: (110)\n    end\n    if <(LEVEL) = [4]> then\n        go to x: (-170) y: (120)\n    end\n    if <(LEVEL) = [5]> then\n        go to x: (7) y: (110)\n    end\n    if <(LEVEL) = [5]> then\n        go to x: (7) y: (110)\n    end\n    if <(LEVEL) = [6]> then\n        go to x: (45) y: (110)\n    end\n    if <(LEVEL) = [7]> then\n        go to x: (35) y: (110)\n    end\n    if <(LEVEL) = [8]> then\n        go to x: (-135) y: (110)\n    end\n    if <(LEVEL) = [9]> then\n        go to x: (-135) y: (0)\n    end\n    if <(LEVEL) = [10]> then\n        go to x: (-135) y: (20)\n    end\nend\n\n@Thumbnail\n\nwhen flag clicked\nshow variable [lightbulbs v]\nswitch costume to (small v)\nset size to (100) %\nswitch costume to (fantasia1 v)\ngo to x: (0) y: (0)\n\nwhen [timer v] > (0)\nhide variable [lightbulbs v]\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    set [ghost v] effect to (100)\n    reset timer\nend\n\n