2
我想在cocos2d中有一个活动的菜单按钮时显示全屏透明图像。我怎么做?如何将透明图像设置为背景?
我想在cocos2d中有一个活动的菜单按钮时显示全屏透明图像。我怎么做?如何将透明图像设置为背景?
如果你正在寻找提供一个弹出的对话框中底衬,您可以使用CCLayerColor:
CCLayerColor* underlay = [CCLayerColor layerWithColor:ccc4(0, 0, 0, 127)];
[self addChild:underlay z:(something less than your button's z)];
如果它是一个特定的图像,初始化图像,做上述使用CCSprite第二行。
你能给我更多的细节吗? – glogic