It is not clear what the problem is, can you tell me how to fix it?
Here is the code:
import SpriteKit class GameScene: SKScene { var Ma = SKSpriteNode() var TextureAtlas = SKTextureAtlas() var TextureArray = [SKTexture]() override func didMoveToView(view: SKView) { TextureAtlas = SKTextureAtlas(named: "bee.atlas") for i in 0...TextureAtlas.textureNames.count{ var Name = "c\(i).png" TextureArray.append(SKTexture(imageNamed: Name)) } Ma = SKSpriteNode(imageNamed: TextureAtlas.textureNames[0] ) Ma.size = CGSize(width: 25, height: 25) Ma.position = CGPoint(x: 250, y: 250) self.addChild(MainGuy) } override func touchesBegan(touches: Set<UITouch>, withEvent event: UIEvent?) { Ma.runAction(SKAction.repeatActionForever(SKAction.animateWithTextures(TextureArray, timePerFrame: 1.0))) } } The error takes off:
SKTexture: Error loading image resource: