Fix DoOtboy timed choices, validate UI endings and rename Katya

This commit is contained in:
Codex
2026-10-29 21:36:20 +02:00
parent 7906dc6cec
commit 59cc83c552
10 changed files with 603 additions and 144 deletions
+5 -4
View File
@@ -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()