我正在努力向精灵迈进。但是我收到了警告:class method animatewithduration:position: not found
。我做错了什么?
CCSprite *train = [CCSprite spriteWithFile:@"train.png"];
[train setScale:0.05];
train.position = ccp(15, size.height/2);
[self addChild:train];
CCMoveTo *action = [CCMoveTo animationWithDuration: 2.3f position:CGPointMake(200,400)];
[train runAction:action];