Skip to main content

Camera

Events for controlling the camera position, movement, and screen effects like shake and flash.

Actions​

Camera Follow Actor​

Follow the selected actor.
Camera Follow Actor
Actor
Actor 1
Follow Style
Simple
Lerp
100
Offset X
0
Offset Y
0
  • Follow Style: The deadzone predefined setup, you can use Set Deadzone if you don't like any.
  • Lerp: How smooth the camera follows. From 0 to 100.
  • Offset X: The horizontal position.
  • Offset Y: The vertical position.

Camera Stop Follow​

The camera will stop following the actor.
Camera Stop Follow
The camera will stop following the actor.

Camera Shake​

Shake the camera for a period of time.
Camera Shake
Duration
0.5
Magnitude
5
  • Duration: The length of time to shake camera for in seconds or frames.
  • Movement Type: Choose if camera should shake only in horizontal or vertical axis or if should shake in both directions.
  • Magnitude: The maximum amount of pixels the camera will move during the shake.

Camera Stop Shake​

The camera will stop shaking if it is.
Camera Stop Shake
The camera will stop shaking if it is.

Camera Flash​

Flash the camera with the selected color for a period of time.
Camera Flash
Duration
0.5
R
255
G
255
B
255
  • Duration: The length of time to wait before the colors go back to normal in seconds or frames.

Movement​

Camera Set Position​

Set the position of the camera, causing it to instantly move to the new location.
Camera Set Position
X
0
Y
0
  • X: The horizontal position.
  • Y: The vertical position.

Camera Scroll To​

Scroll the camera to a new position.
Camera Scroll To
X
0
Y
0
Speed
Speed 2
  • X: The horizontal position.
  • Y: The vertical position.
  • Speed: The movement speed.

Variables​

Camera Get Position​

Store the camera's top-left X and Y position into two variables. Note: this returns the top-left corner, while Camera Set Position uses the camera center.
Camera Get Position
X
$Variable0
Y
$Variable0

Properties​

Camera Copy Bounds​

Copy the camera bounds from the selected plane image or map.
Camera Copy Bounds
Plane
Background
  • Plane: The plane we want to use

Camera Set Lerp To​

Set the camera lerp to the given value.
Camera Set Lerp To
Lerp
0
  • Lerp: How smooth the camera follows. From 0 to 100.

Camera Set Offset To​

Set the camera offset to the given value.
Camera Set Offset To
Offset X
0
Offset Y
0
  • Offset X: The horizontal position.
  • Offset Y: The vertical position.

Camera Set Deadzone​

Set the camera deadzone, actors movement inside the deadzone won't move the camera.
Camera Set Deadzone
X
0
Y
0
Width
0
Height
0
  • X: The horizontal position.
  • Y: The vertical position.
  • Width
  • Height

Camera Set Bounds​

Set the camera bounds, the camera won't move outside these. Normally this would be the level size.
Camera Set Bounds
X
0
Y
0
Width
0
Height
0
  • X: The horizontal position.
  • Y: The vertical position.
  • Width
  • Height

Camera Set Allowed Scroll​

Enable or disable scroll axes for the selected layer.
Camera Set Allowed Scroll
Plane
Background
Scroll X
Scroll Y
  • Plane: The plane we want to use
  • Scroll X: Enable or disable horizontal scrolling for the selected layer.
  • Scroll Y: Enable or disable vertical scrolling for the selected layer.