Projects > cpp > Issues > Refactor #3877

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

Refactor cc.FadeIn/cc.FadeOut to fix a bug that its start opacity isn't current value

Refactor #3877 [Closed]
ludingping 2014-01-28 03:03 . Updated over 4 years ago

cc.FadeIn/cc.FadeOut correct behavior should be:

  • FadeOut: fade from current opacity to 0 in N seconds
  • FadeIn: fade from current opacity to 255 in N seconds

That means that:
reverse( FadeOut ) != FadeIn.

Reverse( FadeOut ) == Fade from 0 to Current sprite
Reverse( FadeIn ) == Fade from 255 to current sprite opacity

zhangxm 2014-01-28 03:04
  • Assignee set to dumganhar
  • Target version set to 3.0-rc0
dumganhar 2014-02-24 09:07
  • Assignee changed from dumganhar to owen

@andyque, please fix this refer to what @David said. thanks.

owen 2014-02-28 01:30
  • Status changed from New to Closed
  • % Done changed from 0 to 100

Applied in changeset commit:4e13a5e6bf0191167e06486218e4ccbff1ba72f2.

Atom PDF

Start date:2014-01-28
Due date:
% Done:


Target version:3.0-rc0

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.