RegionManager.setCameraLocation()
Type | function |
Library | wattageTileEngine.RegionManager.* |
Return value | VOID |
Keywords | |
See also |
Overview
This function will set the location of the camera.
NOTE: This function should always be used to set the camera’s location when utilizing the RegionManager. Setting the position directly on the camera will not factor in the world to local coordinate conversions.
Syntax
RegionManager.setCameraLocation( worldX, worldY )
worldX (required)
Number. The X position of the camera in world coordinates. These values are in tile units.
worldY (required)
Number. The Y position of the camera in world coordinates. These values are in tile units.
Examples
regionManager.setCameraLocation(10.5, 5.5)