         }
         
         self.counter = self.firstSecond
-        self.label.text = String(self.counter)
+    
+        super.init()
+        
+        self.text = String(self.counter)
+    }
+
+    required init?(coder aDecoder: NSCoder) {
+        fatalError("init(coder:) has not been implemented")
     }
     
     func start() {

        timerAction = SKAction.repeatActionForever(SKAction.sequence([actionwait,actionForEverySecond(actionPerSecond)]))
        
        if let timerAction = timerAction {
            label.runAction(timerAction, withKey: "timer")
        }
    }
    
    func pause() {
        running = false
        label.removeActionForKey("timer")
    }
    
    func stop() {

import Foundation
import SpriteKit

class DLSpriteKitTimer: SKLabelNode {
    init(seconds: Int, withActionPersecond: (() -> ())?, withFiringAction: () -> (), decreasing: Bool) {
        self.running = false
        self.actionPerSecond = withActionPersecond
        self.firingAction = withFiringAction
        self.decreasingTime = decreasing
        
        if self.decreasingTime {
            self.firstSecond = seconds
            self.lastSecond = 0
