hack fix queue_free issue

This commit is contained in:
tonydero 2024-10-24 14:20:00 -06:00
parent 1e6058c2cd
commit cb8fc5a5b7
2 changed files with 3 additions and 2 deletions

View File

@ -50,7 +50,7 @@ func _set_player_current_health(change: int) -> void:
var new_health = prev_health + change
current_health = new_health
if current_health <= 0:
%PlayerHealthBar/PlayerHealthCurrent.text = str(0)
$PlayerHealthBar/PlayerHealthCurrent.text = str(0)
$PlayerHealthBar.value = 0
# TODO: change to scene transition after slowing for a couple seconds
Engine.time_scale = 0.0001

View File

@ -53,7 +53,8 @@ func _go_next_area() -> void:
# Globals.debug_print("gna signal emitted")
%QuestsContainer.remove_child(prevAreaQuest)
# Globals.debug_print("gna quest removed")
prevAreaQuest.queue_free()
# HACK: rethink logic flow, or is it? node count not going up...
# prevAreaQuest.queue_free()
totalAreas += 1
%AreaCountVal.text = str(totalAreas)
# Globals.debug_print("gna quest queued to free")