Dynamic Shadow Script

Hello there 😀
I'm looking for a Script similiar to this http://www.rpgmakervx.net/index.php?showtopic=5623&st=0 by Painhurt.
It's a three parted Script where the second one allows you to create a light source on your maps which can

generate shadows for your events and characters, thats what I'm looking for.
Example:
111200830109amuu6.jpg

(this is a Screenshot by Painhurt)
The fire is marked as the light source and the Events/Characters cast the shadows.
 
Also if there is someone wo could port this from the original VX to VX Ace I would also be really happy.
Here : http://galvs-scripts.com/category/rmvxa-scripts/audiovisual-effects/#post-662
Thank you Chaos17!

I tried that script and it's causing weird bugs 🙁

If I walk past the lightsource above it the shadow ist casted upside down and if I stay next to it its facing in the wrong direction etc.

Under the light source it works fine.

54s9mofu.png


Maybe someone knows what to do 🙁
I don't understand - the screenshots look like it is working to me.


You have 2 shadows, one appears to be from the unlit torch the character is standing next to, the other I am guessing is from the campfire on the right.


I would turn the strength of the shadow down so the campfire doesn't create a shadow from that range.
I think the problem is in the "mirror" effect.

If you set the light source at, say, position X, you get a different shadow sprite depending if you are under it (1 tile below) or 1 tile higher.

The shadow sprite looks like it is mirrored. You can see it best with the hair shadow.
Oh, I didn't notice the shadow was mirrored, I see.

I recommend checking for script conflicts

Oh, this seems like a bug I never noticed. I will have to fix this when I have some time.
Thank you very much Galv :kiss:
Updated the script, grab the latest from:

http://galvs-scripts.com/galvs-character-effects/

Let me know if I broke anything... heh
So far it looks like it's working perfectly well.

Thank you !
Updated the script, grab the latest from:

http://galvs-scripts.com/galvs-character-effects/

Let me know if I broke anything... heh
Awesome Script, but i have to make a bug report:

The shadows are facing wrong when you are to the right or to the left of the light source. Uhm, i'm terrible at english, so a pic to show it:

[IMG]http://s14.directupload.net/images/131207/fc63rbur.png[/IMG]

(shadow made darker to see it better.)

The shadow should face in the same direction as the actor, shouldn't it?

(Below and above the light source works just fine btw, so good job 😀 )
The way the shadows work is it uses the same graphic as the event/player/follower is using. I didn't make it take into account charset direction changes for the shadow depending on the character's position in the light (mainly because I use it mostly for events without directional graphics.)


I might add the option for this at a later point


Unless I am missing what you mean 😀
The way the shadows work is it uses the same graphic as the event/player/follower is using. I didn't make it take into account charset direction changes for the shadow depending on the character's position in the light (mainly because I use it mostly for events without directional graphics.)

I might add the option for this at a later point

Unless I am missing what you mean 😀
Well, it's no big deal. Most players won't even notice it, i just wanted to report this in case it's an easy to fix bug you can fix when you're updating the script next time.

So to be clear:

With a normal structured charset, when you are standing at the same Y-Coordinate like the light-source, the shadow will face in the wrong direction.

How it is:

[IMG]http://s14.directupload.net/images/131207/fc63rbur.png[/IMG]

How it should be:

[IMG]http://s1.directupload.net/images/131207/j9lwrill.png[/IMG]

But thanks for the awesome script anyway. It makes some of my scenes look awesome 😀

Original thread: https://forums.rpgmakerweb.com/threads/dynamic-shadow-script.20659/