Solved How to set object's shadow as same sprite

Question that is answered or resolved.

mulambo

Member
Is there a script or a way to make the sprite cast a shadow that's not a fixed sprite but the darken reflection (possibly stretched in height, or with adjustable height) of the same character?
Asking this because many enemies, when falling in lie-down state, their shadow keeps the same lenght (shorter than they really are) and to make the chars and objects more realistic....
Thank you in advance, and sorry for the many questions so far..
 
Solution
mulambo said:
Is there a script or a way to make the sprite cast a shadow that's not a fixed sprite but the darken reflection (possibly stretched in height, or with adjustable height) of the same character?
Asking this because many enemies, when falling in lie-down state, their shadow keeps the same lenght (shorter than they really are) and to make the chars and objects more realistic....
Thank you in advance, and sorry for the many questions so far..

Are you referring to gfxshadow?

gfxshadow {int} {shadowbase}

~Changes entity's shadow effect.
0 = (default) Use generic shadow set.
1 = Use entity's current frame for the shadow. Yes, the shadow will be more realistic with this. The angle and length of shadow is defined by 'light'...
mulambo said:
Is there a script or a way to make the sprite cast a shadow that's not a fixed sprite but the darken reflection (possibly stretched in height, or with adjustable height) of the same character?
Asking this because many enemies, when falling in lie-down state, their shadow keeps the same lenght (shorter than they really are) and to make the chars and objects more realistic....
Thank you in advance, and sorry for the many questions so far..

Are you referring to gfxshadow?

gfxshadow {int} {shadowbase}

~Changes entity's shadow effect.
0 = (default) Use generic shadow set.
1 = Use entity's current frame for the shadow. Yes, the shadow will be more realistic with this. The angle and length of shadow is defined by 'light' (see below).
 
Solution
mersox said:
mulambo said:
Is there a script or a way to make the sprite cast a shadow that's not a fixed sprite but the darken reflection (possibly stretched in height, or with adjustable height) of the same character?
Asking this because many enemies, when falling in lie-down state, their shadow keeps the same lenght (shorter than they really are) and to make the chars and objects more realistic....
Thank you in advance, and sorry for the many questions so far..

Are you referring to gfxshadow?

gfxshadow {int} {shadowbase}

~Changes entity's shadow effect.
0 = (default) Use generic shadow set.
1 = Use entity's current frame for the shadow. Yes, the shadow will be more realistic with this. The angle and length of shadow is defined by 'light' (see below).

works perfectly, thanks!
 
Back
Top Bottom