O'Reilly logo

Cocos2d-x Game Development Essentials by Gareth Jones, Arutosh Gurung, Frahaan Hussain

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Additional transitions

This section will cover some of the additional transitions that are provided by Cocos2d-x and how to incorporate them. Different transitions allow your game to be more dynamic. For more in-depth information, visit http://www.cocos2d-x.org/reference/native-cpp/V3.0/da/d00/group__transition.html. The following list details the additional transitions that are provided by Cocos2d-x:

  • Flip transitions: These transitions flip around a specified axis, with the current scene moving away and the new scene coming in.

    The example code for this transition is as follows:

    Director::getInstance()->replaceScene(TransitionFlipX::create(3, scene));
  • Zoom transitions: These transitions flip the scenes in a similar way to flip transitions but also ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required