Dynamic shadows with Canvas

Get help using Construct 2

Post » Tue Feb 18, 2014 9:14 pm

Hi all,

I've been trying to make dynamic shadows using the Canvas plugin.
Basically by copying this:
http://dl.dropbox.com/u/5426011/examples14/shadow_cast.capx

However although as far as I can tell I've copied it exactly, my shadows are not appearing in the right places.



The shadows are working as intended, however their position is offset on the Y axis by a couple hundred pixels, and it looks like a few pixels on the X as well.



I can't see anything which could cause that, but admittedly I am copying this code more than understanding it.

Any help would be great!
B
5
Posts: 85
Reputation: 395

Post » Wed Feb 19, 2014 12:09 am

Solved, it was because the canvas object was not the same size as the game area.
B
5
Posts: 85
Reputation: 395


Return to How do I....?

Who is online

Users browsing this forum: richardfu, suzannegrey and 30 guests