[過去ログ]
【ゲームエンジン】Godot Engine (1002レス)
上
下
前
次
1-
新
このスレッドは過去ログ倉庫に格納されています。
次スレ検索
歴削→次スレ
栞削→次スレ
過去ログメニュー
800
: 2020/07/02(木)13:39
ID:kDnXyHP9(1/3)
AA×
[240|
320
|
480
|
600
|
原寸
|
JPG
|
べ
|
レス栞
|
レス消
]
800: [] 2020/07/02(木) 13:39:36.84 ID:kDnXyHP9 extends KinematicBody2D func _process(delta): var velocity = Vector2() var speed = 400 if Input.is_action_pressed("ui_right"): velocity.x += 1 if Input.is_action_pressed("ui_left"): velocity.x -= 1 if Input.is_action_pressed("ui_down"): velocity.y += 1 if Input.is_action_pressed("ui_up"): velocity.y -= 1 if Input.is_action_pressed("ui_accept"): speed = 200 if velocity.length() > 0: velocity = velocity.normalized() * speed position += velocity * delta これで上と右とシフト押せば右斜め上方向にゆっくり移動すると思うんだけどそれができない シフトの代わりにスペースとかエンター押すとできる http://mevius.5ch.net/test/read.cgi/gamedev/1517415805/800
これで上と右とシフト押せば右斜め上方向にゆっくり移動すると思うんだけどそれができない シフトの代わりにスペースとかエンター押すとできる
上
下
前
次
1-
新
書
関
写
板
覧
索
設
栞
歴
あと 202 レスあります
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
ぬこの手
ぬこTOP
0.026s