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.
T249
windows 10
scratch2.0
First of all, open the scratch program and enter its working interface;
Change the English interface to simplified Chinese;
Right-click the role cat and choose Delete to delete the default role cat.
Point selects a role from the role library;
Select the item in the left character library, select the Ball "Ball" and press OK;
The character ball is created;
Select the event and drop "When the Green Flag is clicked" to the right of the script editing area;
Click the Actions panel and pull the move 10 step command to the script editing area;
Drag the bounce command to the right script editing area;
Click Control, pull the repeated execution to the right script editing area, and include the two action commands inside;
Light the green flag, run the program, and the ball starts to cycle left and right, and it bounces off the edge.