i'm new to sprite Kit and having an issue with changing a current SKSpriteNode image.
My spriteNode looks like this
mover = [SKSpriteNode spriteNodeWithTexture:Texture1];
[mover setScale:1.0];
[self addChild:mover];
then i have this method that should change the mover image, but it is not. What am i doing wrong?
- (void)didBeginContact:(SKPhysicsContact *)contact {
if (contact.bodyA.categoryBitMask == worldCategory) {
SKTexture* explodeTexture1 = [SKTexture textureWithImageNamed:@"explode"];
explodeTexture1.filteringMode = SKTextureFilteringNearest;
mover = [SKSpriteNode spriteNodeWithTexture:explodeTexture1];
}
}