How does scratch make a cat and mouse app?

Time:2020-3-25

When scratch is making a small program, how to operate it if you want to achieve the effect of the cat eating the mouse and the mouse disappearing and the cat getting bigger? Let’s take a look at the detailed tutorial.

Software name:
Scratch3.0 offline editor v3.4.0 free installation in Chinese
Software size:
170.7MB
Updated:
2019-08-31

1. Open scratch and enter its main interface;

2. Right click the character cat to openShortcut menu,ChoiceDelete commandDelete it;

3. Click to select from role LibraryTake the role;

4. Enter the role Library of scratch;

5. Find the picture of the cat in the animal category, select it and press OK;

6、Insert the cat into scratch;

7. Select the mouse image in the same way and press OK;

8. Create it in scratchAnother character mouse;

9. Add the following script to the cat,Let the cat move randomly, rebound when it meets the edge, and grow when it meets the character mouse

10. Add the following script to the mouse to realize the random movement of the mouse. When the cat disappears automatically, it will appear randomly at any position on the stage after a while;

11, clickGreen flag execution procedure, the kitten starts to exercise. After eating the mouse, the mouse disappears and the cat grows larger.

The above is a tutorial for scratch to make a cat and mouse applet. I hope you like it. Please continue to pay attention to developpaer.

Relevant recommendations:

How can scratch add clothing store background?

How does scratch create the animation effect of bird flying?

How can scratch create an animation of Apple landing?