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

Game crashes in the Editor due to a touchscreen bug #189

Closed mapedorr closed 3 months ago

mapedorr commented 4 months ago

Bug description

If input_devices/pointing/emulate_touch_from_mouse is true. The game crashes when clicking anywhere inside a room and shows the following error message (thanks to @Whyshchuck for the image).

image

Steps to reproduce

  1. Create a room with a walkable area.
  2. Turn on the mentioned option in the Project Settings.
  3. Run the game and click anywhere (even on a hotspot, prop or character).
  4. The game will throw a Invalid get index 'button_index' (on base: 'InputEventScreenTouch'). message.

Expected vs observed behavior

Even with this option turned on, interactions should work as expected in the Editor.

Environment information (please complete):

Additional context

The game don't crash in exported builds of the game.