CGRect rect = CGRectMake(sprites.boundingBox.origin.x, sprites.boundingBox.origin.y, sprites.boundingBox.size.width, scale);
この CGRect を CCSprite に割り当てるにはどうすればよいですか?
float scale = sprites.boundingBox.size.height * 1.2;
CGPoint point = CGPointMake(sprites.position.x,sprites.position.y + ((scale - sprites.boundingBox.size.height) / 2));
sprites.position = point;
[self resizeSprite:sprites toWidth:sprites.boundingBox.size.width toHeight:scale];
-(void)resizeSprite:(CCSprite*)sprite toWidth:(float)width toHeight:(float)height
{
sprite.scaleX = width / sprite.contentSize.width;
sprite.scaleY = height / sprite.contentSize.height;
}
高さのスケーリングを上方向にアニメーション化する方法