just need some help with coding a light that emits from the player to light up the environment and i just don’t know where to start, being able to toggle the light and disable the darkness on some levels would be nice but I wouldn’t mind making the whole game dark. Here’s the game: Flowlab Game Creator - New Game I haven’t come up with a name yet lol, also any feedback would be appreciated, thank you!
1 Like
A simple example for this can be found on the examples page, which pretty much adds a vignette that partially hides the game world: Flowlab Game Creator - Simple Lighting
You could also create a light object for your torch, that would attach to it and use Blending to cast artificial light on your environment.
1 Like
I like it, good work.
1 Like
i got it to work partially but i need someway to change where it rotates from, the sprite rotates from the center instead of the first end of the light, yet again i cannot thank you enough for your help
1 Like