如何为以下内容正确使用 runAction 语法

How to use runAction syntax correctly for the following

我正在尝试执行以下操作

//increase spaceship frequency
    self.runAction(SKAction.repeatActionForever(SKAction.waitForDuration(1), completion: {

        difficulty -= 0.01
        println("difficulty increased")

    }))

基本上我需要 SKAction.waitForDuration(1) 永远完成 运行 所以我试着用另一个 运行Action

来包裹它

我收到以下错误: "Extra argument 'completion' in call"

如果你真的想使用SpriteKit,请使用动作序列:

self.runAction(SKAction.repeatActionForever(SKAction.sequence([SKAction.waitForDuration(1), SKAction.runBlock({
    difficulty -= 0.01;
    println("difficulty increased");
})])));

但是,你真的应该使用 NSTimer