The sprite set does not generate notifications when a sprite leaves the screen. You will need to add your own test. Here is an example ...
- (void) update:(NSTimerInterval)currentTime { CGPoint newPosition = CGPointMake(node.position.x, node.position.y); if (node.position.y > maxY+node.size.y/2) { newPosition.y = minY; } else if (node.position.y < minX-node.size.y/2) { newPosition.y = maxY; } if (node.position.x > maxX+node.size.x/2) { newPosition.x = minX; } else if (node.position.x < minX-node.size.x/2) { newPosition.x = maxX; } node.position = newPosition;
source share