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

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -