Camera

open class Camera

Utilities for controlling the camera in game.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
A rotation method for moving the camera
Link copied to clipboard

Functions

Link copied to clipboard
open fun getAngle(): Int
Gets the camera angle.
Link copied to clipboard
open fun getRotation(): Int
Gets the camera rotation, in degrees.
Link copied to clipboard
Gets the camera rotation method
Link copied to clipboard
Gets the camera zoom method to use when calling setZoomPercent.
Link copied to clipboard
Gets the level of zoom the camera is in.
Link copied to clipboard
Resets the zoom percent by clicking the 'Restore Default Zoom' action in the options tab
Link copied to clipboard
open fun setAngle(angle: Int)
Sets the camera angle.
Link copied to clipboard
open fun setRotation(degrees: Int)
Sets the camera rotation to the specified degrees.
Link copied to clipboard
Sets the rotation method
Link copied to clipboard
open fun setZoomMethod(zoomMethod: Camera.ZoomMethod)
Sets the camera zoom method to use when calling setZoomPercent
Link copied to clipboard
open fun setZoomPercent(zoomPercent: Double): Boolean
Attempts to set the camera zoom within the options tab.