Quantcast
Channel: CoderzHeaven » Visibility
Viewing all articles
Browse latest Browse all 2

How to make a sprite visible and invisible in Cocos2D ?

$
0
0

Hi,

In order to make a sprite completely invisible , use the following code while using Cocos2D, this code will set the visibility of your sprite to zero.

urSprite.visible = 0; 

In order to make a sprite completely visible, use the following code while using Cocos2D, this code will set the visibility of the sprite back to one.

urSprite.visible = 1; 

:)


Viewing all articles
Browse latest Browse all 2

Trending Articles