Contents |
A singleton object that handles all the camera interaction
As this is an internal object, you cannot create your own Camera object. This simply represents the type of a variable in the vx library. Just use the variable vx.camera to use this.
vx.Camera.x -> number (read/write)
vx.Camera.y -> number (read/write)
vx.Camera.target -> number (read/write)
vx.Camera.TARGET_NOTHING - full script control of the camera
vx.Camera.TARGET_PLAYER - camera follows the player
vx.Camera.TARGET_ENTITY - camera follows an entity
vx.Camera.entity -> number (read/write)
vx.Camera.TARGET_ENTITY.
vx.Camera:TargetNothing()
vx.Camera:TargetPlayer()
vx.Camera:TargetEntity(entity)