# ボールを移動させる

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

![](/files/-LAM11fzQPQfK8jGM1jq)

次(つぎ)は、ボールを移動(いどう)できるようにしましょう。

### (1) ボールが右(みぎ)に移動(いどう)するスクリプトを追加(ついか)

#### (1-1) ボールスクリプト画面(がぞう)を表示(ひょうじ)する

**(1-1-1) 左下(ひだりした)のボールクリック**

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

#### (1-2) 下記(かき)スクリプトを追加(ついか)する

![](/files/-LAM11gUyL7MOQLcDl6M)

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

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

### (2) 確認(かくにん)してみよう

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

![](/files/-LAM11hp1HALYUuytKEc)

上手(うま)く書(か)けたか確認(かくにん)してみましょう

#### (2-1) 右上(みぎうえ)の緑色(みどりいろ)の旗(はた)をクリックすると、ボールが右(みぎ)に移動(いどう)します。

## (3) Good!!

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

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


---

# 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/pong/readme2.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.
