beehave icon indicating copy to clipboard operation
beehave copied to clipboard

Manual ticking makes the Debugger behave weirdly

Open guicattani opened this issue 8 months ago • 0 comments

Godot version: 4.3.beta2

Describe the bug When using a manual ticker the Debugger doesn't go all the way to the leaves

To Reproduce Steps to reproduce the behavior:

  1. Set the BehaviorTree to process mode Disabled
  2. Add a manual ticker along the lines of
extends Node

signal tick

func _ready():
	_tick()

func _tick():
	tick.emit()
	await get_tree().create_timer(1).timeout
	_tick()
  1. Have a Behavior Tree manually ticked by connecting to the tick signal
extends BeehaveTree	

func _ready():
	super()
	ManualTicker.connect("tick", _on_tick)

func _on_tick():
	self.tick()
  1. Run the scene and open the debugger

Expected behavior The Debugger should work as intended and go through all the branches and leaves

Screenshots

How it's supposed to be Physics ticker (setting the process mode to inherit)

physicstick.webm

vs

How it is Manual ticker

manualticker.webm

Desktop (please complete the following information):

  • OS: Window 10

guicattani avatar Jun 29 '24 09:06 guicattani