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
47 stars 25 forks source link

[BUG] - loopOptions method doesn't work as expected #270

Open boss-loot opened 2 months ago

boss-loot commented 2 months ago

Describe the bug I am using the loopOptions (former noLoop) method on an animation and the animation dissapear after it finished. The expectation was that the animation expands and remain visible untill the effect it's deleted.

To Reproduce Steps to reproduce the behavior:

  1. Run the world macro:

    const targetToken = token;
    new Sequence()
    //BLOOD GROUND
    .effect()
    .file('jb2a.liquid.splash.blue')
    .name('visualName')
    .opacity(0.9)
    .atLocation(targetToken)
    .tint(0xff0000)
    .randomizeMirrorY()
    .randomRotation()
    .timeRange(0, 1000)
    .loopOptions({ loops: 1 })
    .fadeOut(500)
    .elevation(0, { absolute: true })
    .persist()
    
    .play();

Expected behavior The expectation was that the animation expands and remain visible untill the effect it's deleted.

Setup:

Active modules: