Skip to content
Érico Vieira Porto edited this page May 5, 2019 · 20 revisions

Camera

Create

static Camera *Create();

Creates a new Camera.

Compatibility: Supported by AGS 3.5.0 and later versions.

See Also: Camera.Delete

Delete

void Delete();

Removes an existing camera; note that primary camera will never be removed.

Compatibility: Supported by AGS 3.5.0 and later versions.

See Also: Camera.Create

SetAt

void SetAt(int x, int y);

Changes camera position in the room and disables automatic tracking of the player character.

Compatibility: Supported by AGS 3.5.0 and later versions.

See Also: Camera.SetSize

SetSize

void SetSize(int width, int height);

Changes camera's capture dimensions in room coordinates.

Compatibility: Supported by AGS 3.5.0 and later versions.

See Also: Camera.SetAt

AutoTracking

attribute bool AutoTracking;

Gets/sets whether this camera will follow the player character automatically.

Compatibility: Supported by AGS 3.5.0 and later versions.

Width

attribute int Camera.Width;

Gets/sets the camera's capture width in room coordinates.

Compatibility: Supported by AGS 3.5.0 and later versions.

See Also: Camera.Height

Height

attribute int Camera.Height;

Gets/sets the camera's capture height in room coordinates.

Compatibility: Supported by AGS 3.5.0 and later versions.

See Also: Camera.Width

X

static int Camera.X;

Gets/sets the X position of this camera in the room.

Compatibility: Supported by AGS 3.5.0 and later versions.

See Also: Camera.Y

Y

static int Camera.Y;

Gets/sets the Y position of this camera in the room.

Compatibility: Supported by AGS 3.5.0 and later versions.

See Also: Camera.X

Getting Started in AGS

Editor

Engine

Scripting

Legal Notice

Getting in touch

Misc

Clone this wiki locally