hpi-swa-lab / godot-pronto

https://hpi-swa-lab.github.io/godot-pronto/
18 stars 4 forks source link

Triggering triggers for StateMachineBehavior unsuccessful for different behaviors #207

Closed jgrenda closed 7 months ago

jgrenda commented 7 months ago

Currently calling the trigger method from a behavior through a connection does not work with all behaviors as expected. While the functionality currently works when using the KeyBehavior, it does not when using e.g. an AlwaysBehavior, ControlsBehavior, or CollisionBehavior (others have not yet been tested). This currently throws 2 errors: image

Here is a recording of the setup used for replication: Recording 2024-01-25 at 17 06 12

Proposed solution: Make sure the trigger function of the StateMachineBehavior can be called through any connection from any behavior.

jgrenda commented 7 months ago

Tested on Windows 10 22H2, Godot 4.2.1.stable and 55777dc.

frcroth commented 7 months ago

Should be fixed by #204