Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: SelfScrollingBackgroundView

[16:7] extends: ScrollingView

Wraps FXGL's SelfScrollingBackgroundView (com.almasb.fxgl.dsl.views.SelfScrollingBackgroundView), a scrolling view that scrolls itself at a fixed speed without binding to a viewport (useful for menus and parallax effects independent of camera motion).

Methods

  • SelfScrollingBackgroundView (object ImageObj = null, double ViewWidth = 800.0, double ViewHeight = 600.0, string Orientation = "HORIZONTAL", double MoveSpeed = 50.0)

    Creates a new SelfScrollingBackgroundView.

    • @p ImageObj is a javafx.scene.image.Image AJO (use fxgl.image(name) to load by asset name).
    • @p ViewWidth is the rendered width in pixels.
    • @p ViewHeight is the rendered height in pixels.
    • @p Orientation is "HORIZONTAL" or "VERTICAL".
    • @p MoveSpeed is the pixels-per-second scroll speed.
  • adopt (object Ajo)

    Wraps an existing SelfScrollingBackgroundView AussomJavaObject.

  • getMoveSpeed ()

  • setMoveSpeed (double V)