Zeus Lights & Shadows

Zeus81

Veteran
Veteran
Joined
Mar 17, 2012
Messages
164
Reaction score
150
First Language
French
Primarily Uses
Zeus Lights & Shadows
by Zeus81
 
This script allows you to display lights effects and shadows.
There are already a lot of scripts to do that, but my goal with this one is to do something different.
Thus lights illuminate the night, ie you can set the screen tone to whole black (-255) and lights will act like holes in a mask and will allow us to see the map clearly.
The shadows on the other hand are not dynamic, lights generate no shadow, shadows must be placed manually, much like on VXace, we can consider that they are all shadows of the sun.
The shadows are not superposed (which is absurd), but merged.
The shadows are not above but below all, you can have the head passes in front of a shadow, however characters darken when they walk in the shade.
The opacity of shadows declines with the brightness of the map, ie no shade from the sun at night.
Auto shadows of VX and VXace are managed by this script.
There's also an option to disable them at the very beginning of the script.

Script
http://pastebin.com/raw.php?i=VpHHBuaW

How to Use
http://pastebin.com/raw.php?i=9bnzSHCw

Demo
https://www.dropbox.com/sh/cajvk3wf6ue0ivf/QA9zgrm2Vx




We can do much more effects than what I shown by using several at the same time or just by changing settings.
 
Last edited by a moderator:

Mithran

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
404
Reaction score
216
First Language
English
Primarily Uses
I love the initiative on having multi-version support for having one script. I noticed you made duplicate threads for this in each of our scripting subforums so I went ahead and changed them to links that all point here so they can still be visible and you only have one thread to manage.
 

ShinGamix

DS Style 4Ever!
Veteran
Joined
Mar 18, 2012
Messages
3,905
Reaction score
451
First Language
April Fools
Primarily Uses
N/A
I may have to change out my light effects now.
 

Lamsah

Villager
Member
Joined
Jun 2, 2013
Messages
26
Reaction score
5
Primarily Uses
After fiddlin with the demo, i was really shocked how good this light effects are. 

I may have to change out my light effects now.
No kidding right! I am using khas lighting effects which limits me so bad. Khas lighting effects is pretty much incompatible with a lot of good scripts but i do love how the walls cover the lighting though in khas lighting effects. Any plans in implementing the same idea on how lights gives out shadow effects on tagged terrain ID like in khas effects? 
 

Zeus81

Veteran
Veteran
Joined
Mar 17, 2012
Messages
164
Reaction score
150
First Language
French
Primarily Uses
Yes Khas script has a very good effect with square walls but I don't plan doing something like that.

I love the initiative on having multi-version support for having one script. I noticed you made duplicate threads for this in each of our scripting subforums so I went ahead and changed them to links that all point here so they can still be visible and you only have one thread to manage.
Cool, thanks, I have some other duplicates threads like that if you don't mind.

Or is there a way I can do it myself (eventually for future scripts) ?
 

Mithran

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
404
Reaction score
216
First Language
English
Primarily Uses
If the threads don't have any other posts, just report or PM me and I can put up a link for you. It might actually be better to just have a thread with a permalink, so if you want you can just replace the post with a link to your 'main' thread and request it to be closed, eg.


This script has multi-version support, see my main thread here:


http://forums.rpgmakerweb.com/index.php?/topic/16040-zeus-lights-shadows/


Or you can just leave them as is, there is no problem having duplicate threads for different maker versions as the discussions within them would differ (support etc). I just thought this would be easier in the event you needed to make a revision to the initial thread (eg. to update links or description in the event of a major revision) that it would be easier to have one thread.
 

pinkapinkie

Veteran
Veteran
Joined
Mar 30, 2012
Messages
69
Reaction score
6
First Language
Italian
Primarily Uses
Looks like your script is not compatible with Neon Black's terrain tags.

http://cphouseset.wordpress.com/scripts/cp_terrain/

There seems to be a problem when I put a terrain tag which makes the player walk below tiles.

Your script blocks the passage.

