Jestem nowy, aby skruszyć Kit i mieć problem ze zmianą bieżącego obrazu SKSpriteNode.Zmiana obrazu SKSpriteNode
Moja spriteNode wygląda następująco
mover = [SKSpriteNode spriteNodeWithTexture:Texture1];
[mover setScale:1.0];
[self addChild:mover];
wtedy mam ten sposób, że należy zmienić obraz wchodzącego na rynek, ale tak nie jest. Co ja robię źle?
- (void)didBeginContact:(SKPhysicsContact *)contact {
if (contact.bodyA.categoryBitMask == worldCategory) {
SKTexture* explodeTexture1 = [SKTexture textureWithImageNamed:@"explode"];
explodeTexture1.filteringMode = SKTextureFilteringNearest;
mover = [SKSpriteNode spriteNodeWithTexture:explodeTexture1];
}
}