O'Reilly logo

Gideros Mobile Game Development by Arturs Sosins

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

Creating animated game elements

Animations are a vital part of improving a game. They make your game look more polished and alive, which appeals to many players out there and that is why animation is one of the ways in which we will improve our game.

There are two main ways to animate elements in Gideros:

  • Using frame animations and MovieClip class
  • Tweening the properties of object using GTween class

Frame animations using MovieClip

First let's create a frame animation for our TouchBall. To create a MovieClip instance we need to pass the definition of the frames which will appear in animation.

Each row of animation contains information, such as, {1, 10, sprite}, which contains position number of start frame, position number of end frame, and the sprite ...

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