Dynamic Shadow Script

Kaia

Villager
Member
Joined
Mar 1, 2013
Messages
23
Reaction score
11
First Language
German
Primarily Uses
Hello there :D
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:

(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.
 

Kaia

Villager
Member
Joined
Mar 1, 2013
Messages
23
Reaction score
11
First Language
German
Primarily Uses
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.



Maybe someone knows what to do :(
 

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,306
Reaction score
1,575
First Language
English
Primarily Uses
RMMZ
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.
 

cabfe

Cool Cat
Veteran
Joined
Jun 13, 2013
Messages
2,353
Reaction score
2,549
First Language
French
Primarily Uses
RMVXA
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.
 

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,306
Reaction score
1,575
First Language
English
Primarily Uses
RMMZ
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.
 
Last edited by a moderator:

Kaia

Villager
Member
Joined
Mar 1, 2013
Messages
23
Reaction score
11
First Language
German
Primarily Uses
Thank you very much Galv :kiss:
 

cabfe

Cool Cat
Veteran
Joined
Jun 13, 2013
Messages
2,353
Reaction score
2,549
First Language
French
Primarily Uses
RMVXA
So far it looks like it's working perfectly well.

Thank you !
 

Kwabi

Warper
Member
Joined
Dec 7, 2013
Messages
2
Reaction score
1
First Language
German
Primarily Uses
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:



(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 :D )
 
Last edited by a moderator:

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,306
Reaction score
1,575
First Language
English
Primarily Uses
RMMZ
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 :D
 

Kwabi

Warper
Member
Joined
Dec 7, 2013
Messages
2
Reaction score
1
First Language
German
Primarily Uses
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 :D
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:



How it should be:



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

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,864
Messages
1,017,056
Members
137,573
Latest member
nikisknight
Top