Skip to main content

Posts

YouTube notification bar in Scratch!

Today we will create a YouTube notification bar. You've probably seen it hundreds of times while watching your favorite YouTube channels. The idea behind this notification bar is quite simple. It should remind users to click the subscribe and bell buttons. Technically, it consists of a few sprites and very simple animations. Excited? Let's get to Scratch! Our first sprite must consist of the YouTube logo, a subscribe icon and a bell, and our Franky mouse (without eyes and mouth, because we will animate them in separate sprites). We need to have 3 costumes, each of them will represent a different state of our animation: all buttons disabled subscribe button enabled subscribe and bell buttons enabled We need to prepare elements for animation in separate sprites. For now, we need to create eyes, a mouth (with the default state, mouth open and smiling) and a cursor. Now it's time for the code blocks. Let's add some code blocks for the first notification sprite. When launch...

What do operators do?

Hello everyone! Today I would like to explain to you what operators in Scratch are. How these could be described in the simplest way? Well, operators are symbols or characters that perform specific actions or make calculations on given values. In Scratch we have three main types of operators:  Arithmetic operators that are used to perform mathematical calculations. Examples of these can be: addition (+)  - adds two numbers substraction (-)  - substract second number from the first one multiplication (*)  - multiplies two numbers division (\) - divides one number by the other Comparison operators that are used to compare two values and return true or false (boolean value). Examples from that group are:  equal (=) - returns true if two values are equal, false otherwise not equal (<>) - returns true if two values are not equal, false otherwise greater than (>) - returns true if the first number is greater than the other, false otherwise less than (<) - ...

Broadcast - let’s start the communication!

We all remember our childhood and situations when our mother invited us to the table and informed us that the food was ready. All we were asked to do was sit down and enjoy our meal. Communication is a way of transferring information between different people, and in programming, between different objects. In Scratch, we can send messages using the broadcast component available in the Events section. Today we will create simple shapes and show/hide them as needed. Before we start, let's check what we will do today. Let's start by adding the first sprite called ground. As you probably guessed, this will be the lower part of our stage. When we run our program, we want to move it to the back layer so that the various sprites are not covered up. The next step is to draw a sprite called a square-button . We can treat it as a source of communication. After clicking, the message will be initialized and sent to our program. Drag and drop the broadcast component and set square-clicke...

Six-Pack recipe by Franky the mouse!

  Hey, we're happy to announce the Six Pack in a 5 minutes episode. Click below to watch and subscribe to our channel if you like it! 🐭

Franky makes his debut on YouTube!

We are happy to announce that our mouse Franky debuts on our YouTube channel @smallDevs . In the first episode, he will try to do a TikTok dance with his dad. P.S. Don't forget to click Subscribe if you like our buddy.

Franky makes a decision

In the real life we are constantly making different decision based on different factors. For example, making a decision based on weather:  if there will be raining I'll stay at home, otherwise I'll play outside . I guess that without any problems you could give some other examples making decisions based on various conditions. As you can see, every of these examples rely on a piece of information that will let us figure out whether condition (is it raining?) is fulfilled or not.  If there is a mess in my room I have to clean it up If I am hungry I have a quick snack. If I am sick I will stay in bed Similarly in programming - to make our program smarter, we let it decide how to act if certain situations. In Scratch we have if ... then and if ... then ... else command blocks which can be translated to the humans speach as in following example: To make our example way more colorful, lets move to the magical world of Franky the Mouse. I have provided you with a file containing a ...

Franky stores data in variables

Do you remember the last time you held a school bag? People all over the world know why it was invented. We use it to carry things like books or notebooks from one place to another. If you're wondering what the variable meaning is, you can imagine it as a school bag. It's like a container or a place where you can store your data. Let's use our buddy Franky to show you how to deal with variables in Scratch. Go to Costumes and copy the franky-mouse costume. We can call the new one franky-mouse-mouth . Now we need to add new variable in Scratch. Let’s go to Code section and click Variables button. In variables area we need to click Make a Variable button to add new one. We can name it clicksCounter . We will use it to track the number of clicks on Franky. Our new variable clicksCounter has been added to the variables section. Now...

Introduction to the Scratch interface

Let's start out journey!   As every story, this one also has its beginning. Here we will show you the gate to the powerful tool that will let you create your own magical worlds. As a first step we are going to briefly introduce you to Scratch working environment by exploring different sections of Scratch editor. To create animated story or the game you must add instruction so that actors that plays on the stage knows what to do. Actors In Scratch actors are represented by sprites, which ares pictures displayed on the screen, that follows your commands. By default Scratch starts with a cat sprite for every new project but we will create our own here in the next lessons.. Area on the right bottom part of screen is called sprite pane. Here you can add the sprite, remove the sprite and browse all the sprites added to your project. Sprites added to the project are visible on the stage. Stage On the stage we can see result of the sprite following computer program build of comman...