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
154 stars 15 forks source link

Can't use items on objects #224

Closed mapedorr closed 2 months ago

mapedorr commented 2 months ago

Bug description

After selecting an item in the inventory and using it on a prop, a hotspot or a character, the _on_item_used() function is not called, so items can't be used.

Steps to reproduce

  1. Click an item in the inventory to select it.
  2. With the item selected, click on a prop, a hotspot, or a character with logic defined in the _on_item_used function for such item.
  3. The function won't be called, then the logic won't be triggered.

https://github.com/carenalgas/popochiu/assets/4536477/eebf25d7-2156-4518-9652-b2a8ee17c311

Thanks to quieselbottom for reporting the bug and providing the evidence.

Expected vs observed behavior

_on_item_used should be called when using items on other objects.

Environment information (please complete):