[PokeEmerald] A Personal Fix for the 16x16 doors anim tutorial
Just a personal & unproven discovery which posted here for anyone that needs it. Although I don't know whether it is WRONG or NOT until NOW. So please forgive my ignorance.
So, Several days ago, I accidentally found there was something wrong with the
"16x16 door animation tutorial" (which enables PokeEmerald itself to display the 16x16 doors animations from PokeFirered) for the updated PokeEmerald, which was distributed here long time ago.
The Original Tutorial is here for anyone not knowing what I'm talking about
:
https://github.com/scizz/darkfire/commit/b666ad85d3e22ac134fd24ce0bfe84f0e1e4a773
Well, I did nothing but just copied the original lines provided by that tutorial. And here is a picture of what had happened: When a single door was open or closed, only 1/4 of its original animation graphic was shown properly. And, moreover, the other part became glitchly pixels, for sure
I had checked the code over and over again, and made sure there was no mistake in my copy & paste process. And the animation of my newly added door was nothing but a graphic file grabbed directly & straightly from the original PokeFirered.
Luckily, I was happened to be lucky enough to find one possible solution. For anyone interested in it, here it is:
First, after implementing the codes from the tutorial, jump to the function named
"CopyDoorTilesToVram", and change the lines below:
From:
to:
Then, add one completely new definition before that function itself:
Here is a picture of what it looked like after being fixed:
And that's pretty much of it, I wonder whether anyone here trying port the door animation of FRLG has met the same problem. Also, if there is anything wrong, please forgive my ignorance & leave a message to me.
Thanks.