0

我用于Hearts1.CCPositionType = CCPositionTypeNormalized我的 CCNode,Hearts1。对于节点内的所有精灵,我也使用了CCPositionTypeNormalized

我的精灵似乎都没有移动,它们只是在同一点上彼此堆叠。我是否需要更改ContentSize节点以匹配 viewSize?

4

1 回答 1

1
ScreenWidth = [[UIScreen mainScreen] bounds].size.width;
ScreenHeight = [[UIScreen mainScreen] bounds].size.height;
heart1.contentSize = CGSizeMake(ScreenWidth,ScreenHeight);

这可以防止所有精灵聚集在一个点上。

于 2014-02-17T22:52:17.420 回答