A ParallaxBackground uses one or more [ParallaxLayer] child nodes to create a parallax effect. Each [ParallaxLayer] can move at a different speed using [member ParallaxLayer.motion_offset]. This creates an illusion of depth in a 2D game. If not used with a [Camera2D], you must manually calculate the [member scroll_offset].
Set to true for all child [ParallaxLayer] nodes to not be affected by the zoom level of the camera.
</description>
</method>
<methodname="set_limit_begin">
<returntype="void">
</return>
<argumentindex="0"name="ofs"type="Vector2">
</argument>
<description>
Set the left and top limits in pixels for scrolling to begin. If the camera is outside of this limit the background will not continue to scroll. If an axis is greater than or equal to the corresponding axis of limit_end, then it will not limit scrolling for that axis.
</description>
</method>
<methodname="set_limit_end">
<returntype="void">
</return>
<argumentindex="0"name="ofs"type="Vector2">
</argument>
<description>
Set the right and bottom limits in pixels for scrolling to end. If the camera is outside of this limit the background will not continue to scroll. If an axis is less than or equal to the corresponding axis of limit_begin, then it will not limit scrolling for that axis.
</description>
</method>
<methodname="set_scroll_base_offset">
<returntype="void">
</return>
<argumentindex="0"name="ofs"type="Vector2">
</argument>
<description>
Set the base offset in pixels of all children [ParallaxLayer] nodes.
</description>
</method>
<methodname="set_scroll_base_scale">
<returntype="void">
</return>
<argumentindex="0"name="scale"type="Vector2">
</argument>
<description>
Set the base motion scale of all children [ParallaxLayer] nodes.
Top left limits for scrolling to begin. If the camera is outside of this limit the background will stop scrolling. Must be lower than [member scroll_limit_end] to work.
Right bottom limits for scrolling to end. If the camera is outside of this limit the background will stop scrolling. Must be higher than [member scroll_limit_begin] to work.
The ParallaxBackground's scroll value. Calculated automatically when using a [Camera2D], but can be used to manually manage scrolling when no camera is present.