Export to GitHub

cocos2d-android - issue #10

Opacity issues with AtlasSprite


Posted on Mar 12, 2010 by Grumpy Bear

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

Attachments

Comment #1

Posted on Mar 18, 2010 by Helpful Wombat

A Texture in TextureAtlas need four colors for four vertices

Comment #2

Posted on Mar 19, 2010 by Grumpy Bear

Yes, that fixed it. Thanks

Status: Fixed

Labels:
Type-Defect Priority-Medium