issues
search
YarnSpinnerTool
/
YarnSpinner-Rust
The friendly tool for writing game dialogue in Rust
https://janhohenheim.itch.io/yarnspinner-rust-demo
Apache License 2.0
173
stars
15
forks
source link
Fix options randomly despawning instantly when they appear
#173
Closed
janhohenheim
closed
9 months ago
janhohenheim
commented
9 months ago
The reason is as follows:
When the dialog is done, a
DialogueCompleteEvent
is sent
Some processes check the
DialogueCompleteEvent
to despawn stuff, consuming the event
However, these checks don't always happen. We might despawn for other reasons.
Thus,
DialogueCompleteEvent
might accumulate
Opening a dialog a second time will consume the
DialogueCompleteEvent
of the last dialog, triggering weird behavior.
The reason is as follows:
DialogueCompleteEvent
is sentDialogueCompleteEvent
to despawn stuff, consuming the eventDialogueCompleteEvent
might accumulateDialogueCompleteEvent
of the last dialog, triggering weird behavior.