Closed ThmsKnz closed 2 years ago
I've implented this in the branch named "issue-23". Could you kindly try that branch out. I've changed the code and naming a bit. You can use Egoventure.set_parrot_skip_enabled to false to disable skipping.
Thanks
I've tested it, but encountered some situations after loading where the dialog from the previous scene wasn't properly canceled. I then remembered that there was another small parrot change needed that I missed to mention above (sorry about that). The parameter _dialog_playing needs to get reset when canceling a dialog (which is called when loading a new game).
# Cancel the currently running dialog
func cancel():
$Voice.stop()
$VBox.hide()
$Timer.stop()
# Parrot extension: sets _dialog_playing to false when new game is loaded
_dialog_playing = false
Ah, you're right. I've added a commit with that fix. Can you try again please?
Perfect. Works like a charm.
Awesome. Thanks. Merged.
Please make sure you talk to the community before creating an issue.
Project:
Is your feature request related to a problem? Please describe. Many Carol Reed games contain an 'action' scene where there is a dialog playing and you have to perform some hotspot action while a dialog is being played. EgoVenture does not support this as LeftMouse clicks are used to skip the dialog.
Describe the solution you'd like I'm proposing a solution how I've extended Parrot (and EgoVenture) to support mouse actions while playing a dialog.
_1) parrotdialog.gd extension
Adding a new boolean parameter 'no_skip'.
and modifying the _input event that the event is ignored when no_skip is set:
2) Helper function that I've added to core.gd
This is to enable and disable 'actions' while playing a dialog. It introduces a new game state (default = false) which is important for loading. This helper function could of course get embedded to Parrot directly. I just wanted to keep the modification as minimal as possible.
3. Set the 'parrot action mode' when loading a game I used the _on_load function in core.gd to set mode when loading a new game.
It would be nice if you could include this into Parrot and EgoVenture accordingly. Maybe Carol will face such an 'action scene' in one of the upcoming adventures. :-)