Note

Hello, welcome to the SunFounder Raspberry Pi & Arduino & ESP32 Enthusiasts Community on Facebook! Dive deeper into Raspberry Pi, Arduino, and ESP32 with fellow enthusiasts.

Why Join?

  • Expert Support: Solve post-sale issues and technical challenges with help from our community and team.

  • Learn & Share: Exchange tips and tutorials to enhance your skills.

  • Exclusive Previews: Get early access to new product announcements and sneak peeks.

  • Special Discounts: Enjoy exclusive discounts on our newest products.

  • Festive Promotions and Giveaways: Take part in giveaways and holiday promotions.

👉 Ready to explore and create with us? Click [here] and join today!

Animate A Name¶

Description¶

Today we will learn to write our name on Scratch. When we click on the letters in the name, they will become active.

Click the green flag to start.

Or click Animate A Name, and then learn online tutorial on the Scratch official website.

Required Components¶

  • A Screen

  • Scratch 3 (either online or offline)

You Will Learn¶

  • Choose the sprite you want.

  • Program different sprites separately.

  • Make the sprite change color.

  • Let the sprite spin.

  • Let the sprite zoom.

  • Let the sprite flash.

Lesson Guide¶

My Name is Abby.¶

In the lower right corner of Scratch, there are two areas. We can add the sprite and backdrop we want here.

../../_images/animate_a_name1.png

First delete the original sprite, we don’t need it.

../../_images/animate_a_name2.png

Then choose a sprite.

../../_images/animate_a_name3.png

Find the Letter sprite.

../../_images/animate_a_name4.png

Repeat several times to spell out your name, like me, “Abby”.

../../_images/animate_a_name5.png

A can change its color.¶

Click on the Glow-A sprite and let’s write a bit of code for it.

When A is clicked, it changes its color.

Click on the sprite, find 「when this sprite cliked」 in Events, and drag it to the right coding area.

../../_images/animate_a_name6.png

Drag 「change color effect by…」 from Looks to the bottom of 「when this sprite cliked」.

../../_images/animate_a_name7.png

At this time, we click on the letter A on the stage and it will change its color.

B can rotate 360°.¶

Click on the Glow-B sprite, let’s write a code for the Glow-B wizard. When the letter B on the stage is clicked, it will rotate in a circle.

../../_images/animate_a_name8.png

Do you know why B is rotated 15 degrees 24 times? Because 24*15=360, it turns 360 degrees!

B2 can zoom in and out.¶

Click on the Glow-B2 sprite, and let us write a code for the Glow-B2 sprite.

When the second B on the stage is clicked, it will zoom in and then zoom out.

../../_images/animate_a_name9.png

Y can show and disappear.¶

Click on the Glow-Y sprite and let us write a piece of code for the Glow-Y sprite. When the Y on the stage is clicked, it will repeatedly disappear and appear.

../../_images/animate_a_name10.png

Challenge¶

I believe that you will be smart enough to program and implement this game soon. Next, we will add some challenges to enrich our game content.

  • Add two new sprites, one of which will blink and change color when clicked; the other will zoom and rotate when clicked.