import SpriteKit

class GameScene: SKScene {
    var bear:SKSpriteNode = SKSpriteNode()
    var bearWalkingFrames:NSMutableArray = NSMutableArray()
    
    // Constructor
    init(size: CGSize){
        super.init(size: size)
        
        // Add background color
        self.backgroundColor = SKColor.blackColor()
        
        // Load the atlas
        var textureAtlas:SKTextureAtlas = SKTextureAtlas(named: "BearImages")
        
        // Gather all the frames
        var numImages = textureAtlas.textureNames.count
        for i in 1...numImages/2{
            var textureName = "bear\(i)"
            var textureTemp:SKTexture = textureAtlas.textureNamed(textureName)
            bearWalkingFrames.addObject(textureTemp)
        }
        
        // Create the first sprite
        bear = SKSpriteNode(texture: bearWalkingFrames[0])
    }
    
    override func didMoveToView(view: SKView) {
        
    }
    
    override func touchesBegan(touches: NSSet, withEvent event: UIEvent) {
        
    }
   
    override func update(currentTime: CFTimeInterval) {
        /* Called before each frame is rendered */
    }
}

import SpriteKit

class GameScene: SKScene {
    var bear:SKSpriteNode = SKSpriteNode()
    var bearWalkingFrames:NSMutableArray = NSMutableArray()
    
    // Constructor
    init(size: CGSize){
        super.init(size: size)
        
        // Add background color
        self.backgroundColor = SKColor.blackColor()
        
        // Load the atlas
        var textureAtlas:SKTextureAtlas = SKTextureAtlas(named: "BearImages")
        
        // Gather all the frames
        var numImages = textureAtlas.textureNames.count
        for i in 1...numImages/2{
            var textureName = "bear\(i)"
            var textureTemp:SKTexture = textureAtlas.textureNamed(textureName)
            bearWalkingFrames.addObject(textureTemp)
        }
        
        // Create the first sprite
        bear = SKSpriteNode(texture: bearWalkingFrames[0])
        // Set the position to the center of the screen
        bear.position = CGPointMake(CGRectGetMidX(self.frame), CGRectGetMidY(self.frame))
    }
    
    override func didMoveToView(view: SKView) {
        
    }
    
    override func touchesBegan(touches: NSSet, withEvent event: UIEvent) {
        
    }
   
    override func update(currentTime: CFTimeInterval) {
        /* Called before each frame is rendered */
    }
}

Set the bear in the middle of the screen
Set the bear in the middle of the screen
