Light (A Platformer)
@Stage\n\n@light intro\n\nwhen I receive [intro done v]\nhide\nif <(intro) = [0]> then\n    show\n    go to x: (-240) y: (0)\n    repeat (54)\n        change x by (10)\n    end\n    wait (0.3) seconds\n    hide\n    start sound [49023__reidmangan__spotlight-stereo v]\n    set [intro v] to [0]\n    broadcast (2 v)\n    broadcast (second intro done v)\nelse\nend\n\nwhen flag clicked\nhide\n\n@light\n\nwhen I receive [2 v]\nshow\nswitch costume to (costume2 v)\nwait (1) seconds\nhide\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\n\nwhen I receive [intro done v]\nshow\n\n@Intro\n\nwhen I start as a clone\nshow\nif <(costume [number v]) = [1]> then\n    repeat (2)\n        clear graphic effects\n        wait (0.6) seconds\n        set [brightness v] effect to (100)\n        wait (0.6) seconds\n    end\n    wait (2) seconds\n    delete this clone\nelse\n    if <(costume [number v]) = [2]> then\n        set [ghost v] effect to (0)\n        wait (i1) seconds\n        repeat (10)\n            change size by (-6)\n            change [ghost v] effect by (10)\n        end\n        delete this clone\n    else\n        if <(costume [number v]) = [3]> then\n            set [brightness v] effect to (0)\n            set size to (0) %\n            repeat (30)\n                change size by (((100) - (size)) / (10))\n                change [ghost v] effect by (-4)\n            end\n            repeat (18)\n                switch costume to (blank v)\n                change size by ((size) / (4))\n                switch costume to (c1 v)\n            end\n            wait (3) seconds\n            delete this clone\n        else\n            if <(costume [number v]) = [4]> then\n                go to (random position v)\n                repeat (10)\n                    change x by ((x position) / (-4))\n                    change y by ((y position) / (-4))\n                    change [ghost v] effect by (-10)\n                end\n                delete this clone\n            else\n                if <(costume [number v]) = [6]> then\n                    set [i1 v] to [50]\n                    set size to (0) %\n                    clear graphic effects\n                    repeat (64)\n                        change size by (((100) - (size)) / (4))\n                        point in direction ((90) + (([tan v] of (i1) ) * (5)))\n                        change [i1 v] by (5)\n                    end\n                    repeat (9)\n                        change x by (20)\n                        change y by (15)\n                        turn right (((180) - (direction)) / (4)) degrees\n                        change size by ((size) / (-4))\n                        change [ghost v] effect by (13)\n                    end\n                    delete this clone\n                else\n                    if <<(costume [number v]) > [6]> and <(costume [number v]) < [9]>> then\n                        clear graphic effects\n                        set size to (pick random (40) to (50)) %\n                        repeat (30)\n                            change x by (i1)\n                            change y by (i2)\n                            change [i2 v] by (-1)\n                            change [ghost v] effect by (3.5)\n                        end\n                        delete this clone\n                    else\n                        if <(costume [number v]) = [9]> then\n                            set [ghost v] effect to (0)\n                            repeat (18)\n                                change x by ((x position) / (-4))\n                                change y by ((y position) / (-4))\n                            end\n                            repeat (10)\n                                change [ghost v] effect by (10)\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nbroadcast (intro done v)\n\ndefine Screen Refresh # (#) i (i)\nif <(#) = [1]> then\n    set [i1 v] to [0.03]\n    switch costume to (costume2 v)\n    set [brightness v] effect to (i)\n    go to x: (0) y: (-150)\n    repeat (10)\n        create clone of (_myself_ v)\n        change y by (40)\n        change [i1 v] by (0.03)\n    end\nelse\n    if <(#) = [2]> then\n        repeat (30)\n            set [i1 v] to (pick random (-5) to (5))\n            set [i2 v] to (pick random (10) to (15))\n            switch costume to (pick random (7) to (8))\n            create clone of (_myself_ v)\n        end\n    end\nend\n\nwhen flag clicked\nhide\nstart sound [intro music fully cabulated v]\nset volume to (100) %\nset [ghost v] effect to (100)\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\nset size to (100) %\npoint in direction (90)\ncreate clone of (_myself_ v)\nrepeat (2)\n    Screen Refresh # [1] i [100]\n    wait (0.6) seconds\n    Screen Refresh # [1] i [0]\n    wait (0.6) seconds\nend\ngo to x: (0) y: (0)\nswitch costume to (c1 v)\ncreate clone of (_myself_ v)\nset [brightness v] effect to (0)\nrepeat (30)\n    switch costume to (c2 v)\n    create clone of (_myself_ v)\nend\nwait (0.5) seconds\nswitch costume to (name v)\ncreate clone of (_myself_ v)\nScreen Refresh # [2] i [0]\nwait (2.5) seconds\nset [brightness v] effect to (5)\nswitch costume to (slide v)\ngo to x: (0) y: (-300)\nrepeat (3)\n    create clone of (_myself_ v)\n    wait (0.2) seconds\n    change [brightness v] effect by (30)\nend\n\n@ground\n\nwhen flag clicked\nhide\n\nwhen I receive [second intro done v]\nshow\nforever\n    switch costume to (LV)\nend\n\nwhen I receive [second intro done v]\nforever\n    play sound [Show Yourself - Among Us Original Song \(Instrumental v] until done\nend\n\n@player\n\ndefine Reset || New Level\nclear graphic effects\npoint in direction (90)\ngo to x: (-201) y: (30)\nswitch costume to (1 v)\nset [dead? v] to [0]\nset [xv v] to [0]\nset [yv v] to [0]\nset size to (20) %\nshow\n\ndefine Dead\nset [dead? v] to [1]\nrepeat (25)\n    change [ghost v] effect by (4)\nend\nReset || New Level\n\nwhen I start as a clone\nswitch costume to (3 v)\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-1.5)\nend\ndelete this clone\n\nstart sound [Jump v]\nset [yv v] to [15]\nif <touching (bouncy v)?> then\n\nwhen I receive [second intro done v]\nforever\n    if <<[240] < (x position)> and <(dead?) = [0]>> then\n        broadcast (NAXT LEVEL v)\n        change [lv v] by (1)\n        Reset || New Level\n    end\nend\n\nwhen I receive [second intro done v]\nset [lv v] to [1]\nforever\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nhide\nswitch backdrop to (background v)\ngo to [back v] layer\nclear graphic effects\nswitch costume to (1 v)\nhide\n\nwhen flag clicked\nhide variable [xv v]\nhide variable [dead? v]\nhide variable [lv v]\nhide variable [yv v]\nset [dead? v] to [0]\nset [lv v] to [1]\ngo to [front v] layer\nset size to (20) %\nReset || New Level\nforever\n    go to [front v] layer\n    if <<<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> and <(dead?) = [0]>> then\n        switch costume to (1 v)\n        change [xv v] by (1)\n    end\n    if <<<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> and <(dead?) = [0]>> then\n        switch costume to (2 v)\n        change [xv v] by (-1)\n    end\n    set [xv v] to ((Xv) * (.9))\n    change x by (Xv)\n    if <touching (ground v)?> then\n        change y by (2)\n        if <touching (ground v)?> then\n            change y by (2)\n        end\n        if <touching (ground v)?> then\n            change y by (2)\n            if <touching (ground v)?> then\n                change y by (2)\n                if <touching (ground v)?> then\n                    change y by (2)\n                    if <touching (ground v)?> then\n                        change x by ((Xv) * (-2))\n                        change y by (-5)\n                        if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (10))>>>> then\n                            if <(Xv) > [0]> then\n                                set [xv v] to [-5]\n                            else\n                                set [xv v] to [5]\n                            end\n                            set [yv v] to [13]\n                        else\n                            set [xv v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-0.8)\n    change y by (Yv)\n    if <touching (ground v)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching (ground v)?> then\n        if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (10))>>>> then\n            set [yv v] to [12]\n        end\n    end\n    change y by (1)\n    if <<touching (spike v)?> or <touching (lava v)?>> then\n        Dead\n    end\n    if <(y position) < [-180]> then\n        Dead\n    end\nend\n\nwhen I receive [second intro done v]\nshow\nset size to (20) %\n\nwhen flag clicked\nhide\ngo to [back v] layer\nset size to (0) %\n\nwhen flag clicked\nforever\n    reset timer\nend\n\nwhen [timer v] > (0)\nhide\n\n@light for platformer\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [second intro done v]\nshow\nforever\n    go to (player v)\nend\n\nwhen I receive [second intro done v]\nforever\n    if <key (space v) pressed?> then\n        switch costume to (costume2 v)\n        wait (2) seconds\n        switch costume to (costume1 v)\n        wait (8) seconds\n    end\nend\n\n@spike\n\nwhen I receive [second intro done v]\nshow\nforever\n    switch costume to (LV)\nend\n\nwhen I receive [second intro done v]\nshow\n\nwhen flag clicked\nhide\n\n@lava\n\nwhen flag clicked\nhide\n\nwhen I receive [second intro done v]\nshow\nforever\n    switch costume to (LV)\nend\n\nwhen I receive [second intro done v]\nshow\nforever\n    set y to (([cos v] of ((timer) * (150)) ) * (7))\n    wait (0) seconds\nend\n\n@thumnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset size to (100) %\ngo to [front v] layer\nset [ghost v] effect to (100)\n\n@Sprite1\n\nwhen flag clicked\nhide\n\nwhen I receive [second intro done v]\nshow\nforever\n    switch costume to (LV)\n    if <(LV) = [10]> then\n        hide\n    end\nend\n\n
============== Light  A Platformer ================ \n\nMOVE: use youre arrow keys and mouse to move\nMORE  LIGHT: To get more light just prees space but you have to wait 8 seconds for it to recharge.\n\n\n\n\n============== All Levels Possible ===============