2D Animation Basics

Published August 15, 2013 by Paul Rayman, posted by nwp1993
Do you see issues with this article? Let us know.
Advertisement

Introduction

Simply put, 2D animation is movement and transformation of objects on the screen in two dimensions. A good example of 2D animation is classic cartoons - multiple pictures of Mickey Mouse or Donald Duck alternating over time and producing the effect of moving objects. The modern 2D animation software allows creating animation much easier though, without making oodles of frames.

Frames and Keyframes

Just like with classic animation, computer 2D animation also consists of frames. Frame is a single picture of an object illustrating certain position, size and other properties of that object. Adjacent frames are slightly different from each other, so when the animation is played at the full speed - usually 24 frames per second - the effect of motion appears. This is similar to cartoons and movies.

But in computer animation you typically don't have to draw each and every frame manually. Most of 2D animation software allows you to set up keyframes - frames that specify intermediate positions of an object. The motion of the object between these keyframes is built by the software automatically. So you end up with creating keyframes only, while the animation tool calculates and builds the rest of frames automatically. This process is called interpolation.

Curve Animation

The motion between two keyframes can be different - accelerating, slowing down, steady or even all of these in one move. The simplest way to specify how exactly one keyframe should translate to another is curves. A curve defines how a specific parameter of an object, such as a coordinate or a scale should vary over time.

Let's take a look at a simple animation example made in one of 2D animation programs - GameDev Animation Studio. We want to make a ball move from up to down and then bounce back.

volyball_2.png

Basically, this means the vertical coordinate of the object, or simply the Y-coordinate should change from zero (the top of the screen) to the maximum value that corresponds to the bottom of the screen. Then the ball "bounces", i.e. its form gets distorted in the vertical direction and restored again. After that, the ball moves up, which means the Y-coordinate should decrease back to zero. Also note, that due to gravity, the ball moves down with acceleration, while the backward movement must be decelerating. This is mirrored in the slope of the curve: a sharper slope means faster movement and vise versa.

Position Curve

So the curve describing vertical movement of the ball looks as follows:

MoveY.png

As you see, the curve here gradually develops from zero to its maximum, and then, after the peak, it goes back to zero again. The highest value of the curve corresponds to the moment the ball hits the ground - this happens in the 30th frame on the timeline. After that moment, the ball starts moving up.

Zoom Curve

When the ball is just to hit the ground, it starts deforming. Indeed, the ball is elastic, so it kinda must deform. This animation can be done with another curve - the zoom curve. We'll change the vertical scale (Y-scale) of the ball to reflect the way it gets distorted during the hit.

ZoomY.png

Above is the Y-scale zoom curve. As you see, prior the 29th frame the curve is at its maximum. This corresponds to the non-deformed ball falling down. In 29th, the curve goes down, and the ball's image is zoomed down along the vertical axis. Then, after the curve passes the "hit-the-ground" point in 31st frame, the image is zoomed up to normal, so the curve goes up again to its maximum.

Note, that the higher the zoom factor is, the more elastic the ball will look. Thus, experimenting with curves in 2D animation tools is an easy way to find the most spectacular and satisfying animation effects. On the other hand, the classic animation approach would require you to discard all the work already done and start from scratch if you decided to change something.

Adding Details to Animation

Obviously, the ball just moving up and down doesn't look too realistic, that is why we need a shadow. We should place a shadow picture beneath the ball and use curves to make it look real. Overall, the process is pretty much similar to above steps. We'll need to scale the shadow and modify its transparency level in accordance with the ball's movement.

">Here is the final result of the jumping ball animation.

Conclusion

Making 2D animation is a piece of cake with proper software. Thanks to automated image transformation between keyframes, curve animation and multiple transition effects, creating an animated picture or a movie can be done in several minutes, even by a beginner.

Cancel Save
0 Likes 2 Comments

Comments

Prinz Eugn

I think the title should be changed to more specifically reflect what you're covering, "2D Animation Basics" is too expansive. Maybe something along the lines of "Simple 2D Animation with GameDev Animation Studio."

I think you could also include quite a few more screenshots of the animation in action, or even every other frame of the animation.

August 06, 2013 06:45 PM
afnan36
???? ??? ?????? ???????
????? [URL=http://hmamkingdom.com/%d8%b4%d8%b1%d9%83%d8%a9-%d8%aa%d9%86%d8%b8%d9%8a%d9%81-%d8%ae%d8%b2%d8%a7%d9%86%d8%a7%d8%aa-%d8%a8%d8%a7%d9%84%d8%b1%d9%8a%d8%a7%d8%b6/]???? ????? ?????? ???????[/URL] ??? ?? ???? ??????? ????? ??? ??? ??????? ???? ???? ?? ??????? ?????? ??????? ??????? ???????? ??????? ? ??? ????.?? ????? ????? ??????? ????? ????? ??? ??????? ???? ???? ??? ??? ????? ?????? ????????? ????????? ??? ???? ??? ??? ??? ?????? ?? ??? ???????? ????? ?? ?? ???? ?? ????? ????? ??????? ?? ????? ??????? ???????? ???? ??????? ???? ? ?? ?? ??? ?? ???? [URL=http://hmamkingdom.com/%d8%b4%d8%b1%d9%83%d8%a9-%d8%aa%d9%86%d8%b8%d9%8a%d9%81-%d8%ae%d8%b2%d8%a7%d9%86%d8%a7%d8%aa-%d8%a8%d8%a7%d9%84%d8%b1%d9%8a%d8%a7%d8%b6/]????? ?????? ??????[/URL] ????? ??? ??? ???? ????? ????? ???? ?? ???? ????? ?? ???? ????? ?????? ? ?????? ? ??????? ?????? ? ??? ?? ??? ??? ?? ???? ???????? ??????? ??????
[URL=http://hmamkingdom.com/%d8%b4%d8%b1%d9%83%d8%a9-%d8%aa%d9%86%d8%b8%d9%8a%d9%81-%d8%ae%d8%b2%d8%a7%d9%86%d8%a7%d8%aa-%d8%a8%d8%a7%d9%84%d8%b1%d9%8a%d8%a7%d8%b6/]???? ????? ??????[/URL]
???? ??? ?????? ???????
? ??? ??? ???? ?? ?????? ??? ???? ????? ???? ?? ????? ??????? ?? ?????? ??????????? , ????? [URL=http://hmamkingdom.com/%d8%b4%d8%b1%d9%83%d8%a9-%d8%aa%d9%86%d8%b8%d9%8a%d9%81-%d8%ae%d8%b2%d8%a7%d9%86%d8%a7%d8%aa-%d8%a8%d8%a7%d9%84%d8%b1%d9%8a%d8%a7%d8%b6/]???? ???? ????? ?????? ???????[/URL] ?? ??????? ???????? ????? ????? ?????? ???? ????? ?????? ?? ????? ??????? ?? ????? ????????? ???????? , ???? ?? ?? [URL=http://hmamkingdom.com/%d8%b4%d8%b1%d9%83%d8%a9-%d8%aa%d9%86%d8%b8%d9%8a%d9%81-%d8%ae%d8%b2%d8%a7%d9%86%d8%a7%d8%aa-%d8%a8%d8%a7%d9%84%d8%b1%d9%8a%d8%a7%d8%b6/]????? ?????? ???????[/URL] ????? ????? ???? ???? ????? ??? ????????? ??????? ?????? ????????? ????? ???????? ??????? ??? ?? ???? ?????? ?? ?????? ?????? ?? ???????? ,
???? ??? ?????? ??????? ???? ??????? ?? ???? ???? ???? ??? ?? ??? ???? ?? ???? ????? , ??????? ?????? ??? ????? ??????? ??????? ?? ???? ????? ?? ????? ??????? ? ???? ???? ?? ?? ???? ????? ???? ??? ?????? ??????? ??? ????? ?????? ????? ??????? ????? ?? ???? ????? ??? ???? ????? ???? ????? ? ??? ????? ??? ??? ?? ??? ??????? ???? ????? ??????? ??? ??? ??????? ?? ???? ?? ??????? ?? ?????? ??? ????? ?? ??? ????????
?? ???? ????? ??? ????? ?????? ??? ???? ????? ????? ?? ??? ????? ?? ???????? ??? ???? ???? ???? ? ??? ????? ??? ??? ???????? ?? ?? ??? ??? ?????
???? ???????? ????? ???? ?? ??????? ??????? ????????..?? ??????..?????? ??????..????? ??????? ?????? ????? ?????? ?? ????? ?????? ??????? ???? ???????.. ????? ???????
[URL=http://de.bab.la/woerterbuch/englisch-deutsch/furnishings]furnishings[/URL]
[URL=https://data.gov.uk/data/search?q=dust%20solar]DUST SOLAR[/URL]
[URL=http://hmamkingdom.com/%d8%b4%d8%b1%d9%83%d8%a9-%d8%aa%d9%86%d8%b8%d9%8a%d9%81-%d8%ae%d8%b2%d8%a7%d9%86%d8%a7%d8%aa-%d8%a8%d8%a7%d9%84%d8%b1%d9%8a%d8%a7%d8%b6/]http://hmamkingdom.com/%d8%b4%d8%b1%d9%83%d8%a9-%d8%aa%d9%86%d8%b8%d9%8a%d9%81-%d8%ae%d8%b2%d8%a7%d9%86%d8%a7%d8%aa-%d8%a8%d8%a7%d9%84%d8%b1%d9%8a%d8%a7%d8%b6/[/URL]
July 31, 2016 02:28 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!

A good example of 2D animation is classic cartoons

Advertisement

Other Tutorials by nwp1993

nwp1993 has not posted any other tutorials. Encourage them to write more!
Advertisement