![ラッチ先生](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/01/sukku_futu-300x300.png)
おぉ、いいねぇ!
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2021/12/ratch_kao_dounaru.png)
ねっちをタップして、
○左右に 動かす
![「スクラッチしよう!10-27 ねっち ジャンプゲーム!」 scratch タップで左右に動かす](https://scratchsiyou.com/wp-content/uploads/2022/08/scratchsiyoutitle1027_explanation2.png)
○ジャンプする
![「スクラッチしよう!10-27 ねっち ジャンプゲーム!」 scratch タップでジャンプする](https://scratchsiyou.com/wp-content/uploads/2022/08/scratchsiyoutitle1027_explanation3.png)
プログラミングの解説は、
「【スクラッチ】ゲームの技04 :ジャンプしながら左右(スマホ用)」でしてます。
![スック](https://scratchsiyou.com/wp-content/uploads/2022/01/sukku_futu-300x300.png)
ねっちをタップして
- 左右に動かす
- ジャンプするプログラミング
こちらの記事に書いてあるよ!
![スック](https://scratchsiyou.com/wp-content/uploads/2022/01/sukku_futu-300x300.png)
ジャンプの高さを 変えたよ。
![「スクラッチしよう!10-27 ねっち ジャンプゲーム!」 scratch ねっちがジャンプするスクリプト](https://scratchsiyou.com/wp-content/uploads/2022/08/scratchsiyoutitle1027_explanation31.png)
「20」から「25」にしたよ!
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2021/12/ratch_kao_dounaru.png)
ねっちが ジャンプしないと取れないように、ハートを動かすプログラミングをします。
![「スクラッチしよう!10-27 ねっち ジャンプゲーム!」 scratch ハートが空にただようスクリプト](https://scratchsiyou.com/wp-content/uploads/2022/08/scratchsiyoutitle1027_explanation6.png)
![スック](https://scratchsiyou.com/wp-content/uploads/2022/01/sukku_futu-300x300.png)
「○秒でx座標を○に、y座標を○に変える」ブロックを、使っているね!
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2022/07/ratch_kao_yes-1-300x300.png)
はぁ~い、そうでぇ~す!
「○秒でx座標を○に、y座標を○に変える」ブロックで
![](https://scratchsiyou.com/wp-content/uploads/2022/08/scratchsiyoutitle1027_explanation7.png)
ハートが ただよう動きをつけました。
![スック](https://scratchsiyou.com/wp-content/uploads/2022/07/sukku_ok-1-300x300.png)
時間を 変えるんだね。
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2022/07/ratch_kao_uink-300x300.png)
そうです。
数字を変えれば、いろいろな動きに変わるよね。
![スック](https://scratchsiyou.com/wp-content/uploads/2022/08/sukku_futu-300x300.png)
うん、うん。
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2022/08/ratch_kao_dounaru.png)
それでは、
簡単ゲーム「ねっち ジャンプゲーム!」を作っていこう!
それでは、楽しくプログラミングを学んでいきましょう!
今回作るスクラッチの作品は、これっ!
![スック](https://scratchsiyou.com/wp-content/uploads/2022/01/sukku_futu-300x300.png)
楽しいよ!
スマホでやってみて!
今回のプログラミングで学ぶことは
1. ハートが、空に ただようスクリプトがわかるよ
![「スクラッチしよう!10-27 ねっち ジャンプゲーム!」 scratch ハートが空にただよう](https://scratchsiyou.com/wp-content/uploads/2022/08/scratchsiyoutitle1027_explanation9.png)
2.ギガが 歩き続けるスクリプトがわかるよ
![「スクラッチしよう!10-27 ねっち ジャンプゲーム!」 scratch ギガが歩き続ける](https://scratchsiyou.com/wp-content/uploads/2022/08/scratchsiyoutitle1027_explanation66-1.png)
3. 4個のハートをとると、クリアするスクリプトがわかるよ
![「スクラッチしよう!10-27 ねっち ジャンプゲーム!」 scratch 4個のハートをとるとクリア](https://scratchsiyou.com/wp-content/uploads/2022/08/scratchsiyoutitle1027_explanation11.png)
4.ギガに当たると、ゲームオーバーするスクリプトがわかるよ
![「スクラッチしよう!10-27 ねっち ジャンプゲーム!」 scratch ギガに当たるとゲームオーバー](https://scratchsiyou.com/wp-content/uploads/2022/08/scratchsiyoutitle1027_explanation13-1.png)
スクリプトを見てみよう
スプライトはこれです!
![「スクラッチしよう!10-27 ねっち ジャンプゲーム!」 scratch スプライト](https://scratchsiyou.com/wp-content/uploads/2022/08/scratchsiyoutitle1027_explanation14.png)
![ラッチ先生<br>](https://scratchsiyou.com/wp-content/uploads/2021/12/ratch_kao_dounaru.png)
このスクラッチ作品のスプライトは、
- 「ねっち」
- 「ハート」
- 「たいよう」
- 「ギガ」
背景は、
- Blue Sky
です。
- 「スプライト1」を「ねっち」にしました。
- 「Heart」を「ハート」、大きさを「40」にしました。
- 「Sun」を「たいよう」、大きさを「50」にしました。
- 「Giga Walking」を「ギガ」、大きさを「50」にしました。
![スック](https://scratchsiyou.com/wp-content/uploads/2022/01/sukku_futu-300x300.png)
「コスチューム1」の「ねっち」は、自分で作成するよ。
「ねっち」の作り方は、こちらの記事にのっています。
コスチュームはこれです!
![「スクラッチしよう!10-27 ねっち ジャンプゲーム!」 scratch コスチューム](https://scratchsiyou.com/wp-content/uploads/2022/08/scratchsiyoutitle1027_explanation17.png)
![スック](https://scratchsiyou.com/wp-content/uploads/2022/01/sukku_futu-300x300.png)
背景の「Blue Sky」のコスチュームに
- 「おめでとう!」
- 「ざんねんでした!」
と、文字を書きました。
文字の入れ方は、こちらの記事に書かれていますよ。
スクリプトはこれです!
ねっちのスクリプト
![「スクラッチしよう!10-27 ねっち ジャンプゲーム!」 scratch ねっちのスクリプト1](https://scratchsiyou.com/wp-content/uploads/2022/08/scratchsiyoutitle1027_explanation18.png)
![「スクラッチしよう!10-27 ねっち ジャンプゲーム!」 scratch ねっちのスクリプト2](https://scratchsiyou.com/wp-content/uploads/2022/08/scratchsiyoutitle1027_explanation19.png)
ハートのスクリプト
![「スクラッチしよう!10-27 ねっち ジャンプゲーム!」 scratch ハートのスクリプト](https://scratchsiyou.com/wp-content/uploads/2022/08/scratchsiyoutitle1027_explanation20.png)
たいようのスクリプト
![「スクラッチしよう!10-27 ねっち ジャンプゲーム!」 scratch たいようのスクリプト](https://scratchsiyou.com/wp-content/uploads/2022/08/scratchsiyoutitle1027_explanation21.png)
ギガのスクリプト
![「スクラッチしよう!10-27 ねっち ジャンプゲーム!」 scratch ギガのスクリプト](https://scratchsiyou.com/wp-content/uploads/2022/08/scratchsiyoutitle1027_explanation22-1.png)
背景のスクリプト
![「スクラッチしよう!10-27 ねっち ジャンプゲーム!」 scratch 背景のスクリプト](https://scratchsiyou.com/wp-content/uploads/2022/08/scratchsiyoutitle1027_explanation23.png)
![スック](https://scratchsiyou.com/wp-content/uploads/2022/01/sukku_futu-300x300.png)
効果音は、
- 「Jump」
- 「Win」
- 「Magic Spell」
- 「Alien Creak2」
に、しました。
- 効果音の選び方
- 「〇の音を鳴らす」の使い方
こちらの記事に書いてあるよ!
プログラミングの仕方を説明します
ハートのスクリプト
ハートが 空にただよう動きをプログラミング
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2021/12/ratch_kao_dounaru.png)
ハートを
「○のクローンを作る」ブロックで、
![scratch 「○のクローンを作る」ブロック](https://scratchsiyou.com/wp-content/uploads/2022/08/scratchsiyoutitle1027_explanation24.png)
4個のクローンを作ります。
1,4個のハートを 空の上に表示する
![「スクラッチしよう!10-27 ねっち ジャンプゲーム!」 scratch 4個のハートを表示するスクリプト](https://scratchsiyou.com/wp-content/uploads/2022/08/scratchsiyoutitle1027_explanation27.png)
![スック](https://scratchsiyou.com/wp-content/uploads/2022/01/sukku_futu-300x300.png)
- 「〇のクローンを作る」ブロックの使い方
こちらの記事に書いてあるよ!
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2022/04/ratch_kao_dounaru-1.png)
ハートを
「○秒でx座標を○に、y座標を○に変える」ブロックで
![scratch 「○秒でx座標を○に、y座標を○に変える」ブロック](https://scratchsiyou.com/wp-content/uploads/2022/08/scratchsiyoutitle1027_explanation28-1.png)
動かすプログラムを作ろう!
2,動く範囲を 決める
![「スクラッチしよう!10-27 ねっち ジャンプゲーム!」 scratch ハートが空にただようスクリプト](https://scratchsiyou.com/wp-content/uploads/2022/08/scratchsiyoutitle1027_explanation30.png)
![スック](https://scratchsiyou.com/wp-content/uploads/2022/01/sukku_futu-300x300.png)
これで、
ねっちがジャンプしないと ゲットできないね
![ラッチ先生<br>](https://scratchsiyou.com/wp-content/uploads/2021/12/ratch_kao_dounaru.png)
スプライトの場所をしめすx座標とy座標は、こちらの記事で学べます。
ギガ のスクリプト
ギガが 歩き続けるプログラミング
![ラッチ先生<br>](https://scratchsiyou.com/wp-content/uploads/2021/12/ratch_kao_dounaru.png)
「x座標を○、y座標を○にする」ブロックで
![scratch 「x座標を○、y座標を○にする」ブロック](https://scratchsiyou.com/wp-content/uploads/2022/08/scratchsiyoutitle1027_explanation74.png)
ギガの最初の場所を 決めるプログラムを作ります。
1.最初の場所を 決める
![「スクラッチしよう!10-27 ねっち ジャンプゲーム!」 scratch ギガの最初の場所を決めるスクリプト](https://scratchsiyou.com/wp-content/uploads/2022/08/scratchsiyoutitle1027_explanation76.png)
![ラッチ先生<br>](https://scratchsiyou.com/wp-content/uploads/2021/12/ratch_kao_dounaru.png)
「○まで 繰り返す」ブロックで
![scratch 「○まで繰り返す」ブロック](https://scratchsiyou.com/wp-content/uploads/2022/08/scratchsiyoutitle1027_explanation78.png)
ねっちに触れるまで 歩き続けるプログラムを 作ります。
2.端まで 歩き続ける
![「スクラッチしよう!10-27 ねっち ジャンプゲーム!」 scratch ギガが端まで歩き続けるスクリプト](https://scratchsiyou.com/wp-content/uploads/2022/08/scratchsiyoutitle1027_explanation81.png)
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2022/04/ratch_kao_dounaru-1.png)
「もし○なら」ブロックを使って
![scratch 「もし○なら」ブロック](https://scratchsiyou.com/wp-content/uploads/2022/08/scratchsiyoutitle1027_explanation83.png)
端に当たったら 元の場所へ移すプログラムを 作ります。
3,端に当たったら 元の場所へ移る
![「スクラッチしよう!10-27 ねっち ジャンプゲーム!」 scratch ギガが歩き続けるスクリプト](https://scratchsiyou.com/wp-content/uploads/2022/08/scratchsiyoutitle1027_explanation86.png)
![スック](https://scratchsiyou.com/wp-content/uploads/2022/08/sukku_ok-300x300.png)
これで、
ねっちに触れるまで 歩き続けるよ!
つづく・・・
![スック](https://scratchsiyou.com/wp-content/uploads/2022/07/sukku_are-300x300.png)
あららっ、
ここで、休憩ですか。
![ラッチ先生<br>](https://scratchsiyou.com/wp-content/uploads/2022/08/ratch_kao_dounaru-1.png)
そうだね。
次回は、
「ねっち ジャンプゲーム!」の
- ハートを4個ゲットすると 「クリア」
- ギガに当たると 「ゲームオーバー」
プログラミングを紹介します。
![スック](https://scratchsiyou.com/wp-content/uploads/2022/07/sukku_ok-1-300x300.png)
O.K!
![ラッチ先生<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)
画面を クリックすると
「ステップアップドリル」のサイトへ 行けます!
コメント