Wall and Shadow...
sebmacfly
Member Posts: 1,018
Hello there
I need to display a shadow for all my walls in my game...
Here what i'm doing :
My wall actor is 128x32 pixels (graphics horizontal:tile, vertical:fixed)
My shadow actor is 128x32 pixels (graphics horizontal:tile,vertical:fixed)
In my wall actor, i have a behavior, spawn shadow to +10pixels right and 10 pixels down. So using that method, when i place my wall, the shadow is spawning automatically...
The problem is :
When i make my wall more then 128 pixels (example 600) my shadow is spawning to his actor size (128) and not 600 pixels...
I need to spawn the shadow actor to the same horizontal size as the wall actor.
Any help on that?
I thank you!
cheers
I need to display a shadow for all my walls in my game...
Here what i'm doing :
My wall actor is 128x32 pixels (graphics horizontal:tile, vertical:fixed)
My shadow actor is 128x32 pixels (graphics horizontal:tile,vertical:fixed)
In my wall actor, i have a behavior, spawn shadow to +10pixels right and 10 pixels down. So using that method, when i place my wall, the shadow is spawning automatically...
The problem is :
When i make my wall more then 128 pixels (example 600) my shadow is spawning to his actor size (128) and not 600 pixels...
I need to spawn the shadow actor to the same horizontal size as the wall actor.
Any help on that?
I thank you!
cheers
Comments
http://www.imagup.com/data/1109701592.html
If I'm missing something here, let me know.
Asymptoeell