[過去ログ]
【ゲームエンジン】Unity初心者質問スレBuild3 (1002レス)
【ゲームエンジン】Unity初心者質問スレBuild3 http://mevius.5ch.net/test/read.cgi/gamedev/1578720539/
上
下
前
次
1-
新
通常表示
512バイト分割
レス栞
このスレッドは過去ログ倉庫に格納されています。
次スレ検索
歴削→次スレ
栞削→次スレ
過去ログメニュー
528: 名前は開発中のものです。 [] 2020/02/15(土) 00:44:59.58 ID:Knc6MN40 Unityの教科書2019の通りやってもキャラが横移動しなくなりました 2Dの横スク作ってます public class PlayerController : MonoBehaviour { Rigidbody2D rigid2D; float jumpForce = 680.0f; float walkForce = 30.0f; float maxWalkSpeed = 2.0f; // Use this for initialization void Start() { this.rigid2D = GetComponent<Rigidbody2D>(); } void Update() { //左右移動 int key = 0; if (Input.GetKey(KeyCode.RightArrow))key = 1; if (Input.GetKey(KeyCode
.LeftArrow)) key = -1; float speedx = Mathf.Abs(this.rigid2D.velocity.x); http://mevius.5ch.net/test/read.cgi/gamedev/1578720539/528
メモ帳
(0/65535文字)
上
下
前
次
1-
新
書
関
写
板
覧
索
設
栞
歴
あと 474 レスあります
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.009s