PDA

View Full Version : More fun with MegaMan 1


Eli
05-07-2005, 07:33 PM
Alright, this time things are a little easier. I know exactly where the sprite I want to make change to is stored, but I now want to; instead of inserting a new tile, just move an existing one within the sprite. For example, if "t" stands for the sprite tiles and T is the particular one I want to change, then,

... t t
.T t t t
... t t t

<P ID="signature"></P>

Vagla
05-08-2005, 12:25 AM
Change the sprite frame pattern data I mentioned in the other thread. There are 2 bytes per tile, telling the game where each tile is in relation to the sprite's onscreen coordinates. They're usually a multiple of 4 and tend to be between F0 and 10. Add to the values to move the tiles downward or rightward, and subtract for upward or leftward (for yy coordinates and xx coordinates, respectively). Good luck.

<P ID="signature"></P>

Eli
05-08-2005, 08:26 AM
I knew I had to change something in the sprite frame pattern data, but I didn't know exactly what. Thanks. I'm actually starting to understand all this. And by the way, they're reversed? Why do they always tend to reverse the bytes?<P ID="edit"><FONT class="small">Edited by Eli on 05/08/05 03:28 AM.</FONT></P>

Vagla
05-08-2005, 09:25 AM
> I knew I had to change something in the sprite frame
> pattern data, but I didn't know exactly what. Thanks. I'm
> actually starting to understand all this. And by the way,
> they're reversed? Why do they always tend to reverse the
> bytes?

What do you mean, exactly? Like, y coordinate first, then x coordinate? If that's the case (I don't know since I haven't messed with the data for a long time and honestly don't feel like looking right now), then that's just how they set it up, I guess. Pointers, though, are reversed (little endian, I think it's called) because they can be processed faster that way.

<P ID="signature"></P>

Eli
05-08-2005, 06:53 PM
> What do you mean, exactly? Like, y coordinate first, then x
> coordinate?

>Pointers, though, are reversed (little endian,
> I think it's called) because they can be processed faster
> that way.

Yes, and yeah, I believe that's the name as well.

<P ID="signature"></P>