Note: This is probably the furthest you can probably do in regards to adding custom stuff to the battles without issues coming up. I'm not stopping anyone from trying something like this for their projects... Just know there is a lot work involved with this. As usual the decompile is a must.
Anyways, How well would Isaac actually fare against a powerful enemy without Garet, Ivan, and Mia backing him up? That's something I wanted to explore with a secret final boss I've been working on.
For now, I'm simply referring to her as "???".
The encounter is meant to test whether Isaac is worth the trouble. Before the fight begins, she immobilizes Garet, Ivan, and Mia, forcing Isaac into a 1v1. I repurposed the Colosso code to make this possible which ai assistance was needed.. (Just to be clear, this is an experimental project. I'm not going to get into back-and-forth arguments about AI usage. I'm only sharing what I've been working on.)
One thing I wanted to show is how much the original four Adepts depend on each other. Each character has strengths and weaknesses that the others help make up for. Isaac might be powerful, but when he's separated from his party, fighting becomes much more difficult. I wanted the player to experience that rather than simply face another difficult boss.
For her attacks, I decided to avoid Psynergy entirely. She has eight unique moves: Götterkanone, EX Götterkanone, Ransnetz, Explosion, P-Vortex, Gleipnir, EX Sternbrecher, and P-Storm. None can be sealed, and each has its own battle animation, including homing beams, beams, a vortex, and bolts raining down.
I also added a second phase inspired by Dark Souls bosses. At first, she's holding back because she's only testing Isaac. But as the fight goes on, she starts taking him more seriously and stops holding back as much. Her attacks become more dangerous, and the arena changes to reflect this. The purple sky gradually gives way to crimson clouds, making it clear that the fight has entered a different stage. P-Storm also becomes available once she's below half HP.
I wanted the second phase to feel like a natural escalation rather than just giving her more health.
I've also been experimenting with her idle animation during this phase. Her blue energy pulses, and I've added afterimages that appear on either side of her. They move back toward her and gradually disappear before the next pulse.
Getting the afterimages working was a bit of a headache.
The GBA has a special layer that Golden Sun uses for attack animations, but that isn't available when a character is standing idle. Since I wanted the afterimages to appear while she wasn't attacking, I had to find another way.
Golden Sun rebuilds its sprite list every frame. What I ended up doing was copying the information the game already uses to draw her sprite and shifting those copies slightly to the left and right.
Since the copies use her existing graphics, they also show whatever pose she's currently in. That includes her moving hair and cape, her colors, and the blue energy flashes. I didn't have to load any additional sprite graphics into video memory.
The afterimages follow the timing of her energy pulse. The first pulse creates a pair close to her, while the second creates another pair farther away. They move back toward her until they disappear.
Of course, I ran into another problem.
I originally told the game to hide the copies whenever a character was being highlighted because I didn't want them interfering with the highlight effect. I assumed that only happened when selecting targets.
Turns out Golden Sun also highlights the active party member the entire time you're choosing commands, which is pretty much most of the time the boss is standing idle.
So the afterimages were being switched off almost constantly.
To fix this, I changed the routine so the copies could appear during command selection too. I also had to stop using the GBA's blending effect to make them transparent because the game's highlighting was already using those settings.
Instead, I went with flickering, which is a fairly common trick on the GBA. The copies are drawn every other frame, making them look partly transparent. As they move back toward her, they're only drawn once every four frames before disappearing.
It works without interfering with anything else on screen.
The afterimages are also disabled during her attacks and the phase transition itself, so they don't interfere with those animations either.
Another thing I discovered while working on her sprite is that you can safely use up to eight animation frames for idle poses.
That's actually quite a lot to work with.
As you can see with her hair and cape, I used those frames to make them move as though wind is constantly blowing against her. Rather than having her stand completely still, her hair and clothing are always moving.
I wanted to mention this because anyone experimenting with custom sprites could get pretty dramatic with their idle animations using eight frames. There's a lot more you can do with them than I originally thought.
Between the idle frames, blue energy pulses, and afterimages, I think this is about as far as I can push things before the game starts refusing to cooperate.
For her appearance, I repurposed a sprite of a character I'm personally familiar with and redrew it to somewhat fit Golden Sun's style. Between redrawing the character, creating all eight attack animations, and figuring out the idle effects, this was easily one of the most time-consuming things I've worked on.
I also made a custom arena with a steel platform, pulsing crimson lights, and twinkling stars. The background changes during her second phase, and I've spent quite a bit of time getting the colors and effects working together.
I know the recomp is working on something similar later, so it'll be interesting to see how his version turns out.
There's still some balancing and polishing left, but I'm happy with the progress so far. I don't think there is anything else I could now for custom battles. So i'll be moving to other things.