[EFFECT] DropShad effect

Share your Construct 2 effect files

Post » Wed Mar 30, 2016 10:26 pm

Dropshadow effect for 2D player sprite.

Image

Parameters-

1, Rescalefactor - Reduce the shadow height by a percentage (0. = no change)(up to 100=flat)
2, blurAmount - Shadow blur amount. 0 to 6, 4 recommended.
3, shadowOpacity - Shadow opacity. 0 to 100, 16 default.

The effect works best best if your texture is a couple of pixels smaller than the bounding box.
Image

fx files and demo capx-

https://dl.dropboxusercontent.com/u/22173473/DropShadFiles.rar

04/04/2016
'DropShadColor.fx
Added Parameters for Shadow color(rgb)
Last edited by chrisbrobs on Mon Apr 04, 2016 2:19 pm, edited 1 time in total.
B
21
S
6
G
8
Posts: 1,215
Reputation: 7,881

Post » Wed Mar 30, 2016 10:59 pm

Works fine for layers.

Been needing this for a while.
Thanks.
Image ImageImage
B
169
S
50
G
169
Posts: 8,289
Reputation: 108,222

Post » Thu Mar 31, 2016 7:25 am

@chrisbrobs
First impressions.........err wow :)

Very cool effect, young sir!
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
84
Posts: 5,387
Reputation: 58,456

Post » Thu Mar 31, 2016 3:58 pm

@newt
@zenox98

Thanks for your feedback guys.
B
21
S
6
G
8
Posts: 1,215
Reputation: 7,881

Post » Thu Mar 31, 2016 4:29 pm

Hey @chrisbrobs again great job.
Is there any chance in the feature to see an outer glow effect?
Cheers.
B
36
S
15
G
1
Posts: 59
Reputation: 3,441

Post » Fri Apr 01, 2016 2:29 pm

@saour

Is there any chance to see outer glow effect?

https://www.scirra.com/forum/effect-outerglow_t170750

Try the above..only had a day to make it !
B
21
S
6
G
8
Posts: 1,215
Reputation: 7,881

Post » Fri Apr 01, 2016 5:54 pm

This drop shadow effect works really well. I tried it and set it to disable when not on the floor and it really added an extra layer of depth to the player. Thanks a lot for sharing!
B
25
S
12
G
11
Posts: 260
Reputation: 7,923

Post » Sat Apr 02, 2016 4:19 am

+1
B
72
S
14
G
1
Posts: 151
Reputation: 4,999

Post » Mon Apr 04, 2016 2:16 pm

@Bleenx
@remy-jay

Glad to help :D
----------------------------

UPDATE 04/04/16

Added parameters to set the Shadow Color (rgb)

1, red 0 to 100
2, green 0 to 100
3, blue 0 to 100

The FX files have been added to the download in the first post.

Inside the folder named 'DropShadColor fx ' for clarity.
B
21
S
6
G
8
Posts: 1,215
Reputation: 7,881

Post » Thu Apr 07, 2016 1:38 am

@chrisbrobs

Looks very cool, can't wait to try it out, thanks for sharing!:)
B
56
S
17
G
5
Posts: 184
Reputation: 8,908

Next

Return to Effects

Who is online

Users browsing this forum: No registered users and 0 guests