15 lines
293 B
GDScript
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")
|