Another weird type checking error. Since the type self.addLabel(self.statements) not Void -> Void it Void , the compiler suggested that you call another method somewhere else (where it is somewhere else, I have no idea. There is no method called runBlock(_:) anywhere I can find). Try explicit closure when something like this happens
class GameScene: SKScene { var statements = Statements() override func didMoveToView(view: SKView) { runAction(SKAction.repeatActionForever(SKAction.sequence([ SKAction.runBlock({ self.addLabel(self.statements) }), SKAction.waitForDuration(2.0) ]))) } func addLabel(statements: Statements) -> Void { } }
source share