How to make the "Digital Lianliankan" game? The Scratch platform provides convenient tools that make it easy for programming beginners to get started. This tutorial will take you step by step to create a 4x4 digital connect game, from building the game interface to setting up matching rules, and teach you step by step how to master Scratch programming skills. Read on to unlock the secrets to making digital connect games!
First we need to create a character. At this time, we can choose to customize a character. If we draw one ourselves, it will be easier to get the desired effect.
Draw a rectangular frame on the canvas and fill our rectangular frame with a color you like so that its outline can be seen when the numbers are displayed.
We add a text box in the rectangular box, change the color and size of the number so that it is centered in the rectangular box, and then double-click the number to change the content.
After completing a shape, copy the shape, change the number display, and copy all the shapes we need. Then we set up the program to make him clone himself.
When cloning yourself, change the displayed position. The first four need to change the x coordinate and increase evenly. Then the x coordinate returns to the origin and the y coordinate is changed. Cycle through again.
By changing the number of repetitions, we can get different matrices. We can make them any size we want, and then we can set variables to let them change the internal parameters and display Different shapes.
The above is the detailed content of How to make numbers in scratch. How to display numbers 4 times 4 in scratch?. For more information, please follow other related articles on the PHP Chinese website!