multiple cameras and sequencer key bindings

This commit is contained in:
Persephone Bubblegum-Holidy 2025-05-24 21:35:53 -07:00
parent 7e7b57e4fd
commit cb9b3aac66
5 changed files with 113 additions and 8 deletions

View file

@ -3,6 +3,8 @@ extends Control
signal movement_in(movement, rate)
signal movement_out(movement, rate)
var cam_index : int = 0
func _ready() -> void:
var animatronic = get_node("../SubViewport/HelenHouse/3stHelen")
movement_in.connect(animatronic._movement_in)
@ -10,6 +12,11 @@ func _ready() -> void:
movement_in.connect(self._movement_in)
movement_out.connect(self._movement_out)
func _input(event: InputEvent) -> void:
if (event.is_action_pressed("cycle_camera_angle")):
cam_index += 1
get_node("../SubViewport/HelenHouse/Camera " + str((cam_index % 2)+1)).current = true
func _movement_in(movement, _rate):
get_node("Movements/IndicatorLights/" + movement).turn_on();
@ -22,6 +29,21 @@ func _on_movements_flyout_button_toggled(toggled_on: bool) -> void:
func _on_flows_flyout_button_toggled(toggled_on: bool) -> void:
$FlowControls.visible = toggled_on
func _on_camera_flyout_button_toggled(toggled_on: bool) -> void:
$Camera.visible = toggled_on
func _on_cosmetics_flyout_button_toggled(toggled_on: bool) -> void:
$Cosmetics.visible = toggled_on
func _on_stage_flyout_button_toggled(toggled_on: bool) -> void:
$Stage.visible = toggled_on
func _on_angle_1_button_pressed() -> void:
get_node("../SubViewport/HelenHouse/Camera 1").current = true
func _on_angle_2_button_pressed() -> void:
get_node("../SubViewport/HelenHouse/Camera 2").current = true
func _on_mouth_button_down() -> void:
movement_in.emit("Mouth", $FlowControls/InFlows/MouthFlow.value)