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

playbackRate() changes effect duration rather than speed #90

Closed Vauryx closed 2 years ago

Vauryx commented 2 years ago

Using .playbackRate() In an effect causes the effect's duration to change but not its speed. For example, .playbackRate(2) is cutting the length in half but not changing the speed

Foundry_Virtual_Tabletop_Dk7Vrx3XZy

Script for reproduction:

const target = Array.from(game.user.targets)[0];

if(!caster){
    ui.notifications.error("No caster");
    return;
}

console.log("Caster: ", caster);
console.log("Target: ", target);

let introSeq = new Sequence();
introSeq
    .effect()
    .file('jb2a.energy_strands.in.blue.01.1')
    .atLocation(caster)
    .scale(0.5)
    .playbackRate(1)
.play() 

Tested on Sequencer 2.1.8

Haxxer commented 2 years ago

Fixed in 2.1.9