Animating discs

Until now, when you place a disc in the board, it jumped to its final position. As said at the beginning of this chapter, recreating the look and feel of the original board game is important, so you will need to create the animation of the falling disc.

It's nothing difficult, as we will only create a linear movement without simulating gravity and collision bounces.

The idea: When the player selects a column to play, show the disc falling down moving along its vertical axis. The other player can't play until the disc reaches its place.

The development: The main question is: how long will the disc fall?

We don't know and we don't care how long the disc will fall, because we know its final position we already used it in dropDisc

Get Flash Game Development by Example now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.