0
私は主人公がポイントを獲得するためにスクリーンにジャンプするゲームを設計しましたが、キャラクターが着陸した後にしか触れることができないようにする必要があります。逃した??アクションの問題
(BOOL)はccTouchesEnded:(NSSet *)withEventに触れ:(たUIEvent *)イベント{
UITouch *touch = [touches anyObject];
CGPoint point = [touch locationInView: [touch view]];
point = [[Director sharedDirector] convertCoordinate: point];
id jump = [JumpTo actionWithDuration:0.5 position:ccp(point.x,point.y) height:100 jumps:1];
[plainSprite runAction:jump];
if (![jump isDone])
{
isTouchEnabled=NO;
}
リターンYES。
}
私の答えに関連しない1つのコメント - あなたはより良い質問のタイトルでより良い回答を得るでしょう。 「アニメーション中にユーザー入力を無効にする」 –