News:

Don't forget to visit the main site! There's lots of helpful docs, patches, and more!

Main Menu

[SM] [ASM] Problem with wall-jump

Started by Surt, November 29, 2021, 09:47:54 PM

Previous topic - Next topic

Surt

I'm trying too make a patch that lets you wall-jump with speed booster, but it only work's with spin-jump if i hold the jump button while space and screw work fine.
I've tried modifying the pose definitions but that doesn't work it just breaks space and makes the camera stutter?
I think the pose definition is the cause but I might have missed something.

If it only fixes the speed boost wall-jump problem that's fine, but I'd like to fix regular wall-jumping to make it work more like space and screw wall-jumps.

any help would be great, thanks in advance!
My Speed Booster wall-jump code in-case it is at fault.
Lorom

org $90E5E9
JMP $90F63E

org $90F63E

LDA $0A6E : CMP #$0001 : BNE ++
LDA $0A1C : LDX #$0000
- CMP Pose_T,x : BNE +
LDA $0B02 : BIT $0001 : BNE FlpR : STZ $0B02 : BRA FlpL
+ INX : CPX #$0083 : BNE -
++ BRL END
FlpR:
LDA $8F : BIT $09B4 : BNE +
BRL SkipHijack
+ LDA #$0084
BRL SetSpeed
FlpL:
LDA $8F : BIT $09B4 : BNE +
BRL SkipHijack
+ LDA #$0083
SetSpeed:
STA $0A28
LDA #$0007 : STA $0B42
SkipHijack:
PLP
RTS
END:
JSR $91DE53
STZ $0B42 
STZ $0B44 
STZ $0B46 
STZ $0B48 
STZ $0B4A 
PLP       

RTS

Pose_T:
DW #$19,#$1A
DW #$1B,#$1C
DW #$81,#$82
DW #$83,#$84

I'm still learning so any advice would be great :^_^:

Surt

took longer than expected but i found a fix for Wall-jump.

;Simple change to the code so regular Wall-jumps are more in-line with Space & Screw Wall-jumps.


Lorom

org $918332
DB $02,$01,$01,$00,$06,$02,$08,$02,$01,$06,$02,$02,$02,$06,$02,$02,$02,$06,$06,$06,$00,$02,$06,$02,$02,$02,$02,$02

way simpler than I thought.