Updated agent to include needs_reset signal
This commit is contained in:
parent
1d79fccf75
commit
256dc0dfbd
3 changed files with 3 additions and 2 deletions
|
@ -42,10 +42,11 @@ func _process(delta):
|
|||
func _on_player_death():
|
||||
var i = 0
|
||||
for player in players.get_children():
|
||||
player.ai_controller.done = true
|
||||
player.ai_controller.needs_reset = true
|
||||
player.ai_controller.reset()
|
||||
player.position = player_starting_pos[i]
|
||||
player.health = 100
|
||||
player.ai_controller.done = true
|
||||
player.ai_controller.reset()
|
||||
i += 1
|
||||
var j = 0
|
||||
for bamboo in bamboos.get_children():
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue