cocos2dを使ってゲームを作っています。次のコードを使用して、アニメーションを追加しましたCCSprite
。参照を送信するにはどうすればよいですか?
if(sprite != monkey)
{
[self scheduleOnce:@selector(animate_sprite:) delay:0.1f];
}
-(void)animate_sprite:(ccTime) dt
{
id s2 = [CCScaleTo actionWithDuration:0.5 scaleX:2.0 scaleY:2.0];
id fun = [CCCallFuncN actionWithTarget:self selector:@selector(spriteDone:)];
[sprite runAction:[CCSequence actions:s2,fun,nil]];
}
メソッドでスプライト参照を取得するにはanimate_sprite
?