![ラッチ先生](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/2021/12/ratch_kao_dounaru.png)
ラッチ先生
今回の「ステップアップドリル」で作る作品は、こちら!
![「スクラッチしよう!8-06 ステップアップドリル:ねらって当てて!ねっちボール」 scratch](https://scratchsiyou.com/wp-content/uploads/2023/06/scratchdrill06-gif2.gif)
![スック](https://scratchsiyou.com/wp-content/uploads/2022/01/sukku_futu-300x300.png)
スック
3回狙えるよ
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2021/12/ratch_kao_dounaru.png)
ラッチ先生
ねっちボールが 緩やかに 止まるでしょ。
「変数」ブロックを 使って
![「変数:ボールの動き」ブロック](https://scratchsiyou.com/wp-content/uploads/2023/06/scratchdrill06-explanation1.png)
プログラムを 作っています。
![スック](https://scratchsiyou.com/wp-content/uploads/2023/06/sukku_futu-300x300.png)
スック
うん、うん
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2021/12/ratch_kao_dounaru.png)
ラッチ先生
そして、他にも
○ ねっちボールを 打てる回数
○ ゲームクリア判定
のプログラムに「変数」ブロック
![「変数:タップ回数」ブロック](https://scratchsiyou.com/wp-content/uploads/2023/06/scratchdrill06-explanation2.png)
![「変数:当たり」ブロック](https://scratchsiyou.com/wp-content/uploads/2023/06/scratchdrill06-explanation3.png)
が、使われています。
![スック](https://scratchsiyou.com/wp-content/uploads/2023/06/sukku_wao-300x300.png)
スック
あっらぁ~、いっぱい!
今回作るスクラッチの作品は、これっ!
![「スクラッチしよう!8-06ステップアップドリル:ねらって当てて!ねっちボール」 scratch ねらって当てる](https://scratchsiyou.com/wp-content/uploads/2023/06/scratchdrill06-gif7.gif)
![スック](https://scratchsiyou.com/wp-content/uploads/2023/05/sukku_ok-300x300.png)
スック
よぉ~し、がんばるぞ!
今回のプログラミングで 学ぶことは
1.ボールが ゆるやかに 止まるスクリプトが わかるよ
![「スクラッチしよう!8-06ステップアップドリル:ねらって当てて!ねっちボール」 scratch ボールがゆるやかに止まる](https://scratchsiyou.com/wp-content/uploads/2023/06/scratchdrill06-gif4-1.gif)
2.ボールが いろんなところに 散らばるスクリプトが わかるよ
![「スクラッチしよう!8-06ステップアップドリル:ねらって当てて!ねっちボール」 scratch ボールが散らばる](https://scratchsiyou.com/wp-content/uploads/2023/06/scratchdrill06-gif6.gif)
3.クリア やゲームオーバーの スクリプトが わかるよ
![「スクラッチしよう!8-06ステップアップドリル:ねらって当てて!ねっちボール」 scratch クリア・ゲームオーバー](https://scratchsiyou.com/wp-content/uploads/2023/06/scratchdrill06-gif10.gif)
プログラミングの仕方を説明します
ボールが ゆるやかに 止まるプログラミング
1.ボールが ゆるやかに 止まるスクリプトが わかるよ
![「スクラッチしよう!8-06ステップアップドリル:ねらって当てて!ねっちボール」 scratch ボールがゆるやかに止まる](https://scratchsiyou.com/wp-content/uploads/2023/06/scratchdrill06-gif4-1.gif)
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2021/12/ratch_kao_dounaru.png)
ラッチ先生
最初に、スプライト「ねっちボール」を 作ります
![「スクラッチしよう!8-06ステップアップドリル:ねらって当てて!ねっちボール」 scratch スプライト「ねっちボール」](https://scratchsiyou.com/wp-content/uploads/2023/06/scratchdrill06-explanation5-1-800x558.png)
![「スクラッチしよう!8-06ステップアップドリル:ねらって当てて!ねっちボール」 scratch スプライト「ねっちボール」のコスチューム](https://scratchsiyou.com/wp-content/uploads/2023/06/scratchdrill06-explanation6.png)
![スック](https://scratchsiyou.com/wp-content/uploads/2023/01/sukku_futu-300x300.png)
スック
スプライト「ねっちボール」のコスチュームを2つ 作るよ。
作り方は、こちらの動画を 見てね
フリーBGM:DOVA-SYNDROME 午後のカメレオンは星の波動を数え… written by Masuo
![スック](https://scratchsiyou.com/wp-content/uploads/2023/01/sukku_futu-300x300.png)
スック
大きさは、「80」だよ
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2021/12/ratch_kao_dounaru.png)
ラッチ先生
次に、
「○へ向ける」ブロックを 使って
![「○へ向ける」ブロック](https://scratchsiyou.com/wp-content/uploads/2023/06/scratchdrill06-explanation9.png)
ねっちボールの向きを マウスの方へ 向けます
1.マウスのポインターの方へ 向く
![「スクラッチしよう!8-06ステップアップドリル:ねらって当てて!ねっちボール」 scratch スプライト「ねっちボール」がマウスの方へ向くスクリプト](https://scratchsiyou.com/wp-content/uploads/2023/06/scratchdrill06-gif12.gif)
![スック](https://scratchsiyou.com/wp-content/uploads/2023/01/sukku_futu-300x300.png)
スック
「コスチュームは○にする」ブロックで
![](https://scratchsiyou.com/wp-content/uploads/2023/06/scratchdrill06-explanation12.png)
ボールを ねらう時の「ねっちボール」を
![](https://scratchsiyou.com/wp-content/uploads/2023/06/scratchdrill06-explanation11-1.png)
これに したよ!
![ラッチ先生](https://scratchsiyou.com/wp-content/uploads/2021/12/ratch_kao_dounaru.png)
ラッチ先生
そして、
「もし○なら」ブロックで
![](https://scratchsiyou.com/wp-content/uploads/2023/06/scratchdrill06-explanation13.png)
マウスがクリックされたら ねっちボールが 動くプログラムを 作ろう
![スック](https://scratchsiyou.com/wp-content/uploads/2023/01/sukku_futu-300x300.png)
スック
ねっちボールが 動いている時は
「コスチュームは○にする」ブロックで
![「コスチュームを○にする」ブロック](https://scratchsiyou.com/wp-content/uploads/2023/07/scratchdrill06-explanation44.png)
![](https://scratchsiyou.com/wp-content/uploads/2023/07/scratchdrill06-explanation19.png)
このコスチュームだよ
コメント