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;
}
내 대답과 관련없는 한 의견 - 더 나은 질문 제목과 함께 더 나은 답변을 얻을 수 있습니다. "애니메이션 중에 사용자 입력 비활성화" –