![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2021/12/ratch_kao_dounaru.png)
こんにちは!
「スクラッチしよう!楽しく学ぶプログラミング教室」の担任ラッチです。
![スック](https://scratchsiyou.com/wp-content/uploads/2022/01/sukku_futu-300x300.png)
スックだよ!
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2022/07/ratch_kao_yes-2-300x300.png)
今回は、「ねっちを ねらえ!」でぇ~す!
![スック](https://scratchsiyou.com/wp-content/uploads/2022/09/sukku_futu-1-300x300.png)
スマホやタブレットでも、できるんだね
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2022/08/ratch_kao_dounaru-2.png)
そうです。
普通、パソコンで行うスナイパー(射撃)ゲームは、
マウスのポインターで的(ねっち)を探して、クリックで射撃しますが
ゲーム「ねっちを ねらえ!」では、
スマホやタブレットでも できるように クリックで射撃しません!
![「スクラッチしよう!10-40 ねっちをねらえー#1」 scratch 狙撃の仕方](https://scratchsiyou.com/wp-content/uploads/2022/10/scratchsiyoutitle1040_explanation6-1.png)
![スック](https://scratchsiyou.com/wp-content/uploads/2022/10/sukku_are-300x300.png)
へぇ~、どうなってるの?
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2022/08/ratch_kao_dounaru-2.png)
「ねっちを ねらえ!」の狙撃スクリプトは、これです!
![「スクラッチしよう!10-40 ねっちをねらえー#1」 scratch 狙撃のスクリプト](https://scratchsiyou.com/wp-content/uploads/2022/10/scratchsiyoutitle1040_explanation8.png)
![スック](https://scratchsiyou.com/wp-content/uploads/2022/10/sukku_futu-300x300.png)
あっ、なるほど。
「ねっちを ねらえ!」ゲームの射撃は、
1秒間 赤い丸を ねっちに当てるんだね!
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2021/12/ratch_kao_dounaru.png)
そうなんだ!
じゃあ、作ってみようか
![スック](https://scratchsiyou.com/wp-content/uploads/2022/10/sukku_ok-300x300.png)
O.K!
それでは、楽しくプログラミングを学んでいきましょう!
今回作るスクラッチの作品は、これっ!
![スック](https://scratchsiyou.com/wp-content/uploads/2022/10/sukku_futu-300x300.png)
制限時間は10秒間
がんばれ!
今回のプログラミングで学ぶことは
1.10匹のネコを表示するスクリプトが わかるよ
![「スクラッチしよう!10-40 ねっちをねらえー#1」 scratch 10匹のネコを表示する](https://scratchsiyou.com/wp-content/uploads/2022/10/scratchsiyoutitle1040_explanation12.png)
2.ねっちが 隠れるように表示するスクリプトがわかるよ
![「スクラッチしよう!10-40 ねっちをねらえー#1」 scratch ねっちを隠れるように表示する](https://scratchsiyou.com/wp-content/uploads/2022/10/scratchsiyoutitle1040_explanation16.png)
3.スコープで探すスクリプトがわかるよ
![「スクラッチしよう!10-40 ねっちをねらえー#1」 scratch スコープで探す](https://scratchsiyou.com/wp-content/uploads/2022/10/scratchsiyoutitle1040_explanation20.png)
4.射撃のスクリプトがわかるよ
![「スクラッチしよう!10-40 ねっちをねらえー#1」 scratch 射撃する](https://scratchsiyou.com/wp-content/uploads/2022/10/scratchsiyoutitle1040_explanation22.png)
5.10秒経つと、ゲームオーバーになるスクリプトがわかるよ
![「スクラッチしよう!10-40 ねっちをねらえー#1」 scratch 10秒経つとゲームオーバー](https://scratchsiyou.com/wp-content/uploads/2022/10/scratchsiyoutitle1040_explanation25.png)
スクリプトを見てみよう
スプライトはこれです!
![「スクラッチしよう!10-40 ねっちをねらえー#1」 scratch スプライト](https://scratchsiyou.com/wp-content/uploads/2022/10/scratchsiyoutitle1040_explanation26.png)
![ラッチ先生<br>](https://scratchsiyou.com/wp-content/uploads/2021/12/ratch_kao_dounaru.png)
このスクラッチ作品のスプライトは、
- 「ネコ」
- 「ねっちの顔」
- 「ねっちの体」
- 「スコープ1」
- 「スコープ2」
- 「スプライト1」を「ネコ」にしました。
- 「Cat」を「ねっちの顔」「ねっちの体」にしました。
- 「スコープ1」と「スコープ2」は、自分で作成
*「スコープ2」の大きさは、26です。
コスチュームはこれです!
![「スクラッチしよう!10-40 ねっちをねらえー#1」 scratch コスチューム](https://scratchsiyou.com/wp-content/uploads/2022/10/scratchsiyoutitle1040_explanation39.jpg)
![スック](https://scratchsiyou.com/wp-content/uploads/2022/01/sukku_futu-300x300.png)
「ねっちの顔」の作り方は、
こちらの記事にのっています。
「ねっちの顔」の中心の位置は、変えないよ
![スック](https://scratchsiyou.com/wp-content/uploads/2022/10/sukku_ok-300x300.png)
「ねっちの体」は、
スプライト「Cat」で作成します。
ネコの頭の部分を削除してね!
「ねっちの体」の中心の位置も、変えないよ
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2021/12/ratch_kao_dounaru.png)
「スコープ1」は、
ペイントエディターの「円」で作成しました。
コスチュームの作り方は、こちらの記事に載っています
背景はこれです!
![「スクラッチしよう!10-40 ねっちをねらえー#1」 scratch 背景](https://scratchsiyou.com/wp-content/uploads/2022/10/scratchsiyoutitle1040_explanation44.png)
スクリプトはこれです!
ネコのスクリプト
![「スクラッチしよう!10-40 ねっちをねらえー#1」 scratch ネコのスクリプト1](https://scratchsiyou.com/wp-content/uploads/2022/10/scratchsiyoutitle1040_explanation45.png)
![「スクラッチしよう!10-40 ねっちをねらえー#1」 scratch ネコのスクリプト2](https://scratchsiyou.com/wp-content/uploads/2022/11/scratchsiyoutitle1040_explanation46.png)
ネコの頭のスクリプト
![「スクラッチしよう!10-40 ねっちをねらえー#1」 scratch ネコの頭のスクリプト2](https://scratchsiyou.com/wp-content/uploads/2022/10/scratchsiyoutitle1040_explanation47.png)
ネコの体のスクリプト
![「スクラッチしよう!10-40 ねっちをねらえー#1」 scratch ネコの体のスクリプト2](https://scratchsiyou.com/wp-content/uploads/2022/10/scratchsiyoutitle1040_explanation48.png)
スコープ1のスクリプト
![「スクラッチしよう!10-40 ねっちをねらえー#1」 scratch スコープ1のスクリプト2](https://scratchsiyou.com/wp-content/uploads/2022/10/scratchsiyoutitle1040_explanation49-1.png)
スコープ2のスクリプト
![「スクラッチしよう!10-40 ねっちをねらえー#1」 scratch スコープ2のスクリプト1](https://scratchsiyou.com/wp-content/uploads/2022/10/scratchsiyoutitle1040_explanation50.png)
![「スクラッチしよう!10-40 ねっちをねらえー#1」 scratch スコープ2のスクリプト2](https://scratchsiyou.com/wp-content/uploads/2022/10/scratchsiyoutitle1040_explanation51.png)
背景のスクリプト
![「スクラッチしよう!10-40 ねっちをねらえー#1」 scratch 背景のスクリプト](https://scratchsiyou.com/wp-content/uploads/2022/10/scratchsiyoutitle1040_explanation52.png)
![スック](https://scratchsiyou.com/wp-content/uploads/2022/01/sukku_futu-300x300.png)
効果音は、
- 「Clock Ticking」
- 「Wand」
- 「Oops」
- 「Ricochet」
に、しました。
- 効果音の選び方
- 「〇の音を鳴らす」の使い方
こちらの記事に書いてあるよ!
プログラミングの仕方を説明します
ネコを10体とねっちを表示するプログラミング
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2022/08/ratch_kao_dounaru-1.png)
まず、
「〇のクローンを作る」ブロックを使って
![](https://scratchsiyou.com/wp-content/uploads/2022/10/scratchsiyoutitle1040_explanation53.png)
ネコを10匹をいろんなところに 表示させよう
1.ネコを10匹 表示する
![「スクラッチしよう!10-40 ねっちをねらえー#1」 scratch 背ネコを10匹表示するスクリプト](https://scratchsiyou.com/wp-content/uploads/2022/10/scratchsiyoutitle1040_explanation56.png)
![スック](https://scratchsiyou.com/wp-content/uploads/2022/01/sukku_futu-300x300.png)
スプライトのネコは 隠すので、
必ず、「表示する」ブロックを
![](https://scratchsiyou.com/wp-content/uploads/2022/10/scratchsiyoutitle1040_explanation57.png)
入れてね!
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2022/08/ratch_kao_dounaru-1.png)
次は、
ねっちを 表示します。
スコープで ねっちの顔を ねらってもらいために、顔と体を分けました。
![「スクラッチしよう!10-40 ねっちをねらえー#1」 scratch ねっちの顔と体のスプライト](https://scratchsiyou.com/wp-content/uploads/2022/10/scratchsiyoutitle1040_explanation58.jpg)
![スック](https://scratchsiyou.com/wp-content/uploads/2022/10/sukku_are-300x300.png)
あらっ、かわいそう!
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2022/08/ratch_kao_dounaru-1.png)
「○へ行く」ブロックを使って
![scratch 「○へ行く」ブロック](https://scratchsiyou.com/wp-content/uploads/2022/10/scratchsiyoutitle1040_explanation59.png)
ねっちの顔と体を合体させて、ねっちを作りましょう
2,ねっちの顔と体を つける
![「スクラッチしよう!10-40 ねっちをねらえー#1」 scratch ねっちにするスクリプト](https://scratchsiyou.com/wp-content/uploads/2022/10/scratchsiyoutitle1040_explanation62.png)
![スック](https://scratchsiyou.com/wp-content/uploads/2022/10/sukku_futu-300x300.png)
ねっちだぁ!
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2022/08/ratch_kao_dounaru-1.png)
「○へ行く」ブロックを使って
![scratch 「○へ行く」ブロック](https://scratchsiyou.com/wp-content/uploads/2022/10/scratchsiyoutitle1040_explanation63.png)
ねっちを10匹のネコに、紛れ込ませましょう!
3.ねっちを 表示する
![「スクラッチしよう!10-40 ねっちをねらえー#1」 scratch ねっちを表示するスクリプト](https://scratchsiyou.com/wp-content/uploads/2022/10/scratchsiyoutitle1040_explanation65.png)
![スック](https://scratchsiyou.com/wp-content/uploads/2022/10/sukku_are-300x300.png)
ねっちが、画面の前に出ていて
見つけやすいなぁ…。
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2022/10/ratch_kao_yes-1-300x300.png)
そうですねぇ~!
では、
「最背面にする」ブロックで
![](https://scratchsiyou.com/wp-content/uploads/2022/10/scratchsiyoutitle1040_explanation69.png)
ねっちを10匹のネコの下に入れて わかりにくくしましょう。
4.ねっちをネコに 紛れ込ませる
![「スクラッチしよう!10-40 ねっちをねらえー#1」 scratch ねっちを下へ表示するスクリプト](https://scratchsiyou.com/wp-content/uploads/2022/10/scratchsiyoutitle1040_explanation76.jpg)
![スック](https://scratchsiyou.com/wp-content/uploads/2022/10/sukku_futu-300x300.png)
うん。
これなら いいね。
つづく・・・
![ラッチ先生<br>](https://scratchsiyou.com/wp-content/uploads/2022/09/ratch_kao_yes-300x300.png)
おっと、ここらでリフレッシュタイム!
次回は、
「ねっちを ねらえ!」の
- スコープでねっちをねらう
- 射撃
- 制限時間10秒
プログラミングを紹介します。
![スック](https://scratchsiyou.com/wp-content/uploads/2022/09/sukku_ok-300x300.png)
了解でぇ~す!。
![ラッチ先生<br>](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)
画面を クリックすると
「ステップアップドリル」のサイトへ 行けます!
コメント