We are developing a Facebook game using the latest cocos2d-html5.
Currently we encounter an issue about CCLayerColor,the issue can be reproduced in steps below:
- Set an image as the background of html page.
- Add a cc.Sprite instance and a cc.LayerColor instance to cc.Scene, then add the scene to cc.Director.
- Set the opacity of the cc.LayerColor instance to 0.5.
- Run this simple demo, you can see the background image of the html page even though the cc.LayerColor instance is in the front of the cc.sprite instance and I don’t change the opacity of the cc.Sprite instance.
I hope the issue has been described clearly.