CCTransition problem in v1.7.1.0

Hi,

If I create a new cocosSharp Game solution and use the following code to transition to a new scene I get the transition then a white flash (seems intermittent). Don't seem to get this when not using a transition. Please help.

            var scene = new CCScene (GameView);
            var transitionScene = new CCTransitionFade (0.4f, scene);
            Director.ReplaceScene (transitionScene);
            scene.AddLayer(new TestLayer());

Posts

  • BenLevy.4265BenLevy.4265 ✭✭ USMember ✭✭

    Was there any resolution to this? I am seeing the flash too (Android simulator and device). Happening with all Transitions.
    This is not happening if Director.ReplaceScene is called with a scene directly.

    I believe the flash is happening on the new scene.

    Anyone come across this. Anyone solved it?

    By the way, I am calling scence.AddLayer before the ReplaceScene

  • Mark.1134Mark.1134 USMember

    I've not seen that this has been resolved. As a hacky workaround I set the Layer's visiblity to false in it's constructor then in the AddedToScene method:

            this.Opacity = 0;
            this.Visible = true;
            this.RunAction(new CCFadeIn(0.4f));
    

    I hope this is of some help!

Sign In or Register to comment.