Skip to content

Instantly share code, notes, and snippets.

@henriiquecampos
Last active October 20, 2018 03:07
Show Gist options
  • Save henriiquecampos/67553c53a9b6f8c6b32184964b8e2ce4 to your computer and use it in GitHub Desktop.
Save henriiquecampos/67553c53a9b6f8c6b32184964b8e2ce4 to your computer and use it in GitHub Desktop.
extends Node
onready var active_battler : Battler = null
func play_turn():
active_battler = get_child(0)
active_battler.active = true
yield(active_battler, "turn_finished")
move_child(active_battler, get_child_count() -1)
play_turn()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment