Scratch Programming: Happy Pony (c)

"  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

  1. Right-click the kitten roles zone, delete roles;

  2. Select "Pony" from the library system role in determining the import role;

  3. Open the top left corner of "modeling" tab, you can see the role of "Pony" consists of six different shapes composition;

 

Follow Me Scratch Programming: Happy Pony (c)

Step Two: Script Design

There are two scripts:

  1. One to control the switching modeling, character animation to achieve;

  2. 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:

Follow Me Scratch Programming: Happy Pony (c)

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

Follow Me Scratch Programming: Happy Pony (c)

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?

Guess you like

Origin www.cnblogs.com/scratch3/p/11423484.html