Upvote:2

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

Credit Goes to: stackoverflow.com

Related question with same questions but different answers