Fix DoOtboy timed choices, validate UI endings and rename Katya
This commit is contained in:
@@ -2,6 +2,7 @@ extends CharacterBody3D
|
||||
|
||||
var path: Array[Vector3] = []
|
||||
var active := false
|
||||
var automated := false
|
||||
var speed := 2.8
|
||||
var visual := Node3D.new()
|
||||
var leg_l: MeshInstance3D
|
||||
@@ -60,13 +61,13 @@ func _physics_process(delta: float) -> void:
|
||||
velocity = Vector3.ZERO
|
||||
return
|
||||
var direction := Vector3.ZERO
|
||||
if Input.is_physical_key_pressed(KEY_W) or Input.is_physical_key_pressed(KEY_UP):
|
||||
if not automated and (Input.is_physical_key_pressed(KEY_W) or Input.is_physical_key_pressed(KEY_UP)):
|
||||
direction.z -= 1
|
||||
if Input.is_physical_key_pressed(KEY_S) or Input.is_physical_key_pressed(KEY_DOWN):
|
||||
if not automated and (Input.is_physical_key_pressed(KEY_S) or Input.is_physical_key_pressed(KEY_DOWN)):
|
||||
direction.z += 1
|
||||
if Input.is_physical_key_pressed(KEY_A) or Input.is_physical_key_pressed(KEY_LEFT):
|
||||
if not automated and (Input.is_physical_key_pressed(KEY_A) or Input.is_physical_key_pressed(KEY_LEFT)):
|
||||
direction.x -= 1
|
||||
if Input.is_physical_key_pressed(KEY_D) or Input.is_physical_key_pressed(KEY_RIGHT):
|
||||
if not automated and (Input.is_physical_key_pressed(KEY_D) or Input.is_physical_key_pressed(KEY_RIGHT)):
|
||||
direction.x += 1
|
||||
if direction.length() > 0:
|
||||
path.clear()
|
||||
|
||||
Reference in New Issue
Block a user