var posinonY:Float = Float(y) + Float(pipeDown.size.height) + Float(verticalPipeGap)
pipeDown.position = CGPointMake(0.0, Float(posinonY))
I get this error:
"NSNumber' is not a subtype of 'CGFloat'"
Why?
Edit:
CGFLoat need double type
pipeDown.position = CGPointMake(0.0, Double(posinonY))
this is ok.