Would be great if you could make them compatible!
 

djDarkX

Retro & Remastered Music Guru
Veteran
Joined
Jan 17, 2013
Messages
2,698
Reaction score
1,894
First Language
Music
Primarily Uses
RMMV
I assume the shadow blending and the way shadows only appear above the characters correctly works with overlay pictures?  I'm using ModernAlgerba's Fixed Picture script or overlays, but whenever I place a shadow map on top, well, it becomes annoying because if the head of the character passes by it, the shadow covers them, even though it doesn't make sense in a real world setting.

Right, so I assume it does indeed work with picture overlays?
 

Zeus81

Veteran
Veteran
Joined
Mar 17, 2012
Messages
164
Reaction score
150
First Language
French
Primarily Uses
I've not tested but I guess it should work.
 

phoenix_rossy

Veteran
Veteran
Joined
Nov 5, 2012
Messages
388
Reaction score
189
First Language
English
Primarily Uses
Out of curiosity, what are the usage terms on this? 
 

Zeus81

Veteran
Veteran
Joined
Mar 17, 2012
Messages
164
Reaction score
150
First Language
French
Primarily Uses
That's written in the first lines of the script :

Code:
# Free for non commercial use# Licence : [URL="http://creativecommons.org/licenses/by-nc-nd/3.0/"]http://creativecommons.org/licenses/by-nc-nd/3.0/[/URL]
 

djDarkX

Retro & Remastered Music Guru
Veteran
Joined
Jan 17, 2013
Messages
2,698
Reaction score
1,894
First Language
Music
Primarily Uses
RMMV
I've not tested but I guess it should work.
I'll look into this then.  I'd really like it if it did since realistic shadowing is something that'd be nice in a 2D RPG. :D

Oh, by the way, fantastic script!
 

Laptopdancer

Gaymerz Rock!
Veteran
Joined
Oct 22, 2012
Messages
158
Reaction score
20
First Language
English
Primarily Uses
Fantastic Work. Is there a fee for commercial games. I looked everywhere for your terms... Also Noobishly though I've read your directions, I can only emit light from one (candle or latern) on a map cause I don't understand how to call the lighting on events... Can you tell me what to do?
 

Zeus81

Veteran
Veteran
Joined
Mar 17, 2012
Messages
164
Reaction score
150
First Language
French
Primarily Uses
Have you tried looking at the demo ?

There's some concrete example on it.

To setup a new light inside an event you can do things like that :



About commercial I send you a pm.
 

Zeus81

Veteran
Veteran
Joined
Mar 17, 2012
Messages
164
Reaction score
150
First Language
French
Primarily Uses
New version with a fix for rmxp.

Code:
  Log Change :    1.2 :      - fixed bug on XP      - added quick overview of functions in documentation
 
Last edited by a moderator:

supercow

Artist
Veteran
Joined
Jul 16, 2013
Messages
383
Reaction score
146
First Language
indonesia
Primarily Uses
very very nice  :rock-left:   BD   :rock-right:   i like it very much, this is probably the best light system i know.

is there a way though to make the light not being able to pass certain terrain? (on xp) or make it cut on impassable object?.
 

Laptopdancer

Gaymerz Rock!
Veteran
Joined
Oct 22, 2012
Messages
158
Reaction score
20
First Language
English
Primarily Uses
is it possible to shut off the shadow portion of this script? I want the lighting system but due to compatibility issues it does a weird thing to certain tileset tiles. Can you tell me whats string and how to modify it?
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Any thoughts on my hexagon map system?
Idk where this post would go, so how do you change the font of the choice selection window? I have a different font for the game so it looks a little odd could someone tell me where this would go on the forum?
RPG Maker MZ demo -project with some new features:
I don't really have a use for this guy, I just wanted to build a plague doctor.

Join us for a session of the new update starting at 3PM EST! There will be a Steam code giveaway! Click here!

Forum statistics

Threads
104,616
Messages
1,007,585
Members
136,092
Latest member
Anansi
Top