fixed up a couple things in the level editor

This commit is contained in:
JHDev2006
2025-10-06 22:02:15 +01:00
parent ce9ded6a83
commit 6a48a5b32f
18 changed files with 17 additions and 6 deletions

View File

@@ -5,6 +5,7 @@ extends Node2D
@export var lock_camera := false
func _enter_tree() -> void:
add_to_group("CameraLimits")
Player.camera_right_limit = int(global_position.x)
func _exit_tree() -> void:
@@ -13,6 +14,7 @@ func _exit_tree() -> void:
func return_camera_to_normal() -> void:
for i in get_tree().get_nodes_in_group("Players"):
Player.camera_right_limit = int(9999999)
CameraHandler.cam_locked = false
i.reset_camera_to_center()