# ボールを打つ

![](/files/-LAM19_QlrufEGlJYTZC)

### (1) ラケットでボールを打(う)てるようにする

#### (1-1) 左下(ひだりした)のBallをクリックする

#### (1-2) 右上(みぎのうえ)のスクリプトタブをクリック

#### (1-3) 下記(かき)スクリプトを追加(ついか)してください

![](/files/-LAM19_dZ3m3k-TZ9gYb)

**※ 「Yの速度(そくど)」変数(へんすう)を作(つく)るときは、「このSpriteのみ」にチェックを入れてください**

**※ 「Xの速度(そくど)」変数(へんすう)を作(つく)るときは、「このSpriteのみ」にチェックを入れてください**

### (2) 確認(かくにん)する

<https://scratch.mit.edu/projects/78309820/>

![](/files/-LAM19aPG8-_qFoB0-6V)

#### (2-1) 右上(みぎうえ)の緑色(みどりいろ)の旗(はた)をクリックする。

#### (2-2) Spaceボタンを押(お)すと、マウスカーソルで指定(してい)した方向(ほうこう)にボールが飛(と)んでいくのを確認(かくにん)する。

## (3) Good!

![](/files/-LAM1-nARYV39XQDYUwd)

良(よ)くできました。次(つぎ)のステップに進(すすみ)みましょう!!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://firefirebook.firefirestyle.net/tennis_of_two/shot_ball.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
