science

1942Currently online
185Today's Reading
36Share Today
Multilingual display

How do I create a ball loop with scratch?

2018-05-05 08:00:00

With scratch, you can create an animation of the circular motion of the ball, so that it keeps moving in a horizontal direction and bounces when it meets the edge, and the programming method is as follows.

Tools/Materials
1

T249

2

windows 10

3

scratch2.0

Methods/Steps
1

First of all, open the scratch program and enter its working interface;

2

Change the English interface to simplified Chinese;

3

Right-click the role cat and choose Delete to delete the default role cat.

4

Point selects a role from the role library;

5

Select the item in the left character library, select the Ball "Ball" and press OK;

6

The character ball is created;

7

Select the event and drop "When the Green Flag is clicked" to the right of the script editing area;

8

Click the Actions panel and pull the move 10 step command to the script editing area;

9

Drag the bounce command to the right script editing area;

10

Click Control, pull the repeated execution to the right script editing area, and include the two action commands inside;

11

Light the green flag, run the program, and the ball starts to cycle left and right, and it bounces off the edge.

Recommendation