Camera.setLocation()

   
Type function
Library wattageTileEngine.Camera.*
Return value VOID
Keywords  
See also  

Overview

This function sets the location of the camera.

Syntax

Camera.setLocation( x, y )
x (required)

Number. The X coordinate of the camera in tile units. (not pixels)

y (required)

Number. The Y coordinate of the camera in tile units. (not pixels)

Examples

-- tileEngineViewControl is an instance of ViewControl
local camera = tileEngineViewControl.getCamera()
camera.setLocation(2.5, 3.0)