CCSprit使用

CCSprite *s = [CCSprite spriteWithFile:@"ccbParticleFire.png"];
    [s setPosition:CGPointMake(100, 100)];
    [self addChild:s];
//进行移动操作
    [s runAction:[CCMoveBy actionWithDuration:10 position:CGPointMake(100, 100)]];

你可能感兴趣的:(it)