How to Rotate Cat in Scratch

Motion
ラッチ先生
ラッチ先生

Hello!

I’m Teacher Ratch from “Let’s Scratch! Fun Programming Class.”

スック
スック

I’m Sukku.

Nice to meet you!

ラッチ先生
ラッチ先生

Today, we will rotate the cat.

scratch スプライトが回転する
スプライトが回転かいてんする
ネコを回転かいてんさせる
スック
スック

Teacher Ratch.

Rotating the cat is easy too, right?

ラッチ先生
ラッチ先生

Yes!!

Just 3 blocks! Yeeees!

「スクラッチしよう!1-7 ネコを回転させよう!」 scratch ネコを回転させるスクリプト
スプライトが回転かいてんするスクリプト

Thank you, Scratch!

For making programming so easy!

スック
スック

Yeah,

even I can do programming with this!

ラッチ先生
ラッチ先生

Yes!

For people who want to start programming,

Scratch is a very good programming language.

Now, let’s make it together!

Let’s learn programming and have fun!

スポンサーリンク

Here is the Scratch project we will make today!

  • When you click the green flag, the cat rotates clockwise.
  • When you click the cat, it says “Hello!” and stops.
スック
スック

Click the green flag and try it!

What you will learn in this lesson:

1. You will learn how to make the cat rotate clockwise continuously.

「スクラッチしよう!1-7 ネコを回転させよう!」 scratch ネコが右回り回転続ける
ネコがみぎまわ回転かいてんつづける

2. You will learn how to make the cat say “Hello!” and stop when clicked.

「スクラッチしよう!1-7 ネコを回転させよう!」 scratch ネコをクリックすると「こんにちは!」と言う
ネコをクリックすると、「こんにちは!」と
スポンサーリンク

Let’s Look at the Script

Here is the sprite!

「スクラッチしよう!1-7 ネコを回転させよう!」 スプライト
スプライト
ラッチ先生<br>
ラッチ先生

The sprite in this Scratch project is:

  • Cat
  • I changed the name from “Sprite1” to “Cat.”

Here is the script!

Cat’s Script

「スクラッチしよう!1-7 ネコを回転させよう!」scratch ネコのスクリプト
ネコのスクリプト

Let me explain how to program this.

Cat’s Script

Programming to make the cat rotate clockwise

「スクラッチしよう!1-7 ネコを回転させよう!」scratch ネコ 右回りに回転するスクリプト
ネコがみぎまわ回転かいてんするスクリプト
“turn right ○ degrees” block
scratch 「右回り〇度回す」ブロック
みぎまわり〇まわす」ブロック
  • This block turns the sprite (cat) 15 degrees clockwise.
scratch 「右回り〇度回す」ブロックの役目
みぎに〇まわす」コードの役目やくめ

Programming to stop movement when the cat is clicked

「スクラッチしよう!1-7 ネコを回転させよう!」scratch ネコをクリックすると動きが止まるスクリプト
ネコをクリックするとまるスクリプト
“when this sprite clicked” block
scratch 「このスプライトが押されたとき」ブロック
「このスプライトがされたとき」ブロック
  • When the sprite is clicked, the script below gives a command to the computer.
scratch 「このスプライトが押されたとき」ブロックの役目
「このスプライトがされたとき」ブロックの役目やくめ
スック
スック

The “stop other scripts in sprite” block stops other scripts.

For details, please read this article.

スポンサーリンク

How to Change the Cat’s Rotation?

How to Make the Cat Rotate Faster

スック
スック

Teacher Ratch,

I want to make the cat rotate faster.

What should I do?

ラッチ先生
ラッチ先生

To make the sprite (cat) rotate faster, increase the number in the “turn 15 degrees clockwise” block.

The bigger the number, the more the cat turns, so it rotates faster.

scratch ネコの回転を速くする
「右回り15度回す」と「右回り90度回す」ブロックの比較
みぎ15まわす」と「みぎ90まわす」コードの比較ひかく

How to Make the Cat Rotate in Reverse

スック
スック

Hey, Teacher Ratch.
I want to make the cat rotate in reverse!

How can I do that?

ラッチ先生
ラッチ先生

Rotate in reverse,

that means rotate counterclockwise!

scratch ネコを左回りに回転する
ネコが逆回転ぎゃくかいてんする
スック
スック

Yes, yes.

ラッチ先生
ラッチ先生

There are 2 ways to make the sprite (cat) rotate counterclockwise.

How to Rotate Counterclockwise
スプライトがひだり回転かいてんする
  • Enter a negative number like “-15” in the “turn degrees clockwise” block
scratch 「右回り-15度回す」ブロック
みぎまわり-15まわす」ブロック
  • Use the “turn degrees counterclockwise” block.
scratch 「左回り15度回す」ブロック
ひだりまわりに15まわす」コード
スック
スック

I see!

I understand now.

スポンサーリンク

Summary

ラッチ先生
ラッチ先生

Today,

we learned how to rotate the catusing the “turn degrees clockwise” and “turn degrees counterclockwise” blocks.

What We Learned Today

ラッチ先生
ラッチ先生

Here is the programming to rotate the cat!

Programming to Rotate Clockwise
「スクラッチしよう!1-7 ネコを回転させよう!」 scratch ネコを右回りに回転させるスクリプト
ネコをみぎまわりに回転かいてんさせるスクリプト
「スクラッチしよう!1-7 ネコを回転させよう!」scratch ネコが右回りに回転し続ける
ネコがみぎまわりに回転かいてんつづける
Programming to Rotate Counterclockwise
「スクラッチしよう!1-7 ネコを回転させよう!」 scratch ネコを左回りに回転させるスクリプト
ネコをひだりまわりに回転かいてんつづけるスクリプト
「スクラッチしよう!1-7 ネコを回転させよう!」scratch ネコが左回りに回転し続ける
ネコがひだりまわりに回転かいてんつづける
スック
スック

By just changing the angle,
you can easily change the rotation speed!

ラッチ先生
ラッチ先生

That’s right.

Try rotating different sprites you like.

It’s fun!

See you next time!

スック
スック

Bye-bye!

(@^^)/~~~

コメント