Playing With Fire
Enough theory, Lets get down to building up our fire. In this video we will explore together a concept and figure out how to build it out. We didn't know what we would get in advance - our goal is to have you join in on our journey as we are focused mainly teaching you how to deal with real live scenarios and what better way then to expose you to us trying to figure it out live. By the end of this video we will figure out our attack plan, have our assets ready. This video is the planning phase in the next video we start animating our fire.
Video Transcript
00:00Now again, one more thing that I wanted to say,
00:02we're extending a sprite really just for the sake of practice
00:04because until now all of our visual elements in this example
00:07have been movie clips because we were leveraging
00:10the movie clip itself.
00:11Now, what I want to do is I want to go into my fire
00:14and I'm going to select, I'm going to double click,
00:16kind of like go to the timeline itself,
00:18just set another layer and I'm going to randomly select
00:22just a couple of layers or maybe even one layer.
00:26So this is kind of interesting, so I'm going to cut that
00:29and I'm going to put that right up here.
00:32I'm just literally experimenting right now.
00:35Oh, I got to paste it in place
00:38and I'm going to knock that underneath.
00:39So now I have your layer underneath and a layer above
00:43and what I'm thinking would be nice
00:46is if we somehow created some sort of illusion
00:48of fire going on.
00:50So we might be able to do this trig by
00:52and this is completely again experimental
00:54because I have no idea how this is going to pan out.
00:57What I'm doing here is I'm keeping a base
00:59figure and I want to grab the fire that is above
01:02and see if there's anything visual that I could do with it
01:06and kind of create maybe two layers of the fire
01:09where I could maybe toggle them on and off now.
01:11It's not going to obviously be in any way or form accurate.
01:16Oh, before I do that, you know what,
01:17let me select all these elements right here.
01:22Oopsie, all right, so we're back inside.
01:23I'm going to select everything in here again.
01:25I'm going to modify, convert it into a symbol.
01:28I'm just going to call this fire MC fire MC fire layer.
01:38So we got here a fire layer.
01:39I'm going to copy this layer, which is now a movie clip.
01:42Going to paste it right in the same spot
01:44and now I'm going to go into my modify transform
01:50and I'm going to click into the, I think flip horizontal.
01:56Yep, cool.
01:57So now we got here like a really, really crazy fire.
01:59And what I want to see is what happens
02:01if I turn it off and on and I kind of like this
02:04and the idea itself, what I'm thinking is maybe
02:06we'll have these two layers kind of like fading in
02:10and out relatively quickly in different speeds
02:13and see if that creates maybe some funky kind
02:17of like fire thing going on.
02:19So I'm going to call this fire layer one, fire one,
02:25fire two and I'll just make sure that I call this fire MC fire one
02:36and go up here, select the second one, MC fire two.
02:43Great, so now we have something to work with.
02:45We have two base frames and we'll go into the fire itself
02:48and we'll start playing with it
02:49and see what actually happens.
02:52We really wanted to only play out
02:53when we touch, but we're going to make sure
02:55that we call touch as soon as our application starts.
02:58And the only reason we're doing that is
02:59so when we run our application and we experiment,
03:02we'll be able to see it on the spot
03:03and we could always delete that later on
03:05when we're ready for it to be only an action
03:07that happens when you click actually.
03:09All right, so first of all,
03:10I want to add in my public variables.
03:12So I'm going to call it, I'm going to define them
03:15public variable fire one, which is a movie clip.
03:19I'm going to add another public variable fire two,
03:22which is a movie clip as well.
03:24Now, by the way, I get a lot of times questions
03:25about how could you improve performance?
03:27Using a movie clip when you don't need one
03:30is definitely not good performance.
03:31So in our case, in our source file,
03:34these elements, you could convert them into a class,
03:36convert them into a sprite,
03:37and now you just save some space.
03:39I'm not going to do that,
03:40but you're more than encouraged to do that.
03:42And the reason why, because it really doesn't matter
03:44for such a small application like this,
03:46it's not about being always the most optimized,
03:49it's really about being the most functional.
03:52And a lot of times it's much easier
03:53to build something out the way you want to
03:55and then just revisiting and removing some functionalities
03:58that you're not using later on.
04:01And that's personally my preference.
04:02And because I know this application
04:03is going to be really small, it really doesn't matter.
