Search code examples
screenlibgdx

LibGdx - Transition between Screens


I'm trying to change the animation between Libgdx Screens. I want to write my custom animation (fade in, fade out, etc). Can someone give me a clue? I can't seem to find the implementation of the transition in the Libgdx code.


Solution

  • I've implemented some sliding transitions using Scene2D and the universal tween engine. You can find example code here.

    http://www.netthreads.co.uk/2012/02/09/libgdx-scene2d-demo-with-scene-transitions/

    Update: This article illustrates the approach I took to implement sliding transitions. There is a link at the bottom which takes you to a set of demos here https://github.com/alistairrutherford/libgdx-demos

    There are clear instructions on how to build the demos but you will need to have at least a basic grasp of maven and how to set it up.