I am trying to figure out how to determine if a node is visible on the screen or off the screen. Is this just a true/false property of the node? Thanks. (Using swift spritekit)
You can use the following to test if a node is in the scene:
if (!intersectsNode(sprite)) { println("node is not in the scene") }
This assumes that self is an SKScene subclass, such as GameScene.
self
SKScene
GameScene
2.1m questions
2.1m answers
60 comments
57.0k users