Reputation: 3045
I try to make tower defense game. My question is i added png images.(these two little soldier's image) how i remove white area?
The walking area code is: (and the images added to project with names: 1.png, 2.png, 3.png
var char = [SKTexture]();
for i in 1...3 {
char.append( SKTexture(imageNamed: String(i)) );
}
var runningAction = SKAction.animateWithTextures(char, timePerFrame: 0.18);
self.runAction(SKAction.repeatActionForever(runningAction))
Upvotes: 0
Views: 176
Reputation: 22939
You should check 1.png
, 2.png
and 3.png
- they probably have a white instead of transparent background.
Upvotes: 1