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

Possible Bug with attachTo() #36

Closed otigon closed 2 years ago

otigon commented 2 years ago

Issue was first reported on the A-A list at https://github.com/otigon/automated-jb2a-animations/issues/276 .

When using .attachTo() and setting a token as the object, if the Token has any scaling effect applied ( Scale(ratio) }, the effect does not properly center. To replicate, you can use:

let tactor = canvas.tokens.controlled[0];

new Sequence() .effect() .file("modules/jb2a_patreon/Library/2nd_Level/Darkness/Darkness_01_Black_600x600.webm") .attachTo(tactor) .scale(.5) .play()

For the Token, if you edit it on the Image tab, and change the Scale(ratio) higher or lower than 1, the effect starts to be placed off center. I can't see in the token info where this would effect the placement, but I'm assuming it has something to do with Pixi, but that's like reading japanese for me lol.

Haxxer commented 2 years ago

Fixed in a recent update