Parallax background does not repeat
问题 My code is for a repeating moving background, and it's meant to repeat forever. But when I simulate it, it goes once and then the background just goes grey. This is my code: SKTexture* bgTexture = [SKTexture textureWithImageNamed:@"nightbackground"]; bgTexture.filteringMode = SKTextureFilteringNearest; SKAction* movebgSprite = [SKAction moveByX:-bgTexture.size.width*2 y:0 duration:0.1 * bgTexture.size.width*2]; SKAction* resetbgSprite = [SKAction moveByX:bgTexture.size.width*2 y:0 duration:0]