Makes lots of new screens
This commit is contained in:
@@ -33,7 +33,7 @@ func get_effective_position(center_pos: Vector2):
|
||||
func transition_camera2D(from: Camera2D, to: Camera2D, duration: float = 1.0) -> void:
|
||||
if transitioning: return
|
||||
# Copy the parameters of the first camera
|
||||
camera2D.custom_viewport = get_tree().root.get_node("Node2D/Node2D")
|
||||
camera2D.custom_viewport = get_tree().root.get_node("Node2D/SceneViewport")
|
||||
camera2D.zoom = from.zoom
|
||||
camera2D.offset = from.offset
|
||||
camera2D.light_mask = from.light_mask
|
||||
|
||||
Reference in New Issue
Block a user