1 00:00:00,302 --> 00:00:04,402 This tutorial exists because both you and I have both seen these kinds of backgrounds 2 00:00:04,402 --> 00:00:07,322 gone horribly wrong. 3 00:00:07,322 --> 00:00:13,382 A cheap way to make a looping background is just to throw in a featureless flat surface 4 00:00:13,382 --> 00:00:18,472 and tween some symbols to fly across the stage at varying speeds based on how far away they 5 00:00:18,472 --> 00:00:29,571 are. Farther away equals slower. Copy and paste the tweens over time and you're done. 6 00:00:29,571 --> 00:00:33,442 If you're making a forward facing loop it's the same thing. Dump those symbols in there 7 00:00:33,442 --> 00:00:43,962 and tween them to move and shrink. Here's a trick: copy and paste all of those tweened 8 00:00:43,962 --> 00:00:52,392 layers into a new symbol. Convert some of the animations to frame by frame. Pull them 9 00:00:52,392 --> 00:01:07,641 out and move the frames hanging off the end over to the front of the symbol. This ensures 10 00:01:07,641 --> 00:01:12,171 a constant flow of junk onto the screen. All you have to do now is put that symbol on the 11 00:01:12,171 --> 00:01:15,272 stage and extend it. 12 00:01:15,272 --> 00:01:21,391 Right. So that stuff's for cheaters, let's talk about real looping backgrounds starting 13 00:01:21,391 --> 00:01:26,391 with the bare minimum: the place where the characters go. Regardless of the program you're 14 00:01:26,391 --> 00:01:31,281 using to make backgrounds, the art needs to be longer than your video dimensions. This 15 00:01:31,281 --> 00:01:35,022 amount extra works but you don't have much room to make mistakes. 16 00:01:35,022 --> 00:01:39,302 While you're drawing, make sure that the left and right edges are about the same height, 17 00:01:39,302 --> 00:01:44,991 and avoid drawing anything that hangs too far over the edges. 18 00:01:44,991 --> 00:01:55,482 When the background is done, cut and paste your layers into a symbol. Now select all 19 00:01:55,482 --> 00:02:02,921 of those layers, copy the art and paste it into a new layer inside that symbol. Move 20 00:02:02,921 --> 00:02:08,371 that new layer to one side, leaving a small overlap between it and the original background. 21 00:02:08,371 --> 00:02:16,892 Look at that sloppy seam. Look at it! Clean that up with an eraser or new art layers. 22 00:02:16,892 --> 00:02:29,712 There. Once that's done, it's ready. Put the symbol into a scene. Make sure the rough edge 23 00:02:29,712 --> 00:02:34,282 is off the screen with just enough space so people won't see the transition. If you drew 24 00:02:34,282 --> 00:02:38,892 a long background, you have some extra room for error here. 25 00:02:38,892 --> 00:02:42,602 Put a tween on your background layer and move it with the properties window so the second 26 00:02:42,602 --> 00:02:47,561 part of the background comes up in about the same spot as where it began. So this bush 27 00:02:47,561 --> 00:02:53,591 should be about here. And we're just guessing at this point, so woo-hoo. And now, if that 28 00:02:53,591 --> 00:02:57,722 rough edge of your art is coming into the screen, you've got a problem. Either you didn't 29 00:02:57,722 --> 00:03:02,121 make your design long enough, or you just need to move the starting point of your background 30 00:03:02,121 --> 00:03:06,472 back. This way some. There. There you go. 31 00:03:06,472 --> 00:03:10,591 Copy and paste your background, tween and all, into a new layer. Remove the tween from 32 00:03:10,591 --> 00:03:15,591 the top layer and switch to the line view, and lock it so you don't move it on accident. 33 00:03:15,591 --> 00:03:20,461 So now you can see that last frame is off. Go ahead and use the properties window to 34 00:03:20,461 --> 00:03:26,752 adjust the last frame in the tween so it's perfect. You have to get it perfect. The loop 35 00:03:26,752 --> 00:03:32,651 will jump if even a single pixel is off. So do it right! Do it right. 36 00:03:32,651 --> 00:03:33,302 Done. 37 00:03:33,302 --> 00:03:37,742 Delete the reference line layer. It's time to adjust the background's speed. Bring in 38 00:03:37,742 --> 00:03:42,942 your animated character on a new layer and put it where you want it to go. Add or remove 39 00:03:42,942 --> 00:03:48,561 frames from the background to make it match with the speed of the character. 40 00:03:48,561 --> 00:03:59,371 There, the speed looks good. Now for the magic. Copy and paste the background layer with the 41 00:03:59,371 --> 00:04:07,882 tween into a new symbol. And now this is what you do: remove the last frame of that tween. 42 00:04:07,882 --> 00:04:09,731 Just the last one. 43 00:04:09,731 --> 00:04:14,451 Go back to your scene and bring the symbol you just made into a new layer. You can switch 44 00:04:14,451 --> 00:04:21,381 it to line view to make sure it's positioned exactly how you want it. 45 00:04:21,381 --> 00:04:26,122 And now delete the original layer and extend your symbol out for as long as you need the 46 00:04:26,122 --> 00:04:32,852 loop. Forever. For infinity and beyond. 47 00:04:32,852 --> 00:04:42,652 Repeat the process for every layer of depth you want to add. 48 00:04:42,652 --> 00:04:48,161 But here's a tip. Usually that back layer moves so slow you don't need to make it loopable. 49 00:04:48,161 --> 00:04:48,552 Just tween it.