Forum Replies Created

  • Tim Johnson

    December 20, 2020 at 1:00 am in reply to: Simulate chasing over a terrain

    that’s so cool Dan, thank you!

    I will take the time to dissect and absorb this. It means a lot.

    One thing, is there a reason the ‘accum’ variable needs a second name ‘d’? Does that establish two separate variables?

  • Tim Johnson

    December 19, 2020 at 11:11 pm in reply to: Simulate chasing over a terrain

    Hey Dan, that’s definitely on the right track. The problem with that though is that the terrain stops moving when the target does, I’d like the terrain to be moving continuously and only angled via the direction of the pointer/target. The speed variation could be that the terrain moves faster when the target is closer to the pointer (as if it was catching up).

    I have a feeling the answer may lie somewhere in your guide here:

    https://www.motionscript.com/articles/speed-control.html

    Although I’m not sure how to integrate the concepts here, because it feels like it needs ‘time’ in play to keep it moving constantly (with no keyframes).

  • Hey Alex, thanks very much!

    So the animation triggers once x == y. It doesn’t matter if it goes higher, because it’s already played the animation.

    Basically I’m making a template where the bottom line of text is underlined by a shape layer which stretches to fit it depending on how many characters there are.

    I’ve used split() to output the last line into a new layer which is used by the shape layer via sourceRectAtTime.

    The last issue is the type on – i need the last line’s type on animation to trigger once the rest of the text has finished typing on.

    So the when (time) the amount of characters in the type on reveal (x) matches the amount of characters in the source text it’s revealing (y), the type on of the last line is triggered.

    Hope that makes sense! It’s been so convoluted to get it to this point, I can’t give up now… have learned a lot about expressions in the process though ☺

    I tried your inline expression by the way, it just seems to flash the first letter of the last line once x == y.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy