User Tools

Site Tools


Move Camera Over Time

Moves the camera to the specified (X,Y,Z) coordinate or named camera position over a duration of time (in seconds). A target to aim the camera towards can optionally be specified. If using a camera position for the destination, this “look at target” will override the angle.


move_camera_over_time(destination, duration, look_at_target)
destinationDestination coordinate or camera position.Coordinate or StringYes
durationDuration of the movement (in seconds).DecimalYes
look_at_targetCoordinate or entity to aim the camera towards.Coordinate or EntityNo

Lock Camera must be called before using this function to prevent the player from manually controlling the camera.


move_camera_over_time(coord[2, 2, 32], 1, entity["chest01"]);

Results: The camera is moved to coordinate (2, 2, 32) and rotated to aim towards the entity with an ID of “chest01”, all over a duration of one second.

Use the Move Camera Over Time function to focus on certain characters/events during a cutscene or to indicate to the player that something in the scene has changed.

Editor Node:

Visual Demo:

move_camera_over_time.txt · Last modified: 2021/04/21 18:36 by justin