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

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

        addChild(enemy)
        
        let actionMove =
        SKAction.moveToX(-enemy.size.width/2, duration: 3.5)
        //removes enemy
        let actionRemove = SKAction.removeFromParent()
        enemy.runAction(SKAction.sequence([actionMove, actionRemove]))
    }
    
    //MAIN CHARACTER ANIMATION: tags animation key
    func startZombieAnimation()
    {
        if zombie.actionForKey("animation") == nil
        {
        zombie.runAction(
            SKAction.repeatActionForever(zombieAnimation),
            withKey: "animation")
