[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
5
G
8
Posts: 1,215
Reputation: 7,834

Post » Wed Mar 30, 2016 10:59 pm

Works fine for layers.

Been needing this for a while.
Thanks.
Image ImageImage
B
171
S
50
G
180
Posts: 8,396
Reputation: 113,986

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
136
S
31
G
87
Posts: 5,493
Reputation: 60,272

Post » Thu Mar 31, 2016 3:58 pm

@newt
@zenox98

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

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,451

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
5
G
8
Posts: 1,215
Reputation: 7,834

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
73
S
14
G
1
Posts: 152
Reputation: 5,026

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
5
G
8
Posts: 1,215
Reputation: 7,834

Post » Thu Apr 07, 2016 1:38 am

@chrisbrobs

Looks very cool, can't wait to try it out, thanks for sharing!:)
B
61
S
17
G
5
Posts: 186
Reputation: 9,039

Next

Return to Effects

Who is online

Users browsing this forum: No registered users and 0 guests