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

Chapter 4. Scene Transitions

This chapter will guide you through the process of implementing transitions to switch between scenes, making the process more dynamic and less static.

The topics covered in this chapter are as follows:

  • The fade transition
  • Additional transitions

Transitions allow an animation to be played when you switch between scenes, making the game look more dynamic and attractive for the player. Transitions can be used when you want to push or replace scenes.

The fade transition

The game that will be developed through the course of this book will incorporate the fade transition, as it is a universal transition that is easily recognized; however, Cocos2d-x provides many more transitions, which will be covered briefly. To learn more about ...

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