I'm trying to unhide
this node, so that it appears within the rect
location but then somehow making that node hidden
again so when it unhides it is in a different location within the rect
. But I'm trying to add a random timer to it unhides
at random intervals (but under 5 seconds)?
let x12 = rect4.origin.x + CGFloat(arc4random()) % rect4.size.width
let y12 = rect4.origin.y + CGFloat(arc4random()) % rect4.size.height
let randomPoint12 = CGPointMake(x12, y12)
self.yellowcircle3.position = randomPoint12
self.addChild(yellowcircle3)
yellowcircle3.hidden = true