#Getting started with Sequencer
1 messages ยท Page 1 of 1 (latest)
I'm looking at the docs. Looks fairly straightforward to me, but I'm also a dev, so ymmv ๐
anyway, what exactly is it that you want to do Cheyenne?
the main difference here is that it sounds like they are wanting to fade out a tile on the scene -- in which case you would use the .animation call instead of .effect. Once we can get a bit more of a start, i'll pull in the pup themself for clarity, if needed.
I have an image (a ghost) that is in a scene as a tile (not an actor because it doesn't need to be) I want it to start invisible, then fade in. SpOOOky
animation is what you want to use, main wiki here: https://github.com/fantasycalendar/FoundryVTT-Sequencer/wiki/Animations
so Sequencer code... goes in the macro text field just like the other code did?
and then fade it out with .fadeOut https://github.com/fantasycalendar/FoundryVTT-Sequencer/wiki/Animations#fade-out
ya, its all macros ๐
ok... one roadblock out of the way
Something like this, perhaps?
new Sequence()
.animation()
.on(tile) // Subsitute "tile" for the variable you use to get the tile
.fadeIn(500)
.duration(2500)
.fadeOut(500)
.play()
Based on the deafening silence, I'm gonna assume that worked ๐
Not yet
I'm trying to solve Subsitute "tile" for the variable you use to get the tile
if its a unique image, then you can do:
canvas.background.placeables.find( tile => tile.data.img == 'my image')
which will return the tile if found, or undefined otherwise
Alternatively, if you have tagger installed, you could tag it with "ghost", and then use:
const [tile] = Tagger.getByTag("ghost");
ok I installed tagger, tagged the tile... then this?
.animation()
const [tile] = Tagger.getByTag("ghost");
.on(tile)
// replace "tile" for the variable you use to get the tile
.fadeIn(500)
.duration(2500)
.fadeOut(500)
.play()```
Ah you can't just stick it in the middle like that
First you put the tagger thing
Then you put the sequence
The sequence is basically a "recipe" you put together, but you need the ingredients before you put the recipe together
see that's my problem - I have np idea where these go
.play() then runs through that recipe and bakes the... ghostly cake
Literally just before new Sequence()
One line before
ok that did something
so now if I want it to fade in and stay visible just remove .duration(2500) .fadeOut(500)
Sure
Excellent - My long nightmare has come to a middle
I joke. but seriously thank you for your patience
Lol
Sequencer's got a lot more goodies hidden in it than just that
If you ever feel like learning more, hit us up
Say... playing an effect only for one player
So only one person sees the ghost :>