How to make CCActionFadeOut work on a CCSlider

I'm building a simple app with SpriteBuilder and Cocos2d. I have a few interface elements including a CCSlider.

I can use the built in actions to fade out elements but it doesn't work on the slider?

I have a link to the slider in SpriteBuilder via declaration:

CCSlider *_sliderLeft;

And code to enact the action:

CCActionFadeOut *fadeOut = [CCActionFadeOut actionWithDuration:fadeDuration]; [self->_sliderLeft runAction:fadeOut];

It works here on other items but not when it's a slider - any idea why not?


Category:objective c Views:1 Time:2018-04-16

Related post

Copyright (C), All Rights Reserved.

processed in 0.217 (s). 11 q(s)