我是新的精灵套件,并有一个问题,改变当前的SKSpriteNode图像.
我的spriteNode看起来像这样
mover = [SKSpriteNode spriteNodeWithTexture:Texture1]; [mover setScale:1.0]; [self addChild:mover];
那么我有这种方法应该改变动作图像,但不是.我究竟做错了什么?
- (void)didBeginContact:(SKPhysicsContact *)contact { if (contact.bodyA.categoryBitMask == worldCategory) { SKTexture* explodeTexture1 = [SKTexture textureWithImageNamed:@"explode"]; explodeTexture1.filteringMode = SKTextureFilteringNearest; mover = [SKSpriteNode spriteNodeWithTexture:explodeTexture1]; } }