In this section, we will learn how to animate our character Bob.
You might have noticed that when we move Bob, he does not appear to be walking. He just slides on the screen. To create a realistic walking effect, we need to animate our character. Animation is just a sequence of images shown one after the other at regular intervals. This creates an illusion of a continuous motion.
Alright, so let's get started. First, we will need the sequence of images. We will use a single image that consists of all these images. This is called a sprite sheet. I have already acquired the sprite sheet for our character, which looks similar to this:
The image contains the different walk stages of Bob. Each stage or each image of Bob ...