annimation

This commit is contained in:
2025-01-18 13:40:05 +01:00
parent c39389f904
commit 3be990f804
7 changed files with 196 additions and 13 deletions

View File

@@ -16,7 +16,7 @@ extends CharacterBody3D
func _ready() -> void:
time_hand = cooldown
Input.mouse_mode = Input.MOUSE_MODE_CAPTURED
add_to_group("player")
@@ -43,7 +43,7 @@ func _physics_process(delta: float) -> void:
else:
vect = (checkpoint.position - position).normalized() * SPEED_PARTICULES
particules.process_material.set("gravity", vect)
particules.emitting = true
anim.play("finger")
var input_dir := Input.get_vector("left", "right", "up", "down")