If you are looking for software to use, go to Huajun Software Park! software release AI product list
Location: Home pageTutorial strategyTutorialComputer software tutorials How about scratch...

How to fire bullets in scratch-How to fire bullets in scratch

Author: Qingchen Date: 2025-11-26

scratch
scratch-21.3.1.0

programming tools Storage size: 63.33 MB Time: 2022-05-26

Software introduction: The official version of scratch is a graphical programming software specially created for children. In addition to Web, scratch not only provides multiple offline versions...

Download now

Scratch is a graphical programming tool developed by MIT. Users can create interactive stories, games and animations without any programming knowledge by dragging color-coded instruction blocks. With the core concept of "imagination-programming-sharing", the platform not only cultivates logical thinking and creativity, but also allows learners to display their works and inspire each other through a global online community. It has now become a programming enlightenment platform popular in more than 150 countries, opening the door to creative programming for young people. Next, let the editor of Huajun explain to you how scratch fires bullets and how scratch fires bullets!

first step

Open Scratch and click the "globe icon" in the upper right corner.

scratch,scratchdownload

Step 2

Select "Chinese" in the drop-down menu, and the interface language switching is completed.

scratch,scratchdownload


Step 3

Click the "Draw" button (brush icon) in the "Character List Area". Use the Rectangle Tool to draw an elongated rectangle (for the main body of the bullet). Use the Ellipse Tool to add a small ellipse (to simulate a bullet) at the front of the rectangle.

scratch,scratchdownload

Step 4

Click "Set Shape Center" (crosshair icon) in the upper right corner. Move the center point to the midpoint of the bullet's tail (make sure it is fired from this point).

scratch,scratchdownload

Step 5

Add the launch script in the code area of the bullet character

Step 6

Add it in the code area of the spaceship character to control the launch

Step 7

Click the green flag to run the program. Press the space bar and watch the bullets shoot out from the spaceship and move forward, disappearing after hitting the edge.

scratch,scratchdownload

The above is how the editor of Huajun compiled for you how to fire bullets with scratch and the method of firing bullets with scratch. I hope it can help you!

Related articles