UNPKG

pxt-common-packages

Version:
45 lines (25 loc) 781 B
# Camera Property Returns a property of the camera. ```sig scene.cameraProperty(CameraProperty.Left) ``` ## Example ```blocks let top = scene.cameraProperty(CameraProperty.Top) ``` ## Properties ### x Returns the x-axis screen coordinate of the camera's center. ### y Returns the y-axis screen coordinate of the camera's center. ### left Returns the x-axis screen coordinate of the camera's left edge. ### right Returns the x-axis screen coordinate of the camera's right edge. ### top Returns the y-axis screen coordinate of the camera's top edge. ### bottom Returns the y-axis screen coordinate of the camera's bottom edge. ## See also #seealso [camera follow sprite](/reference/scene/camera-follow-sprite) [center camera at](/reference/scene/center-camera-at)