2D Camera Functions

From Danmakufu Wiki
Jump to: navigation, search

Set2DCameraFocusX

Arguments:
 1) x-coordinate (real)

Sets the x-coordinate of the focus point.

It is usually the center of the screen.

Set2DCameraFocusY

Arguments:
 1) y-coordinate (real)

Sets the y-coordinate of the focus point.

It generally is the center of the screen.

Set2DCameraAngleZ

Arguments:
 1) z-rotation (real)

Sets the Z angle of the 2D Camera.

Set2DCameraRatio

Arguments:
 1) zoom (real)

Sets the zoom of the camera (centered on the focus point).

This value is usually 1.

Set2DCameraRatioX

Arguments:
 1) x zoom (real)

Sets the magnification of the X axis of the 2D camera (centered on the focus point).

For example, if you set this value to 2, the x-axis will be doubled in size.

This value is usually 1.

If you specify a negative value, the x-axis will be flipped.

Set2DCameraRatioY

Arguments:
 1) y zoom (real)

Sets the magnification of the Y axis of the 2D camera (centered on the focus point).

For example, if you set this value to 2, the y-axis will be doubled in size.

This value is usually 1.

If you specify a negative value, the y-axis will be flipped.

Reset2DCamera

Resets both the focus point and the zoom ratio, respectively to the center of the screen and 1.

Get2DCameraX

Returns the x-coordinate of the camera.

Get2DCameraY

Returns the y-coordinate of the camera.

Get2DCameraAngleZ

Returns the z rotation angle of the camera.

Get2DCameraRatio

Returns the zoom ratio of the camera.

Get2DCameraRatioX

Returns the x zoom ratio of the camera.

Get2DCameraRatioY

Returns the y zoom ratio of the camera.