Это диаграмма вопроса.
Ниже приведена диаграмма спрайтов cocos2d.
Я хочу получить позицию желтого спрайта, когда зеленый спрайт масштабируется от 1,0 до 0,5.
Я хочу знать, поддерживает ли cocos2d масштабированное положение.
![enter image description here](https://i.stack.imgur.com/UZWRD.png)
это какой-то код.
CCSprite *green = [CCSprite spriteWithFile:@"green.png"];
CCSprite *yellow = [CCSprite spriteWithFile:@"yellow.png"];
green.anchorPoint = CGPointZero;
yellow.anchorPoint = CGPointZero;
green.position = CGPointMake(0, 0);
yellow.position = CGPointMake(100, 100);
[green addChild:yellow];
[self addChild:green];
green.scale = 0.5;
CGPoint scaled = yellow.scaledposition(?) <=== How to get?