Raycasting shadows

Get help using Construct 2

Post » Thu Apr 17, 2014 4:03 pm

Guys,

0. how can I make raycasting shadows for my character in side view?
I have side view 2D characters and environments, not a top view, so it needs to be flatted on base of the floor shape/perspective.
1. Is it possible to make soft and hard shadows?
2. Does the light also change color?
3. Is it possible to exclude sprite from the light?

Here is tech example what I am looking for (top view):
youtube.com/watch?v=LuJRYes0KcU

Here is another example of raycasting shadows and color changes (no construct):
youtube.com/watch?v=_1uqx8ByliI

This is the goal I would like to reach (shadow change in angle of the sprite):
Image
Last edited by paprik123456 on Thu Apr 17, 2014 5:37 pm, edited 2 times in total.
B
4
Posts: 11
Reputation: 222

Post » Thu Apr 17, 2014 4:47 pm

0: Sure, anything is possible.
1: See above, or buy some Viagra
2:^
3^
What you want to do can't be explained easily. Take a look at the line of sight behavior demo, however that's only for top view.
So basically long answer is yes it can be done.
Short answer is, its not really worth it now.
Image ImageImage
B
168
S
50
G
169
Posts: 8,283
Reputation: 108,195

Post » Thu Apr 17, 2014 5:19 pm

In that case if his unprofessional opinion doesn't help you to understand.

There an example

http://powerupware.com/HTML5/Shadowtest/

It's possible that you are looking it
B
97
S
35
G
29
Posts: 3,139
Reputation: 28,371

Post » Thu Apr 17, 2014 5:37 pm

Message: paprik123456 is not yet permitted to post plain text URLS (300 rep required). 1 URLS removed. Why?
Joannesalfa wrote:In that case if his unprofessional opinion doesn't help you to understand.
There an exampleIt's possible that you are looking it


Thanks Joannesalfa, I would prefer to see some game, which use shadow caster on walking sprite in Construct 2. This effect creates very nice detail.
and then some description how to do that.
"btw: his unprofessional answer is ignored."
B
4
Posts: 11
Reputation: 222

Post » Thu Apr 17, 2014 5:55 pm

@paprik123456 There a lot of 2D games that we couldn't see nice detail of shadow, more like users can appreciate aesthetic but it's not important, It's up to your game design, you could create sprites as shadow.

I recommend you to take this tutorial, it explains everything about shadow.

https://www.scirra.com/tutorials/796/th ... ows-part-3
B
97
S
35
G
29
Posts: 3,139
Reputation: 28,371

Post » Thu Apr 17, 2014 6:04 pm

Message: paprik123456 is not yet permitted to post plain text URLS (300 rep required). 1 URLS removed. Why?
Joannesalfa wrote:@paprik123456 There a lot of 2D games that we couldn't see nice detail of shadow, more like users can appreciate aesthetic but it's not important, It's up to your game design, you could create sprites as shadow.
I recommend you to take this tutorial, it explains everything about shadow.


Thanks a lot! ;)
B
4
Posts: 11
Reputation: 222

Post » Thu Apr 17, 2014 7:01 pm

Aside from the personal attacks, those examples still wont get you anywhere near a workable shadow caster with the perspective offset.
So in my "unprofessional" opinion, I'd still suggest waiting until it can be accomplished using webgl.
Image ImageImage
B
168
S
50
G
169
Posts: 8,283
Reputation: 108,195

Post » Thu Apr 17, 2014 8:25 pm

I wonder if something along these lines could be done with Spriter - doesn't it allow you to "inbetween" ?

(not checked, just rambling)
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
33
G
47
Posts: 1,194
Reputation: 30,832


Return to How do I....?

Who is online

Users browsing this forum: darkrealos, Rhindon and 19 guests