Skip to main content

Posts

Showing posts from December, 2023

How to make a Tic-Tac-Toe Game in Scratch

Hello Scratch players, today we are happy to announce that we have released the first step-by-step tutorial on how to create a Tic-Tac-Toe game in Scratch!

Jump

Welcome to this exciting tutorial where we will dive into the world of Scratch programming to create a jump functionality for your games or animations! Throughout this tutorial, I am going to guide you step by step so that even if you are at the very beginning of your coding journey, by the end, you will have a functional jump mechanism that you can implement in your own Scratch projects. You'll use essential coding concepts like loops, conditionals, and variables, all of which are not just core to Scratch, but to programming as a whole. Let's go then to https://scratch.mit.edu/ and create new project. As always when starting new project Scratch add cat sprite to the stage. Lets select a sprite and go to the code area. If you are not familiar with Scratch interface check my previous article about it. We will start with a fairly simple approach. After clicking jump key, space in our case is going to move sprite up on x-axis and then down. Our code should looks similar to one...

List operations in Scratch

Hey Scratchers. During our adventure with Scratch, we have already learned that variables can be used to store data in applications. Today we would like to show you how to work with lists. In short, a list is a data structure that contains a collection of elements. We will learn basic list operations and after these exercises you should be ready to use it in your applications. To create a list, click the Variables button and Make a List button. We add a name for our list as names . Then we observe an interesting thing. A list with a set of possible operations has been added to Scratch. In the preview section we can observe that Scratch added graphic component and thanks to it, we will be able to observe all the elements in the list. Now, if we want to add some elements to list, we need to drag and drop add… to... component. When our program runs, we want to clear everything, so every time we click the green flag we will get the same result. You can see that the code adds 3 names to ...