- 13
- Posts
- 8
- Years
- Seen Sep 12, 2019
Not sure if I've expressed what I'm trying to do correctly in the title, so here's the scenario -
I'm looking into how running shoes work as I want to modify how the player's overworld frames are loaded. There's a value at 0x2037078 that changes depending on how the player is moving. When the player is stood still or walking it's set to 0x1 and when they're running (specifically when the B button is held and the player is moving) it's set to 0x81. I'm trying to change how this works, so that the player doesn't need to be moving and just needs to hold B to set this value to 0x81 and be "running". The end goal here is to replace the player's running frames with them riding a bicycle and have them appear on the bicycle whenever B is held, rather than when B and a directional button is held.
To get back to the point, I'm trying to find the routine that sets 0x2037078 to 0x81 so I can modify it. I've got VBA-SDL-H open but can't cause it to break when it's equal to 0x81, it just breaks as soon as the emulator starts again (I'm assuming because it's constantly being set to 0x1 when the player isn't running). I'm quite new to ASM and I thought this seemed like a simple beginner project, apologies if I'm missing something obvious here. Thank you!
I'm looking into how running shoes work as I want to modify how the player's overworld frames are loaded. There's a value at 0x2037078 that changes depending on how the player is moving. When the player is stood still or walking it's set to 0x1 and when they're running (specifically when the B button is held and the player is moving) it's set to 0x81. I'm trying to change how this works, so that the player doesn't need to be moving and just needs to hold B to set this value to 0x81 and be "running". The end goal here is to replace the player's running frames with them riding a bicycle and have them appear on the bicycle whenever B is held, rather than when B and a directional button is held.
To get back to the point, I'm trying to find the routine that sets 0x2037078 to 0x81 so I can modify it. I've got VBA-SDL-H open but can't cause it to break when it's equal to 0x81, it just breaks as soon as the emulator starts again (I'm assuming because it's constantly being set to 0x1 when the player isn't running). I'm quite new to ASM and I thought this seemed like a simple beginner project, apologies if I'm missing something obvious here. Thank you!
Last edited: