cc.FadeOut always begins on opacity 255 #629

Closed
fleet-studio opened this Issue Nov 10, 2012 · 1 comment

Comments

Projects
None yet
3 participants
@fleet-studio

If you try to run a FadeOut with a Node which have opacity < 255, the action is performed from 255 to 0.
I'd have to use other action instead or it's an unexpected behaviour?

@dingpinglv

This comment has been minimized.

Show comment
Hide comment
@dingpinglv

dingpinglv Nov 12, 2012

Contributor

you can use cc.FadeTo.
example:
aSprite.setOpacity(200);
aSprite.runAction(cc.FadeTo.create(1.0,50));

Contributor

dingpinglv commented Nov 12, 2012

you can use cc.FadeTo.
example:
aSprite.setOpacity(200);
aSprite.runAction(cc.FadeTo.create(1.0,50));

@linshun linshun closed this Feb 25, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment