我正在尝试将背景精灵(使用较大尺寸的图像资源)缩放到较小的尺寸,但无法做到这一点。
我这样做如下:
CCSprite *splashSprite =CCSprite::spriteWithFile("splashscreen.jpg");
splashSprite->setPosition(ccp(240, 150));
splashSprite->setScale(0.5f);
但精灵保持其原始大小。不用找了。请帮忙。
我正在尝试将背景精灵(使用较大尺寸的图像资源)缩放到较小的尺寸,但无法做到这一点。
我这样做如下:
CCSprite *splashSprite =CCSprite::spriteWithFile("splashscreen.jpg");
splashSprite->setPosition(ccp(240, 150));
splashSprite->setScale(0.5f);
但精灵保持其原始大小。不用找了。请帮忙。