gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Beginners > Graphics Animation...How-To?

#77467 - geebeehey - Sat Apr 01, 2006 3:16 am

Hi guys! I've just downloaded HAM and VHAM, made a simple Hello World, put some gfx...well, followed the Aaron Rogers tutorial... But as you should know, that's not enough. I searched the whole web for some other HAM tutos, but everything I found talks about DevKitAdvance... Anyway, I got a question: Everybody here knows that animations are just various sprites being displayed in a fast speed, so that we think they're moving. But in order to do that in HAM... There are any functions that makes this proccess easier? Or I'll need to write my own function? If yes, maybe somebody can send me an example?

Thx a lot,
GeeBeeHey !

---3D1T---

Ah, I almost forgot! If someone send me more tutos, I will be grateful.
See ya!

#77496 - gauauu - Sat Apr 01, 2006 10:10 am

There's lots of ways of doing it. I talked about one method I've used in this thread

#78174 - thegamefreak0134 - Wed Apr 05, 2006 7:48 pm

There are two ways that I use.

(1) Keep all frames in tilemem and then update the OAM pointers to animate. Usefull if you need to use a bunch of "characters" with the same frameset.

(2) Reserve an area of the tileset for the character, then update that area with the new frames of animation. It works well if you need to have lots of characters with lots of different frames. Plus, it's just as easy and fast as the other, provided you arent using huge sprites, and even then the speed tradeoff isn't that much.
_________________
What if the hokey-pokey really is what it's all about?

[url=http:/www.darknovagames.com/index.php?action=recruit&clanid=1]Support Zeta on DarkNova![/url]