![[CGMZ] Light Effects for RPG Maker MZ](https://img.itch.zone/aW1nLzExMDUxNjQ0LnBuZw==/original/4f2wLd.png)
[CGMZ] Light Effects for RPG Maker MZ
A downloadable plugin
Hi all,
This plugin adds a simple, lightweight light effect system to your game, with lights being a simple image that you set up the flicker, scale, opacity, color tone, and more. It is a port of my VX Ace Light Effects script, enhanced for RPG Maker MZ.
Simple Lights
This plugin aims to be easy to use. Once a light is set up in the plugin params with its flicker and other options, simply put a comment event command on the event you'd like the light effect to show up on. Here is a gif showing some common light effect features, such as flicker and a breathe effect on the campfire:
Player Light
This plugin also allows you to attach light effects to the player. This can be useful if you have a dark area in your game with light coming from the player to allow them to see nearby. This is how it could look:
Proximity Lights
This plugin can create proximity based lights which will automatically turn on/off based on distance to the player, provided the global light is on and the light type is not disabled. Here is a gif of how that can look:
Directional Lights
This plugin supports lights that change direction to match the direction of the object they are attached to. This can be useful for lights that are more pointed, like a flashlight. See below gif for how it can look:
Rotating Lights
You can set the initial rotation of your non-directional lights (their rotation is controlled by the character direction). You can also cause the rotation to update either forward or backward, to create lights that move in a circular motion. See gif for an example of how this effect can look:
Roadmap
As always, this plugin is still in beta and having more features added to it. If you would like to see some feature not already in the plugin, please leave a comment down below.
PLEASE READ BEFORE PURCHASING:
Please be aware that you can access this as well as all of my other Beta plugins for $3 on my Patreon: https://www.patreon.com/CasperGamingRPGM
This is posted to Itch.io since some people only use Itch and are not aware my Patreon and all of my beta/alpha plugins exist, or want to have everything in one convenient location (itch.io), or do not want to do a monthly subscription.
Casper Gaming's Beta/Alpha plugins are treated as an "early access" and will eventually be free for everyone once they are fully released, though this process can take months/years. By purchasing in beta/alpha, you are able to provide early feedback/suggestions which are more likely to make it into the final fully released plugin.
Quick Facts
✅ RPG Maker MZ
✅ No obfuscation
✅ All future updates included
✅ No AI used at any point in the creation of this plugin
Credit & Requirements
Please see terms of use here: Terms of Use
Requires CGMZ Core plugin: CGMZ Core
Happy RPG Making!
Status | In development |
Category | Tool |
Rating | Rated 5.0 out of 5 stars (2 total ratings) |
Author | Casper Gaming |
Made with | RPG Maker |
Tags | cgmz, mz, No AI, RPG Maker, RPG Maker MZ |
Average session | A few minutes |
Languages | English |
Inputs | Keyboard, Mouse, Gamepad (any), Touchscreen |
Links | Homepage, Community, Patreon, YouTube |
Purchase
In order to download this plugin you must purchase it at or above the minimum price of $3 USD. You will get access to the following files:
Development log
- Version Beta R7 Release Notes46 days ago
- Version Beta R6 Release NotesDec 21, 2024
- Version Beta R5 Release NotesJun 27, 2024
- Version Beta R4 Release NotesDec 22, 2023
- Version Beta R3 Release NotesNov 21, 2023
- Version Beta R2 Release NotesNov 01, 2023
Comments
Log in with itch.io to leave a comment.
Hello,
I bought the plugin and did some tests, just discovered that there is a conflict between this plugin and KC_mirror plugin (plugin that add character reflection)
I know that you shouldn't make your plugin compatible with every others but i wanted to check with you in case you know where the issue come from:
With both plugin activated, the player sprite blink for a second and events too after closing the menu.
Also, my water parallax layer blink and appear on all the map for a second.
I tried to disable yours and the error doesn't occurs
Do the plugin touch on Game scene / Game menu ?
Hi, I have added both KC_mirror and CGMZ Core/Light Effects to a project and do not notice the issue. Do you have any more reproduction steps so I can try to get the issue to occur?
Hello,
It seems to be a problem with parallax mapping plugin, sadly i need to use it also
I am using TSR_MapOverlay and it blink when exiting the menu, i'll try on a fresh project
So the conflicting plugin is TSR_MapOverlay and not KC_mirror? If you could narrow it down a bit and let me know what I need to do to reproduce it in my project it would help a lot in troubleshooting what could be happening.
Okay I finally found out what cause this issue even I don't know how to fix it
I don't know which plugin between these two cause that but when KC_Mirror, your light plugin and Map overlay are activated:
- If you change the screen tone of the map (yellowish for my map) and you open and close the menu, the water parallax that is on value z-1 blink.
I tried with Galv_Layermap plugin and it blink also, bit less but still
I also tried to put the z value lower, but it also make some event blink
If I disable one or another, the blink doesn't occur on the parallax map
I just tried to remove the screen tone on a fresh and let the two plugin active, everything works, then I put an event that change the tone on the same map and I have the issue
It's pretty uncommon and I have no idea how to fix this but I'll look a bit more
Hi, as TSR_MapOverlay is a paid plugin it will be difficult for me to troubleshoot the conflict. Before I contact the author and see if there is anything that can be done, could you try changing the order of the plugins in the Plugin Manager and seeing if that solves anything?
Hello, that's exactly what I was looking for.
Since most of plugins automatically darkens the area, it doesn't match with Parallax that much.
Since I only want to add simple add flickers light to my maps, is there a way to offset the light source by few pixels ? (Parallax Mapping)
Hi, yes every light effect comes with an X, Y, and Z offset.
This is perfect, thank you so much
Just bought, tried out and damn man, this woulda been great for my project if it could handle more than a few lights on the map at a time 'cos it's much easier to use than most other lighting effects script i've tried.
As soon as I start putting more than 3 lights on a map my game takes a bad FPS hit. I had 8 lights on a map and it dropped my fps down to 22fps. :( Looks like i'm sticking to just the old fashioned way right now with an image in an event. :(
Hopefully you can get around to reworking this script at some point so it competes better with other more complicated lighting effect scripts that can have 30+ lights on a map with no fps issues.
Hi, I am not sure why it would be dropping your FPS so much with so few lights, I have a test map with 120 lights with no issues. Can you open up the dev tools, switch to the Performance tab, click Start Recording and then wander around in the laggy map for around ~10-15 seconds and then click Stop Recording and show me the results in the Bottom-Up tab?
Edit: Since performance testing is a little tricky and may require quite a lot of back and forth testing, you can also come into my Discord for help, it would probably be easier to troubleshoot than itch.io comment section.
Sorry i've deleted my last 2 posts, and i apologize for thinking it's your script, I don't think it is now.
It seems that it's happening without your script when ive tested further.
It was probably just the fact I didn't notice the issue until i used your lighting script and instantly assumed it was your script causing it, so apologies for that.
I think it's a problem with a parallel process I have running to display a quest marker over the head of the NPC.
When I pick the quest up when the FPS has dropped the fps returns back to normal and there's no issue after.
You could maybe use [CGMZ] Event Names to accomplish showing a quest marker above an NPC, though you would need to use separate event pages to get it to display / not display. It supports icons and can even have a float effect applied to it.
Would you consider creating a cone light option like what you would see from a flashlight?
Hi, the light is just an image, you could make a light image cone shaped to show a cone light for a flashlight.
That's makes sense. The question is would it maintain the direction of the character as they turn? Thank you for the great plugin and quick responses!
Ah ok, I see what you mean. I thought you just wanted a different shaped light.
In that case, no it would not turn with the character. You may be able to event it by setting up 4 lights, and changing the light id assigned to the player based on the direction they are facing. But I can look into adding lights changing with direction of the character they are tracking as a feature in a future update as well.
Hi, I just wanted to let you know that this plugin was updated today to support lights that change direction with the object they are attached to.
Thank you for letting me know. Great plugin support!
Hey is it also possible to have Items use that effect? if so how? ^^ Thank you :D
Hi, I am not sure what effect you mean, but you could have your item call a common event and then in the common event turn lights on or off.
Like a torch you can pick up and use as light sorce in a dark cave
Oh ok, yes you could turn it on through having your torch item call a common event then
Could you show me, how that should look like? :D Thank you ^^
Hi, in your item, add effect -> Common Event
Then in the Common Event add event command -> Plugin Command -> CGMZ Light Effects -> Set Player Light and type in a light id from your light parameters you set up in the Plugin Manager.
i'm using mz right now and used the plugin command, which command name sets the light to turn on?
Hi, you can use the Change Visibility plugin command to turn all lights on/off. If your light is not showing, double check that you added an event with the comment from the documentation to turn the event into a light.
how do i add an event with the comment?
Hi, from the map editor, double click on a tile to create an event. From there, in the Contents section of an event, double click to add an event command. On page 1 of the event command window, all the way at the bottom left will be an event command called "Comment..." - click on this. In the comment box that opens up, type "CGMZ LE your_light_id_here". For example, if you had a light with an id of "light2" it would look like this:
how do i check what my light id is?
Hi, when you made your light effect in the plugin parameters, the first parameter is called "id". That is the id of the light. It looks something like this:
is this compatible with mv and if so, how do i use it?
Hi, this is only for RPG Maker MZ.
Doesnt work with parallax, light and character dissapear on map.
Hi, by default the lights copy the event's Z value and add 3 to it to make sure it is above the event. In a future update I am adding the option to change the Z value in the plugin parameters, but in my tests it works with the map's parallax setting enabled as is. This plugin does not touch the character so it should not have any affect on if the character appears or not. Are you showing a picture above the map itself?
Yeah im using full parallax no tilesets
With GALV Plugin
Could you try putting a lower z value on the layer in that plugin? It sounds like you have made your layer above everything, including the player character.
Hi, someone else ran into the issue in my Discord and was able to solve it by moving Galv's plugin above mine in the Plugin Manager. If you are still having the problem, could you try that and let me know if it works?
When will the daily rewards plugin be released in early access?
Hi, I am not sure what you are asking. Do you mean when it will be posted to itch.io ?
Yeah, exacrly!
I have been posting them to Itch.io when they are next updated, and new ones to reach alpha stage will be posted here automatically. It is a little bit of work to get them ready for itch.io so posting them all here at once would be a lot of work that would take away from developing new plugins or updates from existing plugins.
I can prioritize an update for the daily rewards plugin to get it ready for itch.io though, probably will have it ready within the next few weeks.