" Content on all the lessons mastered yet? Over and over with no programming best way to learn is to practice, practice, practice. I must remember that more hands, more brains ohhh "
01
—
Game Description
This is a simple little game , running around to achieve a pony (pony running the animation ).
02
—
Design ideas
-
The game consists of a background and a pony seaside boulevard composition;
-
The horse ran back and forth, but also have their own pony running animation effects;
03
—
Implementation process
Step 1: Create role
-
Right-click the kitten roles zone, delete roles;
-
Select "Pony" from the library system role in determining the import role;
-
Open the top left corner of "modeling" tab, you can see the role of "Pony" consists of six different shapes composition;
Step Two: Script Design
There are two scripts:
-
One to control the switching modeling, character animation to achieve;
-
One to control the moving character.
When switching modeling, in order to prevent excessive switching, joined a wait statement. Complete code is implemented as follows:
Step 3: Add background
The role of the library from the system, select the "outdoor" in the "Boardwalk" background; OK to import the background.
Step Four: run the program, to the following figure
Step Five: Save the file.
Under the File menu "Save to computer" you can save good works.
04
—
to sum up
We should grasp this lesson:
-
Character animation, modeling a plurality of accession and control;
-
Wait statement was used to understand the use statement parameters;
05
—
Outward Bound
The role of the library there are many roles to animate, identify and implement a related animation?