A Method to Encrypt the Answer in Scratch Programming

If you are designing a quiz project in Scratch, you will check if the user could answer the questions correctly. However, since all the published projects share the code, your user could always "see inside" of the project and get the answer, like the following code snippet. How could you test your user without getting …

Continue reading A Method to Encrypt the Answer in Scratch Programming

Learn Scratch by Analyzing Others’ Project – Platformer Game with Editing Functionality Part 4

In the previous posts, I introduced the core sprite of the Blocky game, the "Blocks" sprite, which is responsible for adding, deleting or editing the environment blocks. Starting from this post, we are going to switch to the other core sprite - Hitbox. Homescreen UI Sprite Before introducing the code of Hitbox sprite, I would …

Continue reading Learn Scratch by Analyzing Others’ Project – Platformer Game with Editing Functionality Part 4

Scratch Programming – Animate with Pen

In previous posts, I analyzed many games made of Scratch 3.0 platform. Among them, some use Pen functionality to draw life value bar (Airplane Game), draw the grid in puzzle game (Purple Game), draw blocks in Tetris game, or draw water streams to generate animation. You may have known that because of the fast speed …

Continue reading Scratch Programming – Animate with Pen

Learn Scratch by Analyzing Others’ Project – Platformer Game with Editing Functionality Part 3

In the previous post, I introduced part of the Stamp block. As I have said, this is a very long code segment and its functionality could be divided into three parts. In the previous Part 2 analysis, I analysed the first functionality - drawing the blocks on the stage. In this post, I will continue …

Continue reading Learn Scratch by Analyzing Others’ Project – Platformer Game with Editing Functionality Part 3

Learn Scratch by Analyzing Others’ Project – Platformer Game with Editing Functionality Part 2

In Part 1 of this project, I introduced how this game realized some stylish visual effects, how to encode its data and store the data in a file, and how to import the data from a file by decoding its data and filling in several lists. In this post, I would like to explain how …

Continue reading Learn Scratch by Analyzing Others’ Project – Platformer Game with Editing Functionality Part 2

Learn Scratch by Analyzing Others’ Project – Platformer Game with Editing Functionality Part 1

In previous post, I summarized the key points of platformer game tutorial video uploaded by well known Youtuber. However, some platformer games could even go further. They could allow user to define the ground, obstacles, checkpoints and then save their level setting information to their computer. When the user plays the game, they could start …

Continue reading Learn Scratch by Analyzing Others’ Project – Platformer Game with Editing Functionality Part 1

Learn Scratch 3.0 by Analyzing Project – Melting Line Puzzle Game Part 2

In the last post, I analyzed those UI related sprite of the Melting Line puzzle game. In this post, I would like to introduce the list structure and how to judge pass/fail condition of the game. All of these functions are implemented by Algorithm Sprite. Algorithm Sprite "when I receive start a level" Code Segment …

Continue reading Learn Scratch 3.0 by Analyzing Project – Melting Line Puzzle Game Part 2

Learn Scratch 3.0 by Analyzing Project – Melting Line Puzzle Game Part 1

In the previous posts, I analyzed many puzzle projects, such as Gliding Puzzle, Game 2048, Tetris, etc. There is much difference between puzzle game and other popular Scratch games. Puzzle games usually have static background and focus less on sprite's costume and actions. Therefore, some players might feel that puzzle games are not so shiny. …

Continue reading Learn Scratch 3.0 by Analyzing Project – Melting Line Puzzle Game Part 1

Learn Scratch 3.0 by Reading and Analyzing Others’ Project – Angry Bird Game

Did you play Angry Bird game on your phone? It was once popular and easy to get addicted. Now, let's learn how to implement a simple version by using Scratch 3.0. The original project could be found at https://scratch.mit.edu/projects/286172798 Since the original project contains some Chinese characters, I replaced them with English names and you …

Continue reading Learn Scratch 3.0 by Reading and Analyzing Others’ Project – Angry Bird Game

Learn Scratch by Reading and Analyzing Others’ Project – a GomoKu Game – Part 2

In the previous post, I explained the backdrop sprite, Map sprite and Cursor sprite. In this post, I will explain the Rule sprite, which contains core algorithm of this game - how to judge who wins the game. I will also analyze the code of several other auxilliary sprites. So let's start! Rule Sprite There …

Continue reading Learn Scratch by Reading and Analyzing Others’ Project – a GomoKu Game – Part 2