#Getting started with Sequencer

1 messages ยท Page 1 of 1 (latest)

split dew
nova sapphire
#

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?

split dew
#

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.

limpid tulip
#

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

split dew
limpid tulip
#

so Sequencer code... goes in the macro text field just like the other code did?

split dew
limpid tulip
#

ok... one roadblock out of the way

serene hedge
#

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 ๐Ÿ˜„

limpid tulip
#

Not yet

#

I'm trying to solve Subsitute "tile" for the variable you use to get the tile

split dew
#

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

serene hedge
#

Alternatively, if you have tagger installed, you could tag it with "ghost", and then use:

const [tile] = Tagger.getByTag("ghost");
limpid tulip
#

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()```
serene hedge
#

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

limpid tulip
#

see that's my problem - I have np idea where these go

serene hedge
#

.play() then runs through that recipe and bakes the... ghostly cake

#

Literally just before new Sequence()

#

One line before

limpid tulip
#

ok that did something

#

so now if I want it to fade in and stay visible just remove .duration(2500) .fadeOut(500)

serene hedge
#

Sure

limpid tulip
#

Excellent - My long nightmare has come to a middle

#

I joke. but seriously thank you for your patience

serene hedge
#

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 :>

limpid tulip
#

I know - that I don't need to select the tile - I just forgot in the moment

nova sapphire
#

takes notes

#

That's so cool