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
34
S
16
G
16
Posts: 2,222
Reputation: 16,564

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
140
S
58
G
36
Posts: 2,547
Reputation: 31,170

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
34
S
16
G
16
Posts: 2,222
Reputation: 16,564

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
36
S
10
G
6
Posts: 948
Reputation: 11,101

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
140
S
58
G
36
Posts: 2,547
Reputation: 31,170

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
140
S
58
G
36
Posts: 2,547
Reputation: 31,170

Post » Sat Sep 08, 2012 8:25 pm

@Rojohound ?
B
34
S
16
G
16
Posts: 2,222
Reputation: 16,564

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
140
S
58
G
36
Posts: 2,547
Reputation: 31,170


Return to Construct 2 General

Who is online

Users browsing this forum: 8tomo8 and 11 guests