![ラッチ先生](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/10/sukku_futu-300x300.png)
ああ!
あのガイコツが、ボスなのねぇ。
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2022/08/ratch_kao_dounaru-2.png)
そう!
ねっちが発射する弾を5回当たると、ボス(ガイコツ)が爆破する
プログラミングをします。
![「スクラッチしよう!10-42 ねっちシューティングゲームⅡ」 scratch 弾に5回当たると爆破する](https://scratchsiyou.com/wp-content/uploads/2022/11/scratchsiyoutitle1042_explanation13.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)
これが、弾に5回当たると 爆破するスクリプトです。
![「スクラッチしよう!10-42 ねっちシューティングゲームⅡ」 scratch 弾に5回当たると爆破するスクリプト](https://scratchsiyou.com/wp-content/uploads/2022/11/scratchsiyoutitle1042_explanation15.png)
![スック](https://scratchsiyou.com/wp-content/uploads/2022/11/sukku_question-300x300.png)
うぅ……ん?
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2021/12/ratch_kao_dounaru.png)
だいじょうぶ!
わかりやすく説明するよ。
![スック](https://scratchsiyou.com/wp-content/uploads/2022/10/sukku_futu-300x300.png)
お願いしまぁ~す!
それでは、楽しくプログラミングを学んでいきましょう!
今回作るスクラッチの作品は、これっ!
![スック](https://scratchsiyou.com/wp-content/uploads/2022/10/sukku_futu-300x300.png)
がんばって!
今回のプログラミングで学ぶことは
1.ボス(ガイコツ)が 登場して、ゆっくり降りてくるスクリプトが わかるよ
![「スクラッチしよう!10-42 ねっちシューティングゲームⅡ」 scratch ボスがゆっくり降りてくる](https://scratchsiyou.com/wp-content/uploads/2022/11/scratchsiyoutitle1042_explanation16.png)
2.弾に5回当たると 爆破するスクリプトがわかるよ
![「スクラッチしよう!10-42 ねっちシューティングゲームⅡ」 scratch 弾に5回当たると爆破する](https://scratchsiyou.com/wp-content/uploads/2022/11/scratchsiyoutitle1042_explanation13-1.png)
プログラミングの仕方を説明します
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2022/08/ratch_kao_dounaru-1.png)
ゲーム「ねっちシューティングゲームⅡ」は、
「ねっちシューティングゲーム!」のプログラムに
スプライト「ボス」のプログラムを 加えたものです。
![スック](https://scratchsiyou.com/wp-content/uploads/2022/01/sukku_futu-300x300.png)
「ねっちシューティングゲーム!」のプログラムは、
こちらの記事に 書いてあるよ
追加スプライト
![「スクラッチしよう!10-42 ねっちシューティングゲームⅡ」 scratch 追加のスプライトとコスチューム](https://scratchsiyou.com/wp-content/uploads/2022/11/scratchsiyoutitle1042_explanation20-1.png)
![スック](https://scratchsiyou.com/wp-content/uploads/2022/10/sukku_ok-300x300.png)
「ラスボス」のコスチュームは、
スプライト「Skeleton」で 作成しました。
こちらの記事を参考に 作ってね。
「ラスボス」の色は、自分の好きな色でいいんだよ!
プログラミングの仕方を説明します
「ねっちシューティングゲーム」のプログラムの変更
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2022/08/ratch_kao_dounaru-1.png)
「ねっちシューティングゲーム」のプログラムの
- 「てき」の 降りてくる速度
- ねっちが発射する「弾」の間隔
この2点を 変えます。
1.「てき」の 降りてくる速度
![「スクラッチしよう!10-42 ねっちシューティングゲームⅡ」 scratch 「てき」のプログラムの変更点](https://scratchsiyou.com/wp-content/uploads/2022/11/scratchsiyoutitle1042_explanation26.png)
![スック](https://scratchsiyou.com/wp-content/uploads/2022/10/sukku_futu-300x300.png)
少しゆっくりに するよ!
2.ねっちが発射する「弾」の間隔
![「スクラッチしよう!10-42 ねっちシューティングゲームⅡ」 scratch 「弾」のプログラムの変更点](https://scratchsiyou.com/wp-content/uploads/2022/11/scratchsiyoutitle1042_explanation30.png)
![スック](https://scratchsiyou.com/wp-content/uploads/2022/10/sukku_futu-300x300.png)
「弾」が、ゆっくり発射されるよ!
ボスが 降りてくるプログラミング
1.ボス(ガイコツ)登場して、ゆっくり降りてくるスクリプトが わかるよ
![「スクラッチしよう!10-42 ねっちシューティングゲームⅡ」 scratch ボスがゆっくり降りてくる](https://scratchsiyou.com/wp-content/uploads/2022/11/scratchsiyoutitle1042_explanation16.png)
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2022/08/ratch_kao_dounaru-1.png)
まず、
「x座標は○、y座標を○にする」ブロックを使って
![scratch 「x座標を○、y座標を○にする」ブロック](https://scratchsiyou.com/wp-content/uploads/2022/11/scratchsiyoutitle1042_explanation31.png)
上の端で ランダムに 表示させよう
1.ボスを上の端で ランダムに 表示させる
![「スクラッチしよう!10-42 ねっちシューティングゲームⅡ」 scratch ボスを表示するスクリプト](https://scratchsiyou.com/wp-content/uploads/2022/11/scratchsiyoutitle1042_explanation34.png)
![スック](https://scratchsiyou.com/wp-content/uploads/2022/10/sukku_futu-300x300.png)
大きさを 70%にしたよ
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2022/08/ratch_kao_dounaru-1.png)
「隠す」ブロックを使って
![scratch 1秒経ったら現れるスクリプト](https://scratchsiyou.com/wp-content/uploads/2022/11/scratchsiyoutitle1042_explanation35.png)
スタートから1秒たってから 表示させてみたよ。
2.1秒後に ボスを表示させる
![「スクラッチしよう!10-42 ねっちシューティングゲームⅡ」 scratch ボスを1秒後に表示するスクリプト](https://scratchsiyou.com/wp-content/uploads/2022/11/scratchsiyoutitle1042_explanation39-1.png)
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2022/08/ratch_kao_dounaru-1.png)
ボスを 下へ移動させよう。
「○まで繰り返す」ブロックを 使って、
![scratch 下へ移動するスクリプト](https://scratchsiyou.com/wp-content/uploads/2022/11/scratchsiyoutitle1042_explanation40.png)
ねっちと ぶつかる所まで 移動させます。
3.ボスを 下へ移動させる
![「スクラッチしよう!10-42 ねっちシューティングゲームⅡ」 scratch ボスを下へ移動するスクリプト](https://scratchsiyou.com/wp-content/uploads/2022/11/scratchsiyoutitle1042_explanation42-2.png)
![スック](https://scratchsiyou.com/wp-content/uploads/2022/10/sukku_futu-300x300.png)
つまり、
ボスは、y座標が-61になったら 止まるようにしたんだね。
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2022/11/ratch_kao_yes-300x300.png)
そのとおぉぉ……り!
ボスが止まったら、
「○を送る」ブロックを使って
![scratch 「○を送る」ブロック](https://scratchsiyou.com/wp-content/uploads/2022/11/scratchsiyoutitle1042_explanation43.png)
ゲームオーバーにしましょう
「ゲームオーバー」を送ったら
- ボスが 「アウトや!」と 言う
- ねっちが 「あれっ?」と 言う
4.ボスが 「アウトや!」と言う
![「スクラッチしよう!10-42 ねっちシューティングゲームⅡ」 scratch ボスが「アウトや!」と言うスクリプト](https://scratchsiyou.com/wp-content/uploads/2022/11/scratchsiyoutitle1042_explanation47.png)
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2022/11/ratch_kao_dounaru.png)
ねっちが「あれっ?」と言うプログラムは、
スプライト「ねっち」の中にあります。
![「スクラッチしよう!10-42 ねっちシューティングゲームⅡ」 scratch ねっちが「あれっ?」と言うスクリプト](https://scratchsiyou.com/wp-content/uploads/2022/11/scratchsiyoutitle1042_explanation50.png)
![スック](https://scratchsiyou.com/wp-content/uploads/2022/10/sukku_are-300x300.png)
「ゲームオーバーを送って待つ」ブロックが あるよ
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2022/11/ratch_kao_dounaru.png)
そうなんです。
このままだと、
ボスからの「ゲームオーバー」のメッセージを 受け取れません。
![「スクラッチしよう!10-42 ねっちシューティングゲームⅡ」 scratch ねっちが言わない](https://scratchsiyou.com/wp-content/uploads/2022/11/scratchsiyoutitle1042_explanation53.png)
![スック](https://scratchsiyou.com/wp-content/uploads/2022/10/sukku_futu-300x300.png)
ねっちは、何も言わないね!
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2022/11/ratch_kao_dounaru.png)
そうなんです。
だから、「○を送る」ブロックを使って
![scratch 「○を送る」ブロック](https://scratchsiyou.com/wp-content/uploads/2022/11/scratchsiyoutitle1042_explanation43-1.png)
ボスからの「ゲームオーバー」のメッセージを 受け取れるようにします。
5.ねっちが 「あれっ?」と言う
![「スクラッチしよう!10-42 ねっちシューティングゲームⅡ」 scratch ねっちが「あれっ?」と言うスクリプト](https://scratchsiyou.com/wp-content/uploads/2022/11/scratchsiyoutitle1042_explanation55.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)
ここで、コーヒータイム!
次回は、
「ねっちシューティングⅡ」の
- ボスが 弾に5回 当たると 爆破する
プログラミングを紹介します。
![スック](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)
画面を クリックすると
「ステップアップドリル」のサイトへ 行けます!
コメント