A quick scan of all the other functions
Before we wrap up this chapter, let's take a look at many of the functions and methods we did not have a chance to review. Most of them are related to things we have done before, but let'sl glance through them quickly. This lesson will wrap up this chapter and project.
Video Transcript
00:00So let's talk about all the other properties that you will find in the timeline light.
00:06So if I go into my TL main, and you'll see I'm going to add more tweens into it if I wanted to.
00:12So for example, let's say I wanted to add a two, which is very similar to the way we would use the tween light only.
00:18We're just not using tween light anymore.
00:20We're directly adding the tween directly into the timeline light object.
00:25So to do that, all I have to do is basically set my target.
00:28So let's say I want to set my target to be, how about we go for our bottom copy.
00:35So that bottom copy, where was it?
00:37Where did we split our copy up right here?
00:41So we want our tagline, lead tagline.
00:45So I'm going to animate our timeline text itself.
00:47But this time I'm going to animate the whole thing as a whole.
00:50And what I'm going to do is I'm going to give it a duration of, let's say, one second.
00:54And I'm going to put here some variables.
00:55What do I want to animate?
00:56I want to move my X to plus a hundred and I want to set my alpha to be zero and I might, in a real scenario,
01:09probably want to actually animate in our, well, I would probably want to also remove my item once it was removed.
01:16But for our sake, because we've seen how to do those stuff before, we're just going to do it this way.
01:20So if I add this element without it's out without using a tween, it will automatically add it.
01:25That's the one thing that I wanted to talk about.
01:28Now, I'm not going to go through every single item.
01:31I just want you to see how that text field deleted only that text field isn't connected to this text here.
01:37So we would have to get rid of these as well.
01:40So one thing that we could do is animate the whole thing out if we wanted to or go through every single text,
01:47which we're not going to do right now.
01:49Now, I wanted to talk about another another few things to our TL main and I'm not going to show it in action.
01:55I'm just going to show it to you because I think all the rest is quite intuitive.
01:58You have also from you have also to from from to actually from to which we've seen that also between light already in Queen Max.
02:07And I want to show you one more, which is stagger, stagger from and stagger to from to and stagger to.
02:16So all those six functions.
02:17So for example, stagger from let's do the stagger to now literally the only difference between to and the stagger to is that instead of sending one item,
02:26we could send an array of items.
02:28So for example, in our in our scenario, we could go back and call all of our tweens again if we wanted to if we wanted all the tweens to happen again,
02:36or maybe we just want to take those two blocks of copy and just create a shadow effect.
02:41So how about we do that?
02:42So instead of this animation here,
02:44I'm going to grab my MC tagline, pass it in as an array and I want to send not only that one,
02:51but I also want to get our lead our actual T lead and I'll be the first one.
02:57So I thought we put that as the first one.
02:58Okay, so we got our properties, the items that we want to animate.
03:02The next step is how long do we want the animations to be?
03:04It's going to be one second.
03:06What do we want to happen?
03:08Let's say we want to move our y position by plus 20.
03:14And we want to also move maybe move our x position.
03:17Oopsie, we want to move our x position plus 20.
03:21And maybe we want to also change our scale x by.
03:28Yeah, let's change it to that.
03:30And now let's make it even bigger.
03:32And this is really, really going to look bad, but it doesn't really matter.
03:35It's not the point.
03:36And that's it.
03:37That's all the stuff that we want to change.
03:38I'm not going to go into all the other properties besides the stagger.
03:41And let's say we want to have your delay of a half a second between the animations.
03:46And we're not going to talk about all the other stuff.
03:48Although as you might be able to, you can't actually see it here.
03:52But there's also position property and on complete all and on complete parameters.
03:56So you could actually have your all these different callbacks that would call once this animation,
04:01all these animations are complete.
04:03We're not going to get into that.
04:05We're just going to see this in action for the stagger too.
04:07So we saw it for the two and now we're going to see it for the stagger too.
04:11That how our copies or how it bounce there right after we were done.
04:16And there you go.
04:17And that's our animation.
04:18All right.
04:19So obviously that's not the smoothest ending animation, but you'll find basically in your
04:24timeline light your to your from your from to and you'll also find the stagger to stagger
04:31from and stagger from to which basically these two ways that we did it will basically
04:36be for all of them and it's the exact same thing as you've worked with the timeline
04:40besides having all these stagger functions that did not exist in a timeline light because
04:45there was only one animation.
04:46There was nothing to stagger.
04:48So that's it.
04:48That's all we have to talk about this chapter.
04:51Chapter 8 is all going to be about the timeline max.
04:54There's not a lot to talk about because we covered quite a lot of stuff already and
04:58we covered most of it also when we were looking into the tween max.
05:03So chapter 8 is going to be an easy breezy one compared to our timeline light which
05:08where we covered almost everything to do with the most critical stuff.
05:11You need to know about it.
05:12Alrighty, see you in the next chapter.
