How to get Sprite's visibility

How to get Sprite's visibility
0.0 0


CCSprite have setVisible(bool) method. but no getVisibile().

Is there any way to get a sprite’s visibility?


CCSprite* player = CCSprite::spriteWithFile(“Player.png”,CCRectMake(0,0,27,40));


Srikanth, I know of adding sprite in the scene.

But, I want to know the sprite’s visibility value.


bool visible = sprite1~~>isVisible;
or you could use the opacity value:
int alpha = sprite1~~>getOpacity();


ah~ thanks Phill~
: )