スプライトのアニメーションが完了した後にイベントを取得するにはどうすればよいですか? 私はcocos2dフレームワークを使用していますが、
私のコードの一部はこのようなものです..
-(void)playerTouchHurdlesOnFlore:(LHContactInfo*)contact
{
if(!isHurdlesAnimStart)
{
isHurdlesAnimStart=YES;
onGround=NO;
[player stopAnimation];
//[player setIsRelativeAnchorPoint:NO];
// I want to call any event or function after end of the this "Fall_Down" animation.
[player startAnimationNamed:@"Fall_Down"];
jumpCounter = 0.3f;
player.body->ApplyLinearImpulse(b2Vec2(0,2.0f), player.body->GetPosition());
}
}
解決策を教えてください。もしあれば、アイデアを教えてください。
前もって感謝します 、
:)