This function retrieves the current Y position of the camera. This position is along the vertical Y-axis which increases in value from top to bottom.
The unit of the returned value is tiles. For example, given the following…
- Each tile is 32x32 pixels
- The tile grid dimensions are 5x6.
- The origin is at the top left of the tile grid.
- The camera is pointing at the center of the grid.
…this function would return 3
NOTE: It would not return the pixel value of 96!
-- tileEngineViewControl is an instance of ViewControl local camera = tileEngineViewControl.getCamera() local curY = camera.getY()