From 6db6465d1b938ec494cd66c9984bff5cc14bde11 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sun, 20 Oct 2024 12:09:48 +0200 Subject: next commit --- Game/Selection/multi_select_area.gd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Game/Selection/multi_select_area.gd') diff --git a/Game/Selection/multi_select_area.gd b/Game/Selection/multi_select_area.gd index c3cc902..88e4f7f 100644 --- a/Game/Selection/multi_select_area.gd +++ b/Game/Selection/multi_select_area.gd @@ -5,7 +5,8 @@ signal select(nodes: Array) func _ready() -> void: - var camera_rect = Client.current_stage.get_node("Camera").get_rect() + var camera: Camera = get_viewport().get_camera_2d() + var camera_rect = camera.get_rect() global_position = camera_rect.position + camera_rect.size / 2 -- cgit v1.2.3