This patch makes the line guide processsing routine use the "acts like" setting instead of the Map16 number. This makes it possible to use ExGFX for line guides without worrying about where the tiles are in the Map16 pages.
-----
worldpeace's note:
The vanilla code of line guide interaction sometimes tries to restore the sprite's position from backup RAM, even if they aren't properly stored. This results in teleportation of line-guided sprites. (Like other vanilla glitches, this has been regarded as a feature and utilized for vanilla tricks!)
The previous version assumed the correctness of Nintendo's code however, and accessed some invalid "acts like" values as a result. It caused game freezing in some emulators (e.g. higan v092); for those who're interested, the patch got the map16 value outside of the level area and repeated a loop infinitely.
My version fixes the freezing issue, as well as giving some extra option regarding behaviors of line guide. You can choose the frequency of odd behaviors, which are the following:
1) Map16 tiles in the page 1 (or acting like one) work as "line guide end".
2) Those tiles let line-guided sprites teleport to certain position.
(These behaviors have already existed, and can be rarely observed in vanilla; only when the line-guided sprite is at a specific position which is decided by the map16 page of interacting tiles.)
This seems to work well but it doesn't allow for switching between 'act as' via, for example, on/off switches. I think this patch would be greatly improved by including this functionality if possible.
I think custom line-guides would be better off as a separate patch.
This seems to work well but it doesn't allow for switching between 'act as' via, for example, on/off switches. I think this patch would be greatly improved by including this functionality if possible.
Follow Us On