ParallaxBackground

    A node used to create a parallax scrolling background.

    A ParallaxBackground uses one or more child nodes to create a parallax effect. Each ParallaxLayer can move at a different speed using . This creates an illusion of depth in a 2D game. If not used with a Camera2D, you must manually calculate the .

    Default

    Vector2( 0, 0 )

    Setter

    set_scroll_base_offset(value)

    Getter

    get_scroll_base_offset()

    The base position offset for all children.


    The base motion scale for all children.


    Default

    false

    Setter

    set_ignore_camera_zoom(value)

    Getter

    is_ignore_camera_zoom()


    Top-left limits for scrolling to begin. If the camera is outside of this limit, the background will stop scrolling. Must be lower than to work.


    Default

    Setter

    set_limit_end(value)

    Getter

    get_limit_end()

    Bottom-right limits for scrolling to end. If the camera is outside of this limit, the background will stop scrolling. Must be higher than 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.