LoginLogin
Nintendo shutting down 3DS + Wii U online services, see our post

Light effect in darkness.

Root / Programming Questions / [.]

Z_E_R_OCreated:
How would I make a lantern work? Like I want the terrain to be pitch black and only the light can shine through it.

I'm experimenting with VISIBLE.. But idk how to manipulate it.

I'm experimenting with VISIBLE.. But idk how to manipulate it.
it takes booleans to set whether the sprite, graphics, bg, or text layers are visible. pretty sure that isnโ€™t what you want.

The easiest way is to make a big black sprite with a hole in the middle. (This uses up a lot of room on the sprite page though, and only allows for one light area) You can also use graphics instead, by filling the graphics page with black and drawing circles in it (However, this doesn't allow transparency and you can't use the graphics page for anything else)

Thanks. i'm going to try to tweak the black sprites deal. That might work.