monster spawner and moving to the camera direction

This commit is contained in:
Luca 2024-09-16 19:58:43 +02:00
parent 8c29b8bffd
commit b20f3b5124
821 changed files with 1611 additions and 1409 deletions

View file

@ -0,0 +1,9 @@
extends Node3D
@onready var _animation_tree: AnimationTree = %AnimationTree
@onready var _hurt_shot_path: String = "parameters/HurtShot/request"
## Play a OneShot hurt animation.
## This animation is played in paralel with other states.
func hurt():
_animation_tree.set(_hurt_shot_path, true)