Topic was automatically imported from the old Question2Answer platform.
Asked By
Mahmoud_Official
I used this code to switch the camera, but it only switches to camera 1 when I try to switch to camera 2 it stays on 1, help please.
func _input(event):
if Input.is_action_pressed("switch_players"):
if camera2.is_current():
camera1.clear_current()
camera2.make_current()
if camera1.is_current():
camera2.clear_current()
camera1.make_current()