Cocos2d-x 3.0 Scene Switching effects more, and game development also often need to use these effects, so that the scene switch is not so dried, so here to summarize, the development of use.
The scene switch uses to the Director class directory, most uses is replaces the scene, certainly also may use the way of the stack to carry on the scene substitution, here uses the replacescene to give an example.
App code for scene switching effects:
Auto Scene=helloworld::createscene (); //Create a scene to switch to Auto Transition=transitionzoomflipy::create (1.0f,scene);//To the scene packaging animation effectsdirector::getinstance ()->replacescene (transition);//Use the Director class to switch scenes
The following list of scenes to switch the animation effect, you can refer to the above code to use the various effects, in their own game appropriate use of special effects can play a very good effect.
Slowly fade to another scene transitioncrossfade::create (time, target scenario); When this scene darkens, another scene slowly appears.
Transitionfade::create (time, target scene); The upper-right corner of this scene disappears into the lower-left corner of the box to another scene
Transitionfadebl::create (time, target scene); This scene disappears from the top to the bottom bar to another view
Transitionfadedown::create (time, target scene); The lower left corner of this scene disappears to the upper right corner of the block to another scene
Transitionfadetr::create (time, target scene); This scenario disappears from the bottom to the top bar to another scene
Transitionfadeup::create (time, target scene); This scene rollover disappears to another view (above the diagonal)
Transitionflipangular::create (time, target scene, style); This scene rollover disappears to another view (x-axis)
Transitionflipx::create (time, target scene, style); This scene rollover disappears to another view (Y-axis)
Transitionflipy::create (time, target scene); The scene beat disappears and another scene beats
Transitionjumpzoom::create (time, target scene); Another scene from the whole appears below
Transitionmoveinb::create (time, target scene); Another scene from the left appears from the whole
Transitionmoveinl::create (time, target scene); Another scene from the top of the whole appearance
Transitionmoveint::create (time, target scene); Another scene from the whole from the right to appear
Transitionmoveinr::create (time, target scene); Turn the page switch, BOOL is true is forward.
Transitionpageturn::create (time, target scene, BOOL); This scene disappears from left to right while another view appears
Transitionprogresshorizontal::create (time, target scene); The scene disappears from the middle to four weeks and another scene appears.
Transitionprogressinout::create (time, target scene); This scene disappears from the surrounding to the middle while another view appears.
Transitionprogressoutin::create (time, target scene); This scene disappears counterclockwise to another view
Transitionprogressradialccw::create (time, target scene); This scene disappears clockwise to another view
Transitionprogressradialcw::create (time, target scene); This scene disappears from top to bottom while another view appears
Transitionprogressvertical::create (time, target scene); This scene rotation disappears after another scene rotation appears
Transitionrotozoom::create (time, target scene); This scene zooms out to another view
Transitionshrinkgrow::create (time, target scene); This scene slides up to another view
Transitionslideinb::create (time, target scene); This scene slides right to another view
Transitionslideinl::create (time, target scene); This scene slides left to another view
Transitionslideinr::create (time, target scene); This scene slides down to another view
Transitionslideint::create (time, target scene); This scene three rectangles disappear after another scene three rectangles appear up and down
Transitionsplitcols::create (time, target scene); This scene three rectangles disappear after another scene three rectangles appear around
Transitionsplitrows::create (time, target scene); This scene small square disappears to another view
Transitionturnofftiles::create (time, target scene); This scene rollover disappears to another view (above the diagonal)
Transitionzoomflipangular::create (time, target scene, style); This scene rollover disappears to another view (x-axis)
Transitionzoomflipx::create (time, target scene, style); This scene rollover disappears to another view (Y-axis)
Transitionzoomflipy::create (time, target scene, style);
Cocos2d-x 3 Scene Switch Effects summary