everyone!
I have sprite moving by action, what have health bar (progress bar). When the value of health bar will equal zero, sprite should stop and dissappear from the scene. Any ideas how to make this?
You could use a bar image, and change the x-scale according to the sprites health. When health is zero set it to invisible. You can find how to do all this stuff in the CCSprite class reference
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more