Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hello, again.

How do I register a custom light in MZ?

I'm trying to use it but the plug in keep saying that the custom light is not registered. 

I'm setting like: Ref [name] -> Value [test] and Image [.png] -> Value default on plug in manager.

Then, on the event, I set Comment : [light test].

When I start de game, It shows "Cannot find light named [test]. Please register lightning before use"

I'm really doing something wrong, aren't I?

(+1)

Hello!

Can you use the default lighting normally?

Be sure that in the Ref [name]: section is "test" without quotes. Also I strongly recommend to use the newest comment syntax: [<light_name> -<setting_name> <value> ...], by this you can freely override any default settings as you want for individual light. For example, if you just want to modify the light  "test" radius and status, use [test -radius 120 -status off] instead of create a new custom light. 

Also be sure that the image are properly located in /img/lights/, you can check this by double click on the Image [.png] setting and see if it show the image.

Regard!

Hi! 

Yeah, the custom light is working properly just like the shadows and etc. 

I'll try what you suggested. 

Thank you  :)