Donate
 
Has KnowFlash helped you?

Donate towards running costs:


Why donate?

Newsletter
Sign up to our newsletter:
 
Enter your email address:
 
flash menu
Tutorials
Video Tutorials
Store
Main Menu
Home
News
Forum
Help/FAQ's
Contact Us
Search
Register
Advertise
Links
Webmasters

Basic Motion Guides Print E-mail
Written by Rawpulse   
Wednesday, 12 October 2005
Learn all about the basics of motion guides to bring your animations to life, and to save yourself time.
 


This is a tutorial to utilize the Motion Guide feature. It's a simple effect, and allows you to set a guide for your graphic to follow. For example you could create a spiral to follow, rather than it simply taking a direct route to the end location, in a straight line. You'll find a lot of uses for this, especially if you're getting into animation or games.

I created this motion guide with Flash MX Professional 2004, as with my other turorials. I created a spaceship to demonstrate this effect, which you can see below.


The Ship


So, first make sure that you have the Snap to Objects button selected. This is located under Options when you have the Selection Tool selected. Attaching graphics to motion guides is difficult without this turned on, so ensure that it is.


Snap


Next insert your graphic onto the page. This can be done by importing it from File > Import > To Stage... or by copy and pasting an image. At this point turn your image into a graphic if you haven't already. Go to Modify > Convert to Symbol... and select graphic under behaviour. Rename layer 1, where your graphic will be, to "graphic".

Add a keyframe at frame 30, by right clicking the space under the 30, and selecting Insert Keyframe. Keyframes define areas of your project where change occurs (see Keyframe tutorial). In this tutorial we only require two. One at the begining and one at the end.

With the graphic layer selected, right click and select Add Motion Guide from the drop down list, as seen below:


Adding the Guide


Your timeline should now look like this:


After you have added the guide


The guide layer is now set (it is the top layer named Guide:graphic). On this layer, draw a line using the pencil tool. This is the path that the graphic will follow. I drew a line that dips down, but you can make any path, as long as you have a clear beginning and end. It does not matter what colour or thickness the line is, because it will not be seen on the animation. This line is a pathway for the graphic to follow, but in the end result it is not shown.


The Line


This is where you attach the graphic to the guide, but because you turned Snap to Objects on, it's fairly simple. Select the graphic with the Selection Tool and you will see a small circle appear in the middle. Click this and drag towards the beginning of your line. You will notice that as you approach the point where you wish to connect, the graphic will "snap to" it. It should now look like this (if you're going from right to left):


Snap - Beginning


Now go to frame 30, which you made a keyframe, and do the same with the image. This time however, drag your image over the end of your line. You have now created the starting point and ending point of your animation, but you will notice nothing happens in between. The final part requires you to add a tween, like regular motion tweening. To do this, click on frame 15 (or anywhere in between frame 1 and 30), then select Motion from the Tween drop down box, located in the Properties menu.


Select Tween


You have now completed your motion guide animation. Test it by pressing <b>Ctrl + Enter</b> and you will see that the graphic follows the line you have drawn. It does not turn as your line does, instead it remains pointing in the same direction all the time. This will be addressed in my next tutorial, entitled "Advanced Motion Guides"


Last Updated ( Wednesday, 12 October 2005 )
< Prev   Next >

In association with Coursework Essays , Free Essays , Phishing Scams and Big Red Directory

Copyright Oxford Information Services Ltd 2007