carenalgas / popochiu

Godot plugin to make point n' click games in a similar way to tools like Adventure Game Studio and Power Quest.
MIT License
159 stars 17 forks source link

Can't block interactions #166

Closed mapedorr closed 4 months ago

mapedorr commented 4 months ago

Bug description

When PopochiuCharacter.walk_to_clicked is called, there's no way to block interactions until the action finishes, which causes undesired behaviors.

Steps to reproduce

  1. Create a Hotspot and make the character walk to it when clicked and then say something.
  2. Run the game and click the created Hotspot.
  3. While the character is moving towards the Hotspot, click elsewhere.
  4. The character will move to the last clicked position, and after that will say the dialogue line scripted for the Hotspot.

Expected vs observed behavior

There should be a way to block interactions when PopochiuCharacter.walk_to_clicked is called. Maybe the default behavior should block interactions, or maybe there should be an alternate method like PopochiuCharacter.walk_to_clicked_blocking.

Environment information (please complete):

stickgrinder commented 4 months ago

Closed in #172