Snes9x diagonal movement Patch#
This was because the patch only considered the low byte of the player's Y-pos within the screen. By the way, the patch also had an issue related to going offscreen from above which led to weird behavior, preventing the player to move horizontally like if they were below the screen. Tested with Asar v1.71, SNES9x v1.58, in a normal ROM.ĭeprecated by this uberASM code. Since i don't like wasting like 20 bytes of freespace for such a small patch, i decided to use a Empty part of the rom for this patch so it does not require freespace whatsoever. What it does is if mario is at the bottom of the screen, it'll make his X Speed be 00 and either hurt or kill him. Lastly, touching sides of solid sprites don't actually kill mario, unlike normal wall tiles.Īlso, not necessary, but I have a suggestion for proper diagonal movement, pressing both Up and Right for example'll make mario move Up-right instead of ether up or right depending on which check is first.īasically like the sprite version but in patch version. You probably want to check for gamemode value. And combined makes for glitchy animation. Give Credit!Ĥ-23-2019: Updated for Asar, and SA-1 compatibility.Īlso I noticed Mario on OW border also takes spaceship inputs into account, pressing right or left makes him move as normal, pressing up will make him always look up. This one will allow you to move in all directions, and you will die if you touch the ground or a wall. of 53 - Movement Behavior Overhaul - posted in File topics: In response to post 83940363. > Asar v1.71 also complains about a print syntax, refusing to insert the patch: Handle diagonal input as special case No Use POV switches Yes (the Threshold for input is if your controller is too sensitive) Now go back to tab 1) or 'Joysticks There should be a bunch of added axis. > Setting !EnableYoshi to 0 gives an error in Asar and so the patch ends up not being inserted. Tested with Asar v1.71, SNES9x v1.58, higan v093, in both normal and SA-1 ROMs. Now Yoshi has proper priority depending on whether he's on land on water, and tile priority is assigned with active->inactive instead of Mario->Luigi, which fixes a lot of oddities.ĭoesn't include graphics for player 2, the bin is just the default Mario. This patch is an overhaul of the C3 version, which was really buggy. Requires freespace, though it also frees more than 1000 bytes in bank 4 for whatever you want. It also adds the functionality of adding separate graphics for Luigi.
Snes9x diagonal movement code#
This patch rewrites the entirety of the code that handles the drawing of the player's/Yoshi's sprite in the overworld, making them dynamic sprites. Tl dr: This patch allows you to have separate graphics for Luigi in the overworld.