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
1.4m articles
1.4m replys
5 comments
57.0k users