fantasycalendar / FoundryVTT-Sequencer

This module implements a basic pipeline that can be used for managing the flow of a set of functions, effects, sounds, and macros.
Other
41 stars 19 forks source link

[BUG] - playbackRate() with persist() can break the loop #175

Closed BenIsWassily closed 1 year ago

BenIsWassily commented 1 year ago

Describe the bug Using .persist() for an asset with Intro/Loop/Outro and using .playbackRate() to speed up the animated asset make it not loop anymore.

To Reproduce Simply use this macro

let target = Array.from(game.user.targets)[0];  
    new Sequence()
    .effect()
        .file("jb2a.moonbeam.01.complete.blue")
        .atLocation(target)
        .persist()
        .name("test")
        .playbackRate(3)
        .scale(.5)
.play()

Expected behavior It should behave like without using .playbackRate(), meaning it should go on a loop after playing the intro (and play the outro when the effect is ended) but at a different playback speed.

moonbeam.webm

Setup:

Active modules:

Haxxer commented 1 year ago

Fixed in 3.0.11, though playbackRate is going to make tight timings of transitions relatively unstable