RMMSecurity / cocos2d-android

Automatically exported from code.google.com/p/cocos2d-android
Other
0 stars 1 forks source link

Opacity issues with AtlasSprite #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create an AtlasSpriteManager in a layer
2. Get two AtlasSprites from the manager
3. Position the two sprites
4. Set the opacity of the second sprite to some value like 50

What is the expected output? What do you see instead?

The second AtlasSprite should be painted with the specified opacity

but just a part of the first sprite changes it's opacity

Original issue reported on code.google.com by jsescob...@gmail.com on 12 Mar 2010 at 10:19

Attachments:

GoogleCodeExporter commented 9 years ago
A Texture in TextureAtlas need four colors for four vertices

Original comment by zhuangta...@gmail.com on 18 Mar 2010 at 1:30

GoogleCodeExporter commented 9 years ago
Yes, that fixed it. Thanks

Original comment by jsescob...@gmail.com on 19 Mar 2010 at 2:34