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 spritek
You could use CGRectIntersectsRect supplying the frame of your SKSpriteNode and the SKScene. For example:
CGRectIntersectsRect
frame
SKSpriteNode
SKScene
if !CGRectIntersectsRect(frame, spriteNode.frame) { // Outside the bounds of the scene because the frames are no longer intersecting. }