Publishers of technology books, eBooks, and videos for creative people

Home > Articles > Design > Adobe Creative Suite

This chapter is from the book

This chapter is from the book

Animating Your Backgrounds

Backgrounds in traditional animations are created for each shot. However, there are plenty of ways to reuse (there's that word again) a background. Background artists don't get a lot of recognition, but they are just as important as the character animator. A background artist is charged with creating an environment that fits the actions that take place in each scene.

If you're creating a scary animation, your background probably won't be a field of daisies with birds chirping and rainbows in the sky, will it? It will probably be dark and intense. You're setting a mood.

So what kind of techniques can you use in animating a background? Controlling the panning of the background is critical when you are working with a looped animation such as a walking sequence. Remember that if your character stops, the background should stop at the same time. Alternately, if your character stops to take a rest and the background keeps panning, you character needs to move backward with the scenery, as if someone were driving by and filming your character as he or she went past.

This discussion can be a nearly endless topic. There's so much that you can do in Flash to add life to your background. For the sake of brevity, let's keep things simple and talk about panning the background.

When you pan a background, you are basically just tweening it across the Stage. Your background can be a single layer, or you can go for multiple layers to create the illusion of depth.

One thing to keep in mind when you're creating backgrounds that will be panned is that they need to be substantially wider than the Stage. (This might sound obvious, but it is worth mentioning.) Twice the width of your screen is a good rule of thumb.

If you're really sneaky, you can make the left side of your background match up with the right side. That way, you can actually put your background in a looping movie clip and give the impression that you are continuously panning in one direction.

With a looping background that pans in one direction, you can add a walking loop animation of your character and have him face in the opposite direction that your background is panning. Now you've created the impression that a camera is panning alongside your character, who is walking.

When you are panning a background with multiple layers, you need to think about the camera position and relative depth of your layers. Here are a few rules of thumb when working with multiple layers:

  • Objects that are far away usually appear to be darker or fainter than objects that are closer to you.

  • Objects in the foreground appear to move faster than objects in the background.

  • The farther back in the background layer an object is, the less detail it needs.

You put these concepts to practice in the next exercise.

Exercise 11.5 Animating Your Character and Background

This file has already been started for you. You'll be setting up the animated background.

  1. Open BobWalks.fla from the Examples/Chapter11 folder on the CD.

  2. First you'll set up your scrolling background, and then you'll animate Bob and add him to the scene. You're going to build a scrolling background with two layers.

    TIP

    You'll be sorely tempted to use gradients and alpha transparency when you build these backgrounds because the effects that you can get are so cool. Try not to do that, or, at least, try to be judicious in your use of these techniques. Gradients and alpha transparency, particularly when combined with animation, are very processor-intensive. Use flat, solid colors where you can. You don't want to bring your visitor's processor to its knees.

  3. Rename layer 1 Trees, and drag a copy of the Trees graphic symbol from the Library onto the Stage.

  4. Align the Trees symbol so that it is justified with the right side of the Stage. The top of the symbol should be aligned with the top of the Stage.

  5. Add another layer, and name it Grass. Drag a copy of the Grass symbol from the Library onto the Stage. Align the right side of the Grass symbol with the right side of the Stage. The bottom of the Grass symbol should be aligned with the bottom of the Stage.

  6. Notice that the two graphic symbols on the different layers are different lengths. If you tween them so that their left sides line up with the left side of the Stage at the same time, they will appear to move at different speeds.

  7. The longest symbol moves the slowest, and the shortest symbol moves the quickest.

  8. Place a keyframe in both layers at frame 50 (which marks roughly 4 seconds of play time).

  9. In frame 50, align the left side of each movie clip with the left side of the Stage.

  10. Apply your tween by selecting any frame between 1 and 50 (in both layers); right- or Control-click and select Create Motion Tween.

  11. Save and test your movie.

  12. If you watch closely, you'll see that the Grass symbol is moving faster than the Trees symbol. This creates an aspect change and enhances the depth effect.

    You've got your background in place; now you need to get Bob moving.

  13. You should still be working with BobWalks.fla. Create a new blank movie clip, and name it Bob.

  14. Bob has four body positions:

    • l LegsBack

    • l LegsForward

    • l LegsRest

    • l LegsUp

    Your mission, should you choose to accept it, is to arrange these movie clips into a good moving sequence for Bob.

  15. For the moment, use just four keyframes—one for each of Bob's body positions. As an example, you could place the movie clips in the following order:

  16. Frame 1: LegsUp
    Frame 2: LegsForward
    Frame 3: LegsBack
    Frame 4: LegsRest

    Add the four movie clips to the Stage on successive frames.

  17. From the main menu, select Control>Loop Playback, and then press Enter or Return to play the movie clip. Press Enter or Return again to stop the animation.

  18. I don't know about you, but I just don't think that Bob would move like that. At least, not unless he was being poked by a cattle prod. Bob is a big guy; his movements should probably be more deliberate. This is going to require some effort on his part.

  19. Use LegsUp as the starting frame. For Bob to lift his legs probably takes some effort. I imagine that he'd drop them pretty quickly, so leave LegsForward in frame 2.

  20. When Bob drops his legs, I think he'll take a short rest before pulling himself forward. Insert a regular frame after frame 2 by selecting frame 2 and pressing F5.

  21. Frame 4 should now be LegsBack.
    Frame 5 should be LegsRest.

  22. After Bob makes it through one complete walk cycle, I think he'll take a rest. Select frame 10 and press F5 to extend your Timeline.

  23. Press Enter or Return to test your movie clip again.

  24. Bob's movements look a little more natural now.

  25. Return to the main Timeline, and add a layer named Mr. Bob. Move the layer between the grass and the trees. Drag a copy of Bob from the Library onto the Stage.

  26. Test your movie. Doesn't quite look right, does it? When Bob stops moving, the background keeps scrolling. Your options are either to stop the background scroll or to make Bob move with the scroll.

  27. The simplest thing to do is to make Bob move with the scroll. When Bob stops to rest, he needs to slide back with the background tween.

  28. Double-click the Bob movie clip in the Library to open it in Symbol-Editing mode. Most of your sequence is in pretty good shape. All you really need to do is to add a motion tween at the end to get Bob to slide backward while he's at rest.

  29. Insert a keyframe in frame 10 of the Bob layer in the Bob movie clip. Even though you haven't moved the new instance of Bob yet, go ahead and right- or Control-click and select Create Motion Tween from the pop-up menu.

  30. How far are you going to move Bob? That's easy. Just go back to your main Timeline and measure how far the Grass clip moves in five frames. It's about 130 pixels.

  31. Open the Bob movie clip again. Make sure that you have your rulers turned on (View>Rulers), and drag a guide from the left ruler onto the Stage.

  32. Align the guide with the front of the instance of Bob on frame 5.

  33. Drag a second guide onto the Stage, and position it 130 pixels to the right of the first guide.

  34. Select frame 10, and use your arrow keys to align the front of Bob with the second guide.

  35. Save and test your movie.

Bob should take a step, stop, and move in synchronization with the background scenery. Not only do you have a character in motion, but you have your background in motion as well. Where could you go from here? You could add sound—the sound of Bob moving or the background noises. You could add additional layers with assorted forest creatures popping up. The possibilities are endless. It all depends, of course, on the story.

Peachpit Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from Peachpit and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about Peachpit products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites; develop new products and services; conduct educational research; and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email ask@peachpit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by Adobe Press. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.peachpit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020