feat: instantiate dragon with drag and drop

This commit is contained in:
Gerard Gascón 2025-04-04 17:37:23 +02:00
parent 610d623653
commit eb081515c0
2 changed files with 6 additions and 1 deletions

View file

@ -12,6 +12,11 @@ func _ready() -> void:
set_process_input(true)
func initial_drag():
dragging_start_position = get_global_mouse_position()
dragging = true
func _input(event) -> void:
if event is not InputEventMouseButton:
return