How do I add a simple drop shadow to a sprite?

Just started using Construct 2? Post your questions here

Post » Fri May 13, 2016 9:50 pm

Hi

I'm new to Construct 2 but really loving it!

I'm porting in a simple game made with html5 dom that uses drop shadow on png images.

I need the shadow to be a simple outline shadow on the sprite/png that observes the edge of the image. This is easily done in css with:

Code: Select all
.shadowfilter {
   filter: drop-shadow(12px 12px 7px rgba(0,0,0,0.5));
}


An example can be seen here:
http://thenewcode.com/598/boxshadow-property-vs-dropshadow-filter-a-complete-comparison

I've tried the ShadowLight object with the ShadowCaster behavior but it's overkill - the shadow does not need to move with lighting, and it doesn't render correctly on my sprite (e.g. the edges are wrong).

Is there a simple way to add static filter shadows to a sprite, or am I doing it wrong??
B
7
S
2
Posts: 22
Reputation: 529

Post » Fri May 13, 2016 10:11 pm

What I know would fill a Book , what I don't know would fill a Library
B
37
S
12
G
29
Posts: 331
Reputation: 16,499

Post » Sat May 14, 2016 7:11 pm

Great, that's much better. Thanks.
B
7
S
2
Posts: 22
Reputation: 529


Return to Beginner's Questions

Who is online

Users browsing this forum: FartsLolz and 2 guests