REM/scripts/entities/godless_pawn.gd
2026-03-26 20:37:29 -06:00

15 lines
293 B
GDScript

extends CharacterBody3D
@onready var path = self.get_parent()
var progress = 0.0001
func _process(_delta):
if $AnimationPlayer.current_animation == "pawn_move":
##print("ADVANCE!")
path.progress_ratio += progress
func _on_timer_timeout() -> void:
$AnimationPlayer.play("pawn_move")