Wanna add a shadow around my charcters vision

im tryna make a horror game but tbh, its not scary enough. I need to add darkness but using the lantern affect with raycasting makes a massive issue. anyone know a fix?

1 Like

you could use a sprite that is relative to the camera that wraps around the screen
(use a background with a blank circle in the middle)

1 Like

how do i do lantern effect..?

1 Like

Lantern doesn’t work with raycasting.

Seal’s option is good, but if you want something like the lantern effect you could put a dithered black sprite a little bit away from the player so it’s harder to see that far away.

Theres some lantern extensions, you can search them up and js type the name in teh search bar for extensions this is the easier one to use, but they have another called multilights thats a bit more difficult but still works pretty easy.

https://github.com/riknoll/pxt-lantern (easy one)

WoofWoofCodes/lanterns (type this one in the search bar for like other cool stuff)

3 Likes

oof, thanks for the advice. I think I found a workaround it though.

1 Like