# 右に移動する

K : 「次にどんな機能を追加しようか!」 K : 「どうしたら、ゲームっぽうなるかな?」 A : 「インクを画面に塗りたい」 K : 「じゃ、キャラクターを、操作してみようか!!」

## 右(みぎ)に移動(いどう)する機能(きのう)

![](/files/-LAM10Bw-RTrm_B8tvE-)

では、このスクリプトを追加(ついか)してみましょう。右(みぎ)キーを押(お)すと、右(みぎ)に移動(いどう)します。

![](/files/-LAM10C5jnh5ItVfilRO)

&#x20;ネコのキャラクターをクリックして、右上(みぎうえ)のスクリプトタブをクリックすると、スクリプト画面(がめん)が表示(ひょうじ)されます。

そこに、このスクリプトを追加(ついか)してみてください。 「10回繰り返す」の部分(ぶぶん)を、「ずっと」に変(か)えたので注意(ちゅうい)してください。

## 動作確認(どうさかくにん)

では、上手(うま)く書(か)けたか確認(かくにん)してみましょう。「右(みぎ)キー」を押(お)したら、右(みぎ)に移動(いどう)すること確認(かくにん)してください。

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

![](/files/-LAM10Ckl58pXUsdyfpJ)

(1) 右上(みぎうえ)の緑(みどり)の旗(はた)をクリックしてください。

(2) そのあとで、右(みぎ)キーを押(お)してください。

(3) キャラクターが右(みぎ)に移動(いどう)したならば、良(よ)い感(かん)じです。


---

# 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/ink_runner/move_character.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.
