Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: SlowTimeEffect

[18:7] extends: Effect

Wraps FXGL's SlowTimeEffect (com.almasb.fxgl.dsl.effects.SlowTimeEffect), a built-in Effect that scales the entity's TimeComponent.value by a ratio for a fixed duration. A ratio of 0.5 makes the entity's local time run half as fast. Requires a TimeComponent on the affected Entity.

Methods

  • SlowTimeEffect (double Ratio = 0.5, double DurationSeconds = 1.0)

    Creates a new SlowTimeEffect.

    • @p Ratio is the time-scale ratio in 0..1.
    • @p DurationSeconds is the effect lifetime in seconds.
  • adopt (object Ajo)

    Wraps an existing SlowTimeEffect AussomJavaObject.

  • getRatio ()

    Returns the configured ratio (double).

  • isFinished ()

    Returns true once the effect's duration has elapsed.