I'm trying to implement a turn queue. I want to right click, have one child node do something, right click again, and have the other child node do something. How do I do that? This is what I have so far. Parent node:
active_player = self.get_child(0)
var new_index : int = (active_player.get_index() + 1) % get_child_count()
active_player = get_child(new_index)
I'm getting and error in the child node: "Non-static function "play_turn" can only be called from an instance. The only guide I could find on turn queues doesn't explain player input directed turn changes.