LoginSignup
1
1

More than 5 years have passed since last update.

Endless Runner 1 - Introduction & Player Control

Posted at

Endless Runner

1 - Introduction & Player Control

1 - Introduction & Player Control

Projectの作成

項目 選択内容
BP or C++ ブループリント
テンプレート ThirdPerson
ターゲット デスクトップ/コンソール
クオリティ ハイエンド
スターターコンテンツ有無 スターターコンテンツ有り
フォルダパス 他のクラスが使用しないフォルダを選択する(ない場合は作成する)
プロジェクト名 EndlessRunner

image

キャラクターセットアップ 1

ThirdPersonCharacterをRunCharacterに名前を変更
image

RunCharacterを開いて初期設定を削除する
image

CameraBoomのSocket Offsetを変更
Z: 100
image

前に進む処理をEvent Tickに置き換える
image

開始地点を後ろに下げて、プレイして確認する
image

前に自動的に進む
左右には動くことが出来る
image

キャラクターセットアップ 2 A,Dで向きを変える

変数名 変数の型
CanTurn Boolean
DesiredRotation Rotator

image

image

image

image

image

設定を戻す
Scale Valueを1
image

CanTurnをfalse
image

Inter Speedを10に設定
向きを変えるスピードが速くなる
image

image

向きを変えられるエリアに入ったら向きを変えられるようにする

image

image

エリアに入ったらCanTurnをTrueに設定する
image

向きを変更したら、向きを変えられないようにCanTurnにFalseを設定する
image

Trigger BoxのActor Hidden In Gameのチェックを外す
image

エリアに入った後にAorDで進行方向の向きを変える。
image

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1