deep-entertainment / issues

Issue tracker for deep Entertainment projects
1 stars 0 forks source link

[EGOVENTURE] check_cursor() resets cursor while having an inventory item selected #16

Closed ThmsKnz closed 2 years ago

ThmsKnz commented 2 years ago

Describe the bug I'm currently working on a scenery where a selected inventory item is applied multiple times in a row in different scenes. Depending on the mouse location the cursor is being reset although the inventory item is still selected. Example:

Suggested fix Only apply check cursor in case no Inventory Item is selected:

func check_cursor(offset: Vector2 = Vector2(0,0)):
    if not is_touch and not Speedy.hidden and Inventory.selected_item == null:
dploeger commented 2 years ago

Already fixed in deep-entertainment/egoventure-example-game@5cb25f0fe4f8754ab662a1bcffb8dad51fb2fe1d