Shadows ?!

Discussion and feedback on Construct 2

Post » Sat Sep 08, 2012 5:56 pm

Hey guys !
I have problems again !
How can I simulate the shadows (lighting effects) in the r100 release !
Like in
http://www.youtube.com/watch?v=YDaa3Cq6c7M

Thank you !!

Edit : Wrong Category , Sorry X)kbdmaster2012-09-08 17:56:33
B
41
S
17
G
17
Posts: 2,247
Reputation: 17,436

Post » Sat Sep 08, 2012 6:00 pm

It looks like simple sprites od Tilebgs with lower opacity. Nothing realtime/dynamic in this trailer.
ImageImageImageImage
B
155
S
63
G
41
Posts: 2,588
Reputation: 34,466

Post » Sat Sep 08, 2012 7:41 pm

@shinkan ,
But I need to make dinamic shadows that change depending on the light source position ! Can anyone help me ?
B
41
S
17
G
17
Posts: 2,247
Reputation: 17,436

Post » Sat Sep 08, 2012 8:19 pm

Make a light source object and a black square object.
Set the black square object's height and opacity depending on the distance from the light source.
Pin the black square object from a point at the bottom of the black square object to the shadow casting object and set its angle to the opposite direction from the light source using Angle().
B
37
S
11
G
6
Posts: 962
Reputation: 11,254

Post » Sat Sep 08, 2012 8:20 pm

I'm sorry :/
I've asked about that couple of times now. There a Rojo's example using his Canvas plugin, but it's not perfect.
ImageImageImageImage
B
155
S
63
G
41
Posts: 2,588
Reputation: 34,466

Post » Sat Sep 08, 2012 8:22 pm

@Rory that's nice and simple walkaround - done something similar already.
But it's not a dynamic shadow,and won't work with round objects.
ImageImageImageImage
B
155
S
63
G
41
Posts: 2,588
Reputation: 34,466

Post » Sat Sep 08, 2012 8:25 pm

@Rojohound ?
B
41
S
17
G
17
Posts: 2,247
Reputation: 17,436

Post » Sat Sep 08, 2012 8:30 pm

[QUOTE=R0J0hound] They've been possible but there is no plugin to make it simple.

Here is a way to implement it using the canvas object to draw the shadows.
http://dl.dropbox.com/u/5426011/examples14/shadow_cast.capx[/QUOTE]
ImageImageImageImage
B
155
S
63
G
41
Posts: 2,588
Reputation: 34,466


Return to Construct 2 General

Who is online

Users browsing this forum: abhishan, Solomon and 9 guests