I'm developing a new patch that allows you to have controls on other things without affecting mario (meaning making controls exclusive to non-mario things, rather than clearing the controller RAM).
Here is the patch.
However, when having the disable flags set to #%00001011 (binary, left, right, and up disabled), the player can simply press up to look up. Mario's appearence will shift 1 pixel up and look up. I don't see why this happens. Can anyone help me?
Edit, found the solution, the A register is still used after the hijack for the code both looking up and the walking animation, therefore, I made it load #$00 into A, and JML to a branch to check the controller.
Give thanks to RPG hacker for working on Asar.
Here is the patch.
However, when having the disable flags set to #%00001011 (binary, left, right, and up disabled), the player can simply press up to look up. Mario's appearence will shift 1 pixel up and look up. I don't see why this happens. Can anyone help me?
Edit, found the solution, the A register is still used after the hijack for the code both looking up and the walking animation, therefore, I made it load #$00 into A, and JML to a branch to check the controller.
Give thanks to RPG hacker for working on Asar.