Drop shadow

Get help using Construct 2

Post » Tue Apr 17, 2012 7:22 pm

I was asked to add drop shadows to my platform game so it is not as flat.   I not sure what the best way to do this would be.
B
4
G
1
Posts: 15
Reputation: 1,030

Post » Tue Apr 17, 2012 7:58 pm

Adding sprite's instances that are the visual representation of the shadows and are pinned/positionned to the character/element's position.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Wed Apr 18, 2012 12:19 am

I'm sure this is on its way via WebGL shaders, but for the moment, another method besides using additional alpha-adjusted objects would be to use the SVGCanvas plugin, then use filters like in the following example.

SVGCanvas Text Drop Shadow

Here's the .capx: svgcanvas-text-drop-shadow.capx

It uses the drop shadow filter from the awesome and free, Inkscape and you can use any of the filters Inkscape provides by simply saving the SVG file, then copy-pasting the <filter> code.

Kudos to all those designer/developers who provide those incredible filters! And more better kudos to Pode for the SVGCanvas!

Cheers!
-DavidM
B
126
S
7
G
4
Posts: 185
Reputation: 7,233


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 0 guests