![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2021/12/ratch_kao_dounaru.png)
こんにちは!
「スクラッチしよう!楽しく学ぶプログラミング教室」の担任ラッチです。
![スック](https://scratchsiyou.com/wp-content/uploads/2021/11/sukku_futu-300x300.png)
スックです。
よろしくね!
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2021/12/ratch_kao_dounaru.png)
今回は、ネコを回転させます。
![scratch スプライトが回転する](https://scratchsiyou.com/wp-content/uploads/2022/03/scratchsityoutitle01017_explanation1.png)
![スック](https://scratchsiyou.com/wp-content/uploads/2021/11/sukku_futu-300x300.png)
ラッチ先生。
ネコを回転させるプログラミングも簡単なんでしょ!
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2021/11/ratch_kao_yes-1-300x300.png)
イエ~ス!!
3つのブロック!イエーーース!
![「スクラッチしよう!1-7 ネコを回転させよう!」 scratch ネコを回転させるスクリプト](https://scratchsiyou.com/wp-content/uploads/2022/03/scratchsiyoutitle0107_explanation6.png)
スクラッチさん!
こんなにかんたんなプログラミングにさせてくれて ありがとうございます!
![スック](https://scratchsiyou.com/wp-content/uploads/2021/11/sukku_futu-300x300.png)
うん、これなら僕にでもプログラミングができるね!
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2021/11/ratch_kao_dounaru-6.png)
はい!
これから、プログラミングを始めようとする人にとって、
「スクラッチ(scratch)」は、とてもよいプログラミング言語です。
さあ、みなさんも、いっしょに作ってみましょう!
それでは、楽しくプログラミングを学んでいきましょう!
今回作るスクラッチの作品は、これっ!
![スック](https://scratchsiyou.com/wp-content/uploads/2021/11/sukku_futu-300x300.png)
緑の 旗をクリックしてやってみよう!
今回のプログラミングで学ぶことは
1. ネコが右回り回転を続けるスクリプトがわかるよ。
![「スクラッチしよう!1-7 ネコを回転させよう!」 scratch ネコが右回り回転続ける](https://scratchsiyou.com/wp-content/uploads/2022/01/scratchsityoutitle01017_explanation1.png)
2. ネコをクリックすると、「こんにちは!」と言って止まるスクリプトがわかるよ。
![「スクラッチしよう!1-7 ネコを回転させよう!」 scratch ネコをクリックすると「こんにちは!」と言う](https://scratchsiyou.com/wp-content/uploads/2022/01/scratchsiyoutitle0105_explanation3.png)
スクリプトを見てみよう
スプライトはこれです!
![「スクラッチしよう!1-7 ネコを回転させよう!」 スプライト](https://scratchsiyou.com/wp-content/uploads/2021/11/0d40a5e4a645fc6b96e767d64ac0878e.png)
![ラッチ先生<br>](https://scratchsiyou.com/wp-content/uploads/2021/12/ratch_kao_dounaru.png)
このスクラッチ作品のスプライトは、
- 「ネコ」
です。
- 「スプライト1」を「ネコ」に名前を変えました。
スクリプトはこれです!
ネコのスクリプト
![「スクラッチしよう!1-7 ネコを回転させよう!」scratch ネコのスクリプト](https://scratchsiyou.com/wp-content/uploads/2022/01/scratchsiyoutitle0107_sprict1.png)
プログラミングの仕方を説明します
ネコのスクリプト
ネコが 右回りに回転するプログラミング
![「スクラッチしよう!1-7 ネコを回転させよう!」scratch ネコ 右回りに回転するスクリプト](https://scratchsiyou.com/wp-content/uploads/2022/01/scratchsiyoutitle0107_explanation2.png)
![scratch 「右回り〇度回す」ブロック](https://scratchsiyou.com/wp-content/uploads/2022/03/scratchsiyoutitle0107_explanation7.png)
- スプライト(ここではネコ)を右回りに15度回します。
![scratch 「右回り〇度回す」ブロックの役目](https://scratchsiyou.com/wp-content/uploads/2021/11/scratchsiyoutitle0107_migimawari.png)
ネコをクリックすると 動きが止まるプログラミング
![「スクラッチしよう!1-7 ネコを回転させよう!」scratch ネコをクリックすると動きが止まるスクリプト](https://scratchsiyou.com/wp-content/uploads/2022/01/scratchsiyoutitle0107_explanation3.png)
![scratch 「このスプライトが押されたとき」ブロック](https://scratchsiyou.com/wp-content/uploads/2022/10/scratchsiyoutitle0107_sprict7.png)
- スプライトがクリックされたら、下のスクリプトがコンピューターに命令します。
![scratch 「このスプライトが押されたとき」ブロックの役目](https://scratchsiyou.com/wp-content/uploads/2022/03/scratchsiyoutitle0105_explanation13.png)
![スック](https://scratchsiyou.com/wp-content/uploads/2021/11/sukku_futu-300x300.png)
「スプライトの他のスクリプトを止める」コードは、他のスクリプトの動きを止めます。
くわしくは、こちらの記事を読んでみてね。
ネコの回転を変えたい時は どうするの?
ネコの回転を 速くする方法
![スック](https://scratchsiyou.com/wp-content/uploads/2021/12/sukku_are-300x300.png)
ラッチ先生、
ネコをもっと速く回転させたいなあ。
どうすればいいの?
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2021/12/ratch_kao_dounaru.png)
スプライト(ここではネコ)を速く回転させるなら、「右回り15度回す」コードの数字を大きくしよう。
数字を大きくなれば、ネコがそれだけ大きく回転するので速く回転しますよ。
![scratch ネコの回転を速くする
「右回り15度回す」と「右回り90度回す」ブロックの比較](https://scratchsiyou.com/wp-content/uploads/2021/11/scratchsiyoutitle0107_migimawari1.png)
ネコを 逆回転させる方法
![スック](https://scratchsiyou.com/wp-content/uploads/2021/12/sukku_question-300x300.png)
ねえ、ラッチ先生。
ネコを逆回転させたいんだ!
どうすればいいのかなあ?
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2021/12/ratch_kao_dounaru.png)
ネコを逆回転、
つまり左回りに回転させるんだよね!
![scratch ネコを左回りに回転する](https://scratchsiyou.com/wp-content/uploads/2021/11/scratchsiyoutitle0107_hidarimawari1-1.png)
![スック](https://scratchsiyou.com/wp-content/uploads/2022/01/sukku_futu-300x300.png)
そう、そう。
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2021/12/ratch_kao_dounaru.png)
スプライト(ここではネコ)を、左回りに回転させる方法は2つあります。
![](https://scratchsiyou.com/wp-content/uploads/2022/01/scratchsiyoutitle0107_hidarimawari1-1.png)
- 「右回り〇度回す」コードに、「-15」のようにマイナスの数字を入力する
![scratch 「右回り-15度回す」ブロック](https://scratchsiyou.com/wp-content/uploads/2022/01/scratchsiyoutitle0107_sprict5.png)
- 「左回り〇度回す」コードにする。
![scratch 「左回り15度回す」ブロック](https://scratchsiyou.com/wp-content/uploads/2022/01/scratchsiyoutitle0107_sprict6.png)
![スック](https://scratchsiyou.com/wp-content/uploads/2022/01/sukku_futu-300x300.png)
なるほどね!
わかったよ。
まとめ
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2021/12/ratch_kao_dounaru.png)
今日は、
「右回り〇度回す」「左回り〇度回す」ブロックを使って、ネコを回転させるプログラミングを学びました。
今日のプログラミングでわかったこと
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2021/12/ratch_kao_dounaru.png)
ネコを回転させるプログラミングは、こちら!
![「スクラッチしよう!1-7 ネコを回転させよう!」 scratch ネコを右回りに回転させるスクリプト](https://scratchsiyou.com/wp-content/uploads/2022/03/scratchsiyoutitle0107_explanation6-1.png)
![「スクラッチしよう!1-7 ネコを回転させよう!」scratch ネコが右回りに回転し続ける](https://scratchsiyou.com/wp-content/uploads/2022/03/scratchsityoutitle01017_explanation1-1.png)
![「スクラッチしよう!1-7 ネコを回転させよう!」 scratch ネコを左回りに回転させるスクリプト](https://scratchsiyou.com/wp-content/uploads/2022/03/scratchsiyoutitle0107_explanation8.png)
![「スクラッチしよう!1-7 ネコを回転させよう!」scratch ネコが左回りに回転し続ける](https://scratchsiyou.com/wp-content/uploads/2022/03/scratchsiyoutitle0107_explanation9.png)
![スック](https://scratchsiyou.com/wp-content/uploads/2022/01/sukku_ok-300x300.png)
角度を変えるだけで、かんたんに回転の速さも変えられるんだよね!
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2021/12/ratch_kao_dounaru.png)
そうです。
みんなも好きなスプライトをいろいろ回転させてみてください。
おもしろいよ!
それじゃあ、またっ!
![スック](https://scratchsiyou.com/wp-content/uploads/2021/12/sukku_futu-300x300.png)
まったねえーーー!
(@^^)/~~~
ステップアップドリル
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2021/12/ratch_kao_dounaru.png)
「変数」って、なあに?
「変数」ブロックって、どう使うの?
と 思っている方に!
変数ブロックでのプログラミングを 学べるドリルを 作りました
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2021/12/ratch_kao_dounaru.png)
「リスト」って、なあに?
「リスト」ブロックって、どう使うの?
と 思っている方はこちら!
リストブロックでのプログラミングを 学べるドリルを 作りました
![スック](https://scratchsiyou.com/wp-content/uploads/2022/01/sukku_futu-300x300.png)
画面を クリックすると
「ステップアップドリル」のサイトへ 行けます!
コメント