An SKLightNode object is used to add lighting into a scene in the iOS and OS X SDKs.
Questions tagged [sklightnode]
21 questions
1
vote
1 answer
iOS 8 detect if SKSpriteNode is lit by SKLightNode
I have several sprite nodes in my scene that are casting shadows. I also have a sprite that is in one of the shadows. I want to be able to tell if the user moves a sprite out of a shadow into the light. Anyway to do this in swift? Thanks.

Phoxoey
- 11
- 3
1
vote
1 answer
Spritekit SKLightNode : light collision detection
My question is how to detect if any of sprites in the scene is affected by light node.
Didn`t found anything related to this issue.
Is there some delegate method like didBeginContact for SKLightNode?

Alex Shuraits
- 432
- 1
- 5
- 14
0
votes
1 answer
SKLightNode woes: light not applying to all expected nodes
I have a node tree that looks like:
LayerWorld
-> layerBackground //contains the map tiles
-> layerUnitSurface //contains all the sprite nodes moving around the map
-> layerOverlay //contains the huds, UI buttons etc
Not sure if…

Thunk
- 4,099
- 7
- 28
- 47
0
votes
0 answers
How to create mirror effect in SpriteKit
Assume we have a SKLightNode, and another SKSpriteNode as a mirror in some distance to the SKLightNode. How do I make the mirror reflect the light from SKLightNode?
0
votes
1 answer
SKLightNode: Changing alpha of ambientColor
Is there a way to change the alpha value of an SKLightNodes ambientColor so that e.g. their background can be seen even if the lightNode is on the other side of the screen?
//Add LightNode
let lightNode = SKLightNode()
lightNode.ambientColor =…

user3138007
- 637
- 1
- 6
- 19
-2
votes
1 answer
How to implement effect when SKSpriteNode is transparent but become visible with light?
I would like to implement the effect when transparency of SKSpriteNode changes when it illuminated by light. By default SKSpriteNode is transparent but become visible with light.

Daniil
- 143
- 3
- 9