derkork / godot-statecharts

A state charts extension for Godot 4
MIT License
734 stars 35 forks source link

StateIsActiveguard didn't work for me #67

Closed hououkira closed 7 months ago

hououkira commented 7 months ago

image So I wanted to change to BeingDraggedVFX when being dragged, so I monitored the BeingDragged state, but it wasn't working. And I changed to monitor MouseInside state just for debug: image Then not beyond my expectation that didn't work at all, you can see it's still NotBeingDraggedVFX when MouseInside active image Then I tried to figrue out why and added a print in the addon script. So It actually just ran once in this scene. How could it monitor the change if it didn't run every frame? I don't know if this is a bug or I misunderstood it's effect. image So I'd appreciate it if you told me what's going on here.

derkork commented 7 months ago

Guards do not trigger transitions, they are merely an additional condition that allows or forbids a transition to happen when it is being triggered. A transition is only triggered under the following conditions:

hououkira commented 7 months ago

Thanks, I see that

derkork commented 7 months ago

71 may help you once it is implemented.