Users browsing this thread: 1 Guest(s)
New patch: Banon Riding Glitch fix
Madsiur actually made a version of this for my hack a long time ago to allow Banon's sprite and the ghost also I think. I'm fairly sure he won't mind me posting it if it might help you out with yours:
I'm confident this was the final version of the code, it's the only one I can find in my asm files folder.
Code:
This code assume sprite 17 riding pose is at FF/2EE0 and sprite 20 at FF/5C40
funny at FF/3D20
EE/8943: 2000B0 JSR $B000 (Jump to empty space)
EE/B000: ADFB11 LDA $11FB (Sprite number for map character)
EE/B003: C911 CMP #$11 (Compare to sprite ID 17)
EE/B005: F005 BEQ $B00C
EE/B007: C914 CMP #$14 (Compare to sprite ID 20)
EE/B009: F012 BEQ $B01A
EE/B00B: 60 RTS (Return if not an exception)
EE/B00C: A960 LDA #$C0 (Low byte of sprite 17 offset)
EE/B00E: 856A STA $6A
EE/B010: A929 LDA #$3C (Middle byte of sprite 17 offset)
EE/B012: 856B STA $6B
EE/B014: A9FF LDA #$FF (High byte of sprite 17 offset)
EE/B016: 856C STA $6C
EE/B0XX AB PLB
EE/B0XX AB PLB
EE/B018: 4C8089 JMP $8980
EE/B01A: A980 LDA #$40 (Low byte of sprite 20 offset)
EE/B01C: 856A STA $6A
EE/B01E: A94B LDA #$5C (Middle byte of sprite 20 offset)
EE/B020: 856B STA $6B
EE/B022: A9FF LDA #$FF (High byte of sprite 20 offset)
EE/B024: 856C STA $6C
EE/B026: AB PLB
EE/B027: AB PLB
EE/B028: 4C8089 JMP $8980
I'm confident this was the final version of the code, it's the only one I can find in my asm files folder.
We are born, live, die and then do the same thing over again.
« Next Oldest | Next Newest »
|
||||
Users browsing this thread: 1 Guest(s)