How can I create SKLightNode from top that cast on the ground?

I’m working on a 2D game with spriteKit and I’d like to create a sunlight from zPosition 10 that would cast zPosition 3 Nodes on the ground zPosition 0.
Can’t manage to achieve that like my image example (from photoshop).

Any help or explanation would be appreciated or any suggested tutorial.


Thanks a lot for your answer.
I’m going to try it.

I wish I could find some detailed tutorial on all the light possibilities.

@philport Do you still have issues with this?

This topic was automatically closed after 166 days. New replies are no longer allowed.