         sprite.zRotation += shortest.sign() * amountToRotate
     }
     
+    
+    //SPAWN ENEMY
     func spawnEnemy()
     {
         let enemy = SKSpriteNode(imageNamed: "enemy")


class GameScene: SKScene {
    
    let zombie: SKSpriteNode = SKSpriteNode(imageNamed: "zombie1")
    var lastUpdateTime: NSTimeInterval = 0
    var dt: NSTimeInterval = 0

        zombie.removeActionForKey("animation")
    }

    //SPAWN SHEEP
    func spawnSheep()
    {
        //spawn cat at random location
        let sheep = SKSpriteNode(imageNamed: "sheep")
        sheep.position = CGPoint(
            x: CGFloat.random(min: CGRectGetMinX(playableRect),
                max: CGRectGetMaxX(playableRect)),
            y: CGFloat.random(min: CGRectGetMinY(playableRect),
                max: CGRectGetMaxY(playableRect)))
        
        sheep.setScale(0)
        addChild(sheep)
        
        //scale cat up
        let appear = SKAction.scaleTo(1.0, duration: 0.5)
        let wait = SKAction.waitForDuration(10.0)
        let disappear = SKAction.scaleTo(0, duration: 0.5)
        let removeFromParent = SKAction.removeFromParent()
        let actions = [appear, wait, disappear, removeFromParent]
        sheep.runAction(SKAction.sequence(actions))
   
    }
    
}
