Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Just a Question How can I make Tails Fly in Sonic 2 Rom Hack #68

Open
GamingUnleashed opened this issue Feb 7, 2025 · 1 comment
Open
Labels
help Help with using the disassembly.

Comments

@GamingUnleashed
Copy link

I wanna do port his flying code from sonic 3 & knuckles & port it to sonic 2 but i don't know where his flying code is & i don't know much about changing out stuff to make the code work in the game so I'm just wondering how i can port it over

@Clownacy
Copy link
Member

Clownacy commented Feb 7, 2025

I don't know where Tails' flying code is, but you might be able to find it by comparing the code of Tails' object from Sonic 2 and Sonic & Knuckles. Chances are that the flying code is in its own function, so there would be an extra bsr.w or jsr instruction that calls it.

To port the code would likely require dehardcoding things if they haven't been already, such as SST constants ($A(a0) to x_pos(a0) or something like that) or RAM labels (($FFFFFA23).w to (Camera_X_pos).w or something similar). Once that's done, the SST constants and RAM labels need to changed to their Sonic 2 versions. The Sonic 2 and Sonic & Knuckles disassemblies have similar naming schemes, but there are still some differences. Code labels and function names also need to be changed to their Sonic 2 equivalents.

Once that is all done, should be ready to insert into Sonic 2, calling it with bsr.w/jsr in the same place as it is in Sonic & Knuckles. You will also need to port the flying SFX, sprites, and animation.

@Clownacy Clownacy added the help Help with using the disassembly. label Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help Help with using the disassembly.
Projects
None yet
Development

No branches or pull requests

2 participants