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 almost 11 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.

Instead:
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

Status:Closed
Start date:2014-01-28
Priority:Normal
Due date:
Assignee:owen
% Done:

100%

Category:all
Target version:3.0-rc0