diff --git a/addons/escoria-core/game/core-scripts/esc/types/esc_object.gd b/addons/escoria-core/game/core-scripts/esc/types/esc_object.gd index 9d6eee0b..43c48213 100644 --- a/addons/escoria-core/game/core-scripts/esc/types/esc_object.gd +++ b/addons/escoria-core/game/core-scripts/esc/types/esc_object.gd @@ -45,9 +45,25 @@ func set_state(p_state: String, immediate: bool = false): var actual_animator if animation_node.has_animation(p_state): if immediate: + escoria.logger.debug( + "State \"%s\" set. Matching immediate animation executing." % [ + p_state + ] + ) animation_node.seek_end(p_state) else: + escoria.logger.debug( + "State \"%s\" set. Matching non-immediate animation executing." % [ + p_state + ] + ) animation_node.play(p_state) + else: + escoria.logger.debug( + "State \"%s\" set. No matching animation found." % [ + p_state + ] + ) # Set the active value, thus hiding or showing the object