@khas
I absolutely love this script. After the initial learning curve, it's actually pretty easy, for me anyway, to set things up just the way I need. However, the problem I was running into with one project I'm working on is that there are 5 lights all flashing different colors at different intervals. Getting it going was no problem and it ran fine in my system. However, on one of my partner's system, the scene with these lighting effects was unplayable due to lag. It was the same exact project files to the T that worked fine on my end. However when he disabled your lighting script it ran fine on his system too. So with that being said, I have two questions
1. Is the next iteration of this script going to be better on systems performance-wise?
2. Is there an ETA on the next release? Itching to try it out!
@shaynec1981
Thank you! Well, lighting scripts have always been something heavy on RPG Maker, mainly because we can't use the GPU with it.
1. I've coded a custom dll to handle all the lighting processes, so performance is a lot better on the new version. Also, there's a settings menu in which the player can optimize the game for his machine ^^
2. I think mid april! I'm working on a last-minute ideas 😀
Hey Khas! I recently got the latest update and I get an error saying this:
Script 'Khas Awesome Light Effects' line 952: NoMethodError occured.
undefined method 'restore' for nil:NilClass
Is the latest update working fine or should I get an older version?
@blackhyp3r
What does this line contain?
Also, when does this error happen?
It happens whenever I try to load a save file.
Do I have to start the game from the beginning maybe?
Um, at the risk of sounding really stupid, I don't see the how-to-use instructions anywhere. I didn't see any instructions in the project or out of it. Where are they?
They are in the script itself. In the project, open the script editor and click on the script.
@blackhyp3r
Yes, you'll need to start a new game.
@musty260
You may use winrar to decompress it.
Hey, so I've been using this script and ran into a problem that I haven't been able to solve. My googling found this thread, and I registered to ask for help.
In my game, I'm using a Show Picture Parallel Process to indicate the player's health. The problem is that the lighting effects cause the picture in question to be difficult to make out. Earlier in the thread, it was suggested to make it a Light, but I need the image in the top-left corner at all times, and Lights can apparently only be attached to events, not the screen itself. How can fix this so that the picture I'm using for health doesn't change tones depending on the map's lighting?
@lizardbite
Change Surface_Z to 50 (on the script settings). Let me know if this doesn't work 😀
Changing Surface_Z to 50 worked. I thought I'd tried that earlier, but I guess I didn't save before testing (d'oh!). Thank you very much!
Is it possible to make event's check if light is on them?
If not, I don't expect to see it. Just thought it could make for a interesting puzzle using lighting on events to solve it.
Is it possible with script calls and conditinal branches?
Directly check? No, however you could determine the absolute value between the player and event to check if they're in a pre-determined radius that would match up with the lights' radius (or however you've setup the image).
@oddball
Yes, there is. Copy and paste this code below Awesome Light Effects:
module Light_Core Lit_Pixel = 100 Pix_Min = 255 - Lit_Pixel # Don't change this! def self.lit?(e) return false unless $game_map.light_surface ex = e.screen_x ey = e.screen_y return false if ex < 0 || ey < 0 || ex >= 544 || ey >= 416 pix = $game_map.light_surface.bitmap.get_pixel(ex, ey) pix.red < Pix_Min || pix.green < Pix_Min || pix.blue < Pix_Min end endYou can change the Lit_Pixel constant to modify the sensitivity of the method.
Use Light_Core.lit?(character) for testing if a character is currently lit by some light.
character may be the $game_player, self_event or $game_map.events[x]
Let me know if you need more instructions!
Any news on the latest release? 🙂
Probably on next month, there's some stuff that needs to be done before the release.
Apologies for the inconvenience =\
Darn someone just asked. Khas take your time man. I am eagerly awaiting the results.
Hi!
So i got the script and it works like a charm! Nice work!
Now my question is, is there a way to implement the lantern effect as skill so you can turn the lantern on or off? I already figured out how to turn it on but now how to turn it off.