私の問題は、特定の位置にスプライトをCCActionMoveTo
作成し、 で別の位置に移動するようにしたことです。その移動中に、スプライトはタッチ イベントを検出します。しかし、移動中にスプライトに触れても機能しません:
-(void)caca
{
target = [CCSprite spriteWithFile:@"boulerouge_06.png"];
target.position=(300,10);
[self addChild:target];
id actionMove = [CCMoveTo actionWithDuration:3
position:ccp(240, 160)];
[target runAction:actionMove];
}