In Flash provides three different mechanisms animate objects:
animation, when the author himself creates or imports from other applications, each frame of the future "cartoon" and sets the sequence of their view;
automatic animating (the so-called twined-animation), using which the author creates only the first and last frames of animation, a Flash automatically generates all the intermediate frames; two types of twined-Animation, based on the subject is moving (motion animation), and the animation is based on the transformation (change of shape) of an object (shape animation);
animation based on scenarios; scenario is a description of the behavior of an object in their own language Flash, called ActionScript; the syntax of the language syntax reminiscent of other scripting languages used in the Web-publishing (eg, JavaScript, and VBScript).
Each of these mechanisms has both advantages and disadvantages. In particular, twined-animation has two undeniable advantages:
First, the author is relieved from having to create each frame individually;
secondly, to play such a "cartoon» Flash sufficient to store only the first and last frames, which provides a significant reduction in the volume of the film.
However, twined-animation is suitable for creating only the simplest plot, in which the properties of the objects are changed at regular intervals.
Using ActionScript scripting can be difficult enough to describe the behavior of objects, but for this you need to learn the language ActionScript.
In other words, before you start creating your own "cartoon", should determine the choice of the mechanism for its implementation.
1.4 The review and the analysis of the existing examples
1.4.1 Kingdom Rush
Kingdom Rush is a tower defense game set in a medieval fantasy setting. There are empty lots set along the pre-determined path where the player can build towers. There are four towers to choose from: Mage, Archers, Barracks, and Artillery. At the beginning of each level, the player starts off with a certain amount of money in order to buy towers. As the monsters begin to emerge from one end of the path, the goal is to kill them using these towers before they reach the other end of the path. Killing monsters generates money, which can be used to upgrade towers as well. Certain towers are more effective in killing certain types of enemies. There are 18 levels in total and 48 different types of monsters that one will encounter throughout the levels. After completion of a level, Heroic Mode and Iron Challenge are unlocked. These are more challenging modes than the traditional campaign. In Campaign Mode, if all monsters are killed in time, the player is awarded 3 stars. Heroic Mode and Iron Challenge reward one star each. With these stars, the player can upgrade his or her equipment and strengthen their towers and spells (Reinforcements and Rain of Fire). Note as of this time the Supreme Defender award on version 1.1.3 is not working and a such all Iron and Heroic Challenges do not correctly register when completed.
Frontiers continues the story that ended in Kingdom Rush. When the dark wizard Vez'nan was defeated at the end of the previous game, a new evil takes up his mantle and escapes into the wild frontiers to the south-east of the kingdom. The story unfolds gradually through information given at the start of each new level as you, the nameless General in the King's forces, lead your troops through vast desert, dense jungles and deep caverns to face off against the game's new villain, Lord Malagar, and whatever else is hiding in the shadows.
On April 25, 2012, Ironhide Game Studio released a new updated version of Kingdom Rush for Android and iOS devices that included new features and a new level. Among these new features were a shop and a hero’s room. The shop provides items such as extra coins and dynamite that can be purchased through the winnings of gems in battle. The hero’s room provides a selection of heroes that aid in battle and can be obtained by passing levels. These heroes vary from defenders to archers and can be placed anywhere on the path.
Kingdom Rush has full voice acting, most of which was done by voice talent Sean Crisden.
The game was featured in a problem in the 2012 Google Code Jam programming contest.
