> For the complete documentation index, see [llms.txt](https://firefirebook.firefirestyle.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://firefirebook.firefirestyle.net/spacewar/create_spin.md).

# 旋回機能を作る

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

## (1) 旋回(せんかい)するスクリプトを追加(ついか)する

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

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

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

![](https://217444697-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LAM0M7JOUD-V4IWDH5E%2F-LAM0vitizJ8VD79iODH%2F-LAM16TF84q-D-isr4Al%2Ff3_004a.png?generation=1524026080961672\&alt=media)

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

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

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

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

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

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

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

![](https://217444697-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LAM0M7JOUD-V4IWDH5E%2F-LAM0vitizJ8VD79iODH%2F-LAM16U8M3QBKA0rb0-k%2Fspin_scratch_001.png?generation=1524026080934679\&alt=media)

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

### (2-2) 左キーを押したら左に旋回すること

### (2-3) 右キーを押したら右に旋回すること
