Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | jujumumu |
I have a popup that confirms if a player wants to do his action. But I have a variable that stores what the player wants to do.
var action = null
#fires dialog and changes action variable
func _on_confirmation():
#do action
action = null
func _on_hide():
action = null
The problem is that when a player accepts, the _on_hide() also fires along with the _on_confirmation(). But _on_hide fires first which means the action that I would be doing since the player accepts would be null. How can I get around this?