Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2013-06-02 11:58:34

Frezgle
Member
Registered: 2011-05-30
Post 16/23

Ho-Oh's title screen animation script?

I'm editing the title screen for my hack, and this is what I have so far:

iaza17574347704100.png
And I'm pretty happy with it! Nice, simple, static bobbing animation. Well, happy except for the frames where chunks of it are missing...
iaza17574344891700.png

Now, I understand that these disappearing/reappearing chunks are due to the nature of the original animation, with Ho-Oh flapping its wings. The problem is, it's not as simple as just putting the right pixels in those blank areas, because there are no blank areas left in that set of tiles. I can only assume that the game is loading and unloading tiles in a certain manner to create the animation, which I don't want. I want to keep it static, yet still bobbing up and down slightly.

With all that said, does anyone know where Ho-Oh's animation script is stored, and how it works? If I can figure out where it is and how to read it, I can probably figure out how to change it to do what I want, but I'm missing that first key step.

On a somewhat related note, this happens for a split second between the title screen and the New Game/Continue screen:

iaza17574365561200.png

It's part of Reshiram's sprite, but as to why it's decided to fill up the screen, I have no idea!

Offline

#2 2013-06-02 15:28:16

YORAMRW
Member
From: The Netherlands
Registered: 2013-03-29
Post 300/1,194
Website

Re: Ho-Oh's title screen animation script?

Where have you got the tutorial to edit the bird.


Hacks Gameboy 8-bit music in Pokémon Gen I & II, composes 8-bit music in FamiTracker

Offline

#3 2013-06-02 15:55:23

Frezgle
Member
Registered: 2011-05-30
Post 17/23

Re: Ho-Oh's title screen animation script?

There wasn't a specific tutorial anywhere, I just found the location for Ho-Oh's tiles, exported them with AGIXP, and spent several hours of trial and error editing them and shoving them back in the ROM to test. My first post is where I'm officially stuck.

Offline

#4 2013-06-02 22:22:09

Tauwasser
Member
Registered: 2010-10-16
Post 395/447

Re: Ho-Oh's title screen animation script?

The tile filling the screen is because tile 0x7F is designated as a clear tile and is used to clear the screen. You put part of your animation there.

The tile animation is in ROM bank 0x23. There are a bunch of tables there that determine the animation type, animation frames, wait states and so on. Basically, put a breakpoint to table accesses at 23:5C00 and look for your data. IIRC, it's either at the very beginning.
23:5C00 format is [#animation][#frames+x/y flip] until FC, FD, FE or FF are hit as #animation. FC is delete sprite, FD is delay #frames, FE is restart, FF is end.
23:5DBF is the animation table; format. [base tile#][2b pnt to animation data]
Animation data format: [#tiles] #tiles * ([rel Y][rel X][rel tile#][palette])

cYa,

Tauwasser

Offline

#5 2013-06-03 16:21:17

Frezgle
Member
Registered: 2011-05-30
Post 18/23

Re: Ho-Oh's title screen animation script?

I'm not sure what you mean by "put a breakpoint"; is there some specific program that does this? I'm just using a hex editor.

Offline

#6 2013-06-03 17:12:45

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 2,542/3,465

Re: Ho-Oh's title screen animation script?

He's talking about using BGB's debugger while you are emulating the game.

Offline

#7 2013-06-03 20:32:58

Frezgle
Member
Registered: 2011-05-30
Post 19/23

Re: Ho-Oh's title screen animation script?

...Is there a tutorial on how to use BGB's debugger? Two hours of trying to figure it out myself, and I feel somewhat more lost than when I started.
Basically, I added an access breakpoint to 23:5C00 like suggested, but that doesn't seem to do anything or get me anywhere. The debugger likes to jump back to where the green cursor is, which I cannot for the life of me figure out how to move, or even if moving it is necessary in the first place. The closest thing I've found to looking helpful is the OAM viewer, but I'm still at a loss as what to actually do with the information it shows. Can someone explain in simple terms?

Offline

Board footer

Powered by FluxBB