Wiki
  • Homepage
  • Player's Manual
    • Controls
    • Skills
    • Objects
    • Credits
  • Contributing
    • Getting Started
      • Programs and Files
      • Cloning the GitHub Project
      • Git Structure
      • Submitting Changes
    • Level Design
      • Basic Level Setup
      • Creating Static.tscn
      • Creating Collision.tscn
      • Stage Triggers
        • Using StageTrigger.tscn
        • Camera Triggers
        • Culling Triggers
        • Death Triggers
        • Dialog Triggers
        • Jump Triggers
        • Path Triggers
        • Automation Triggers
        • Drift Triggers
        • Foothold Triggers
        • Platform Triggers
        • Sidle Triggers
      • Stage Objects
      • Placing Objects Along the Path
    • Playtesting
      • General Shortcuts
      • Debug Menu
      • Free Camera Mode
      • Using the Editor for Playtesting
    • Submitting a Bug Report
    • Documentation Style Guide
  • Asset Guidelines
    • Source Files
    • Asset Ripping Reference
      • Original Model Files
    • Asset Editing Reference
      • Editing Environment Models
      • Editing Collision Models
      • All About Curves
      • Exporting Models from Blender
    • Resources Files
      • CameraSettingsResource
    • Miscellaneous Notes
  • Godot Guidelines
    • File Guides
      • File Structure
      • Naming Files
    • Project Settings
      • Tag Reference
      • Layer Reference
    • Particle Effects
    • Audio
  • CODE GUIDELINES
    • Language Specifications
    • Formatting
    • General guidelines
    • Attributes
    • Floating Point Numbers
Powered by GitBook
On this page
  • Properties
  • Methods & Signals
  • Usage
  1. Contributing
  2. Level Design
  3. Stage Triggers

Camera Triggers

PreviousUsing StageTrigger.tscnNextCulling Triggers

Last updated 11 months ago

Changes the current Camera Mode to a .

Properties

  • Transition Time - How long to transition from the previous camera settings. Leave this at 0 to perform an instant camera cut.

  • Deactivation Transition Time - How long transition should take when Deactivate() is called. Leave this at -1 to use the same settings as Transition Time.

  • Transition Type - Changes how the transition is processed.

    • Blend - Camera blends from the previous camera settings.

    • Crossfade - Camera crossfades from the previous camera settings.

  • Update Every Frame - Enable this if you need the camera to track the CameraTrigger's position or rotation continously.

Methods & Signals

  • Activate() - Call this from a signal to activate CameraTrigger.

  • Deactivate() - Call this from a signal to deactivate CameraTrigger.

Usage

Tip: If you simply activate a CameraTrigger and PathTrigger at the same time, you may notice the camera "snaps" even if you increase the CameraTrigger's Blend Time.

Settings - The to use.

Previous Settings - The to blend to when Deactivate() is called. Leave this empty to have the CameraTrigger automatically assign it to the previous camera settings.

Reference Camera - Required when has CopyFOV enabled.

When using with , typically Trigger Mode should be set to OnStay, On Enter should be MovingForward, and On Exit should be MovingBackward.

For smoother camera transitions, switch to a transitional that has its pitch and yaw modes set to Override, activate the PathTrigger, then activate the CameraTrigger.

CameraSettingsResource
CameraSettingsResource
CameraSettingsResource
StageTrigger.tscn
CameraSettingsResource
CameraSettingsResource