Skip to main content

Posts

Showing posts from November, 2023

Bouncing ball

Hello! today we want to play with physics! If you want to stop reading because you hate physics classes, then... I promise that everything we talk about today will be extremely simple and fun! Today we throw a ball and if we think about throwing any objects, one term comes to mind: gravity ! So we can imagine it as an invisible force that attracts objects towards itself. If we think about Earth's gravity, of course it attracts objects to the ground. I mentioned we were going to throw the ball, right? Let's look at the final result of today's work. As usual, before we jump into coding, we need to draw our objects. Today, we will import them! On the right side, click Backdrops and select one of the existing ones called Blue Sky . We repeat the same for the sprite. We want to have the ball. So let's go through the sprite gallery in Scratch and find one called Baseball . Once added, let's rename it to Ball . Now it’s time for coding! We start from adding 4 variables: b...

Text animation

Today we will take the next step in our exciting journey as a Scratch developer. This time we will play with text animation. Our goal is to enlarge individual letters when you hover the mouse over them. In addition, we will use the effects component available in Scratch to make our animation look even fancier. Before we go into the details, let's check the end result. The first step is to create four sprites. Each of them will represent an individual letter of the word DEVS . Each letter must have its own dedicated color. We will choose the following letter colors: D – green E – yellow V – red S – blue The outline should be gray and size 1. We need to save the current zoom value for each individual letter. Let's create a new variable called zoom for the first sprite D. Traditionally, we run the script by clicking the green flag. We assume that the initial size of the letter is 50. In the foreach loop, when the sprite is hovered over, we want to increase its size by 2 until th...