I've got this set of code that spawns a SKSpriteNode within a set location (using rect), but I'm trying to make the Node disappear but then reappear after a set amount of time in a different location. I've been looking a NSTimer but not sure how to implement that, is there a good way of doing this?
let rect = CGRectMake(8, 293, 165, 218)
let x = rect.origin.x + CGFloat(arc4random()) % rect.size.width
let y = rect.origin.y + CGFloat(arc4random()) % rect.size.height
let randomPoint = CGPointMake(x, y)
self.redcircle.position = randomPoint
self.addChild(redcircle)