Skip to content

AsyncScene 2.0.1

Choose a tag to compare

@EiTaNBaRiBoA EiTaNBaRiBoA released this 02 Oct 07:46
· 10 commits to main since this release

AsyncScene 2.0.1

This is a major feature release that significantly expands the transition system and improves the API's flexibility.

Added

  • Expanded Transition Library: Added 9 new built-in transition types, providing a wide range of visual effects for scene changes:
    • Directional Wipes: WipeLeft, WipeRight, WipeUp, WipeDown.
    • Directional Slides: SlideLeft, SlideRight, SlideUp, SlideDown.
    • Circular Iris: Iris.
  • Customizable Transition Visuals:
    • The with_transition method can now accept a Texture2D object, allowing you to use images and patterns for Fade and Wipe transitions instead of just a solid color.
  • Pausable Transitions:
    • A new with_pause(duration: float) method allows you to pause Fade, Wipe, and Iris transitions at their midpoint (when the screen is fully covered).
    • The pause can be a timed delay (e.g., with_pause(2.0) for 2 seconds) or an indefinite manual pause (with_pause(-1.0)) that requires user intervention.
    • A new resume_transition() method was added to continue a manually paused transition.
  • Midpoint Signal:
    • A new OnTransitionMidpoint signal is emitted when a pausable transition reaches its halfway point. This occurs after the new scene has been loaded and added to the tree, making it ideal for displaying tips, level titles, or waiting for player input.
  • Method Chaining:
    • The configuration methods (with_parameters, with_transition, with_pause) now return the loader instance, allowing for a cleaner, chained initialization syntax.

Changed

  • API for with_transition: The method signature was updated to with_transition(type: TransitionType, duration: float, visual: Variant). The visual parameter replaces the old color parameter and can accept either a Color or a Texture2D.
  • Internal Architecture: The core transition logic was refactore to support the new effects and features, making it more robust and extensible.

Fixed

  • Resource Management: The loader now correctly cleans itself up when using TransitionType.None, preventing the loader node from remaining in the scene tree after a scene change without a transition.

Full Changelog: 2.0.0...2.0.1