sprite kit - How do you tell if a node is on the screen spritekit swift -
i trying figure out how determine if node visible on screen or off screen. true/false property of node? thanks. (using swift spritekit)
you can use following test if node in scene:
if (!intersectsnode(sprite)) { println("node not in scene") }
this assumes self
skscene
subclass, such gamescene
.
Comments
Post a Comment