Users browsing this thread: 1 Guest(s)
Help with animation frame data

#4
Posts: 21
Threads: 10
Thanks Received: 14
Thanks Given: 6
Joined: Dec 2018
Reputation: 4
Status
Sneak
(04-26-2024, 02:00 AM)C-Dude Wrote: This is going to sound incredibly stupid, but how does the Tile Formation get converted into a 16x16 tile for use in the frame?  I can't seem to find any information on this anywhere, and the hex values aren't any help either.

For instance, at the aforementioned D20940 we have 64 bytes...
19 03 1A 03 1B 03 1C 03 15 00 1D 03 1E 03 1F 03
20 03 21 03 22 03 23 03 24 03 25 03 26 03 15 00
27 03 28 03 29 03 2A 03 2B 03 2C 03 15 00 15 00
2D 03 2E 03 15 00 15 00 15 00 2F 03 30 03 15 00

This is the tile formation $25, the one associated with the Flail as expressed in the first post.  How does Block ID 0x0C translate into that first 16x16 tile in the picture, the one that makes up the handle of the flail in the very first frame?
As far as I can tell, that handle is formed using the 8x8 tiles 33 03, 34 03, 3B 03, and 33 C3.  But... I don't see those four lining up in this tile formation.  The numbers are somewhat close to each other BEYOND the tile formation, but not within the 64 bytes allotted to it.  Moreover, even with their actual presence at D20990, D20992, D209B0, and D209B2, there's a 32 byte gap and there doesn't seem to be any correlation to that 0x0C that the frame data declares is its Block ID.  How the heck does this work?

If I understant your question correctly:

Tile formation entries works like this:

00 00 00 00 01 01 01 01 02 02 02 02 03 03 03 03
04 04 04 04 05 05 05 05 06 06 06 06 07 07 07 07
00 00 00 00 01 01 01 01 02 02 02 02 03 03 03 03
04 04 04 04 05 05 05 05 06 06 06 06 07 07 07 07


Tile $00 is formed by the first 4 bytes of the first line and the third line.
Tile $01 is formed by the next 4 bytes of the first line and the third line, and so on.

Tile $04 is formed by the first 4 bytes of the second and fourth lines.

I hope the colors help you, lol

Also, another important thing is that even if an animation uses tile formation $21, for example, it can still access tiles from the formation $22 an onwards. It can access those tiles using the indexes of $08 and above. I think it can access tiles up to $3F, but I haven't tested this specifically.
  Find
Quote  
[-] The following 1 user says Thank You to tomilho for this post:
  • C-Dude (04-26-2024)



Messages In This Thread
Help with animation frame data - by tomilho - 01-31-2024, 04:09 AM
RE: Help with animation frame data - by C-Dude - 04-26-2024, 02:00 AM
RE: Help with animation frame data - by tomilho - 04-26-2024, 11:02 AM
RE: Help with animation frame data - by C-Dude - 04-26-2024, 02:58 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite