# プレイヤーの横方向への移動

**URL:** <https://forums.unrealengine.com/t/topic/487351>\
**Category:** Community & Industry Discussion\
**Tags:** endless-runner, unreal-engine, UE4, question\
**Created:** [August 16, 2021, 11:15am UTC](https://forums.unrealengine.com/t/topic/487351 "2021-08-16T11:15:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matthews\_29](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Matthews\_29](https://forums.unrealengine.com/u/Matthews_29)\
**Post date:** [August 16, 2021, 11:15am UTC](https://forums.unrealengine.com/t/topic/487351/1 "2021-08-16T11:15:31Z")

</div>

UE4初心者です。  
現在UE4でエンドレスランナーのゲームを制作していているのですが、プレイヤーの横方向への移動のスクリプトが組めずに悩んでいます。

具体的には Aキーが押されたときに、y方向に-200移動。Dキーでy方向に200移動としたいのですがやり方があれば教えていただきたいです。プレイヤーは開始時に前方向に走り続けるスクリプトを組んでいます。

よろしくお願いいたします。
