How do I create a dynamic 360 degrees shadow for a car?

Get help using Construct 2

Post » Wed Feb 04, 2015 1:13 pm

For my top down racing game I'm creating shadows for each object to create a depth illusion. This is easy for most object, as they're stationary. However the car can rotate a complete 360 degrees, which means the shadow always has a different shape and angle and position in comparison to the car. Creating 360 different shadow images sound like an awefull lot of work tho, and I was wondering if there's an easier way to do this.
So if anyone has any tips on how to approach this they are most welcome.

Thanks! :D
B
12
S
1
G
1
Posts: 34
Reputation: 591

Post » Wed Feb 04, 2015 2:32 pm

There is a shadow functionality in C2, however I haven't used it a lot, so not sure how it works. Its called Shadow caster and can be added as a behaviour to the object.
B
44
S
11
G
2
Posts: 1,181
Reputation: 6,816

Post » Thu Feb 05, 2015 11:16 am

ShadowProblem.jpg
(Light is positioned next to the steerlight above the car. Light is set at a height of 200px, and the car at 10px. This was the best result I could get.)

I've tried the shadowcaster, as it seemed like a good solution for the use of shadow throughout the game. However the shadow is on top of the vehicle, which ofcourse looks kind of ridiculous. Do you know of any other way to accomplish this?
You do not have the required permissions to view the files attached to this post.
B
12
S
1
G
1
Posts: 34
Reputation: 591


Return to How do I....?

Who is online

Users browsing this forum: Carlafnt, imhotep22, rollyzz, scitana, Silviu and 10 guests