Closed PiKeyAr closed 5 years ago
I agree, it looks really weird when Sonic goes through the door and suddenly the game changes the .PAL file in one frame before the screen fades to black.
The call to change the time of day in that scene is at 0x6304B6. I added a workaround in my mod to delay the setting of the time of day until after the act ID has changed. While not a universal solution, it works for me and the issue doesn't bother me anymore. Perhaps this can be closed?
Does this happen in any other instances throughout the game? It might be that we ought to find a better location to hook pallet loading for time of day changes. That said, I like the idea that one could potentially change the time of day mid-gameplay via mod and have the correct pallets automatically loaded.
I think it's the only time in the entire game where the immediate palette switch is noticeable.
Here's an idea: keep the immediate palette switch possible, but make it fade from one set of palettes to another instead of abruptly switching between them, possibly with the fade timer configurable via the API. If the default fade timer is something around 10 seconds, it won't even be noticeable in the problematic cutscene.
This is just a minor aesthetic thing, but it would be nice if the transition to night when Sonic gets his first upgrade in the sewers was delayed by a few frames so that you don't see the lighting change as you approach the door.
I don't know how exactly you're handling palette application in this case, but I was thinking if something like the following could be done: