Introduction

Day 1
GBA Hardware

Day 2
"Hello, World!"

Day 3
Input

Day 4
Backgrounds -
  Bitmapped Modes

Day 5
Sprites

Day 6
Backgrounds -
  Tile Modes

Day 7
Project 1 -
  Tetris

Quiz - Week 1

Day 8
Sprites #2 -
  Animation

Day 9
Maps

Day 10
Sprites #3 -
  Animation #2

Day 11
Backgrounds -
  Rotation

Day 12
Sprites #4 -
  Mosaic

Version History

Downloads

Books

Links

Graphics FAQ

GFX2GBA Readme

Games

Projects

Credits

Support

HAM Tutorial :: Day 10 :: Sprites #3 - Animation #2

 

Today's tutorial is very similar to Day 8, except that we will animate the plane image so that it looks like the propellor is spinning. I started out with the graphics from Day 8 and then manipulated them. You can see what I mean here. For the sake of saving time I decided that the plane will only move up, down, left or right and not in any diagonal direction.

One of the purposes of this tutorial is to give you a basic understanding of timers. Make sure that you understand the frames variable and how it is used to animate the propellor. You'll notice it's basically the same as vbl_count from Day 7. Also notice how animcnt is used - this is very important.

To convert the graphic, use the following:
gfx2gba -fsrc -m -pbackground.pal -t8 water.bmp

Again, the sprite will not be in a tile/map format, so type: