So I have the function below that starts my characters attack animation, the only problem is that the two textures are different sizes hence the "resize: true". What I want to do is change the anchor point of the second texture so that when my character attacks instead of the second texture being centered, moving the body of the character, I want it to be slightly offset to the right so that the body aligns with the previous texture's body.
Is there a way to have anchor points specific to a texture or would I need to change the Sprite's anchor point between frames?
func attackLeft() {
attackLeftFrames = [attackLeft1, attackLeft2]
attackLeftAction = SKAction.animate(with: attackLeftFrames, timePerFrame: 0.25, resize:true, restore:true)
forever = SKAction.repeatForever(attackLeftAction)
self.run(forever, withKey: "attackLeft")
}