O'Reilly logo

Learning Libgdx Game Development by Andreas Oehlke

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 12. Animations

In this chapter you will learn how to create and manage different kinds of animations using Libgdx's Actions and Animation classes. We will exemplify their usage by animating certain parts of the menu and game screen.

In regard to the menu screen, we will create time-based and event-based animations including moving, scaling, and fading Actor objects via so-called actions of the Actions class. Additionally, interpolation algorithms provided by Libgdx's Interpolation class will be used for added effects and for the smoothing of those animations.

The game screen, in a sense, is already animated according to the game logic, which takes care of coordinating the movement of every game object. However, each game object is rendered ...

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