I'm thinking about creating a hack starring peach as my main character. I have all the GFX I need (thanks Ladida) and the overworld finished. But, I'm trying to make peach float like in SMB2, is there any way I can do this? And also, I tried to tweak the flutter jump patch in the patches section to make it so that peach doesn't float down and stays up in the air, as if glding. Am I taking a step in the right direction or am I doing something wrong. Currently, Peach stays in the air and never falls, here is the code:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;Flutter Jump
;;By Scepile3
;;
;;Notes:
;;*I use the RAM Addresses $0660 (For Flutter Jump Indicator)
;;
;;*Whenever I add another bulk of asm, it freezes at the intro
;;If you know why, please inform me.
;;
;;Original code from:
;; LR Hook - Version 1.1
;; By Smallhacker
;;
;; Disables L/R and prepares them to be used for other stuff
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
org $34B64 ;;change this to free space in rom
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
macro RATS_start(id)
db "STAR"
dw RATS_Endcode-RATS_Startcode
dw RATS_Endcode-RATS_Startcode^#$FFFF
RATS_Startcode:
endmacro
macro RATS_end(id)
RATS_Endcode:
endmacro
lorom
header
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;Disable L/R scrolling
org $34B64
org $00CDF6
BRA lrSkip
org $00CE49
lrSkip:
;Hijack the status bar routine
org $008F49
JSL NewRoutine
org $34B64
%RATS_start(0)
NewRoutine:
LDA $77 ;Doesn't work if not in air, carrying things, swimming, on yoshi, or spin jumping
AND #$04
BNE Reset
LDA $1470
BNE Reset
LDA $148F
BNE Reset
LDA $140D
BNE Reset
LDA $75
BNE Reset
LDA $187A
BNE Reset
LDA $0660
BEQ Check
LDA $0660
CMP #$02
BEQ Stand
LDA #$05
STA $13E0
INC $0660
BRA Slow
Slow:
LDA $7D
CMP #$80
BCS Return
LDA #$00 ;Slows descent
STA $7D
BRA Return
Check:
LDA $16
CMP #$80
BNE Return
LDA #$01 ;Change to alter flutter jump's height
STA $7D
INC $0660
BRA Return
Stand:
LDA #$04
STA $13E0
DEC $0660
BRA Slow
Reset:
STZ $0660
BRA Return
Return:
LDA $0DBE
INC A
RTL
%RATS_end(0)
I don't know any ASM. I'm hoping someone could help me, which is why I posted it here. I posted it before in the Basic hacking section but no one replied, so, I thought that you guys might be able to solve my dilemma. I want to make it so that peach falls after floating in about a second or two. Isn't there a code that can make this possible? If so, please reply with what I need.
Thank you for reading!
- "The phrase "You Rock" is commonly associated with awesome people. Created in the late 1980's, it was originally a derogatory mark for someone who listened to rock. Now, It means that someone is awesome."
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;Flutter Jump
;;By Scepile3
;;
;;Notes:
;;*I use the RAM Addresses $0660 (For Flutter Jump Indicator)
;;
;;*Whenever I add another bulk of asm, it freezes at the intro
;;If you know why, please inform me.
;;
;;Original code from:
;; LR Hook - Version 1.1
;; By Smallhacker
;;
;; Disables L/R and prepares them to be used for other stuff
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
org $34B64 ;;change this to free space in rom
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
macro RATS_start(id)
db "STAR"
dw RATS_Endcode-RATS_Startcode
dw RATS_Endcode-RATS_Startcode^#$FFFF
RATS_Startcode:
endmacro
macro RATS_end(id)
RATS_Endcode:
endmacro
lorom
header
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;Disable L/R scrolling
org $34B64
org $00CDF6
BRA lrSkip
org $00CE49
lrSkip:
;Hijack the status bar routine
org $008F49
JSL NewRoutine
org $34B64
%RATS_start(0)
NewRoutine:
LDA $77 ;Doesn't work if not in air, carrying things, swimming, on yoshi, or spin jumping
AND #$04
BNE Reset
LDA $1470
BNE Reset
LDA $148F
BNE Reset
LDA $140D
BNE Reset
LDA $75
BNE Reset
LDA $187A
BNE Reset
LDA $0660
BEQ Check
LDA $0660
CMP #$02
BEQ Stand
LDA #$05
STA $13E0
INC $0660
BRA Slow
Slow:
LDA $7D
CMP #$80
BCS Return
LDA #$00 ;Slows descent
STA $7D
BRA Return
Check:
LDA $16
CMP #$80
BNE Return
LDA #$01 ;Change to alter flutter jump's height
STA $7D
INC $0660
BRA Return
Stand:
LDA #$04
STA $13E0
DEC $0660
BRA Slow
Reset:
STZ $0660
BRA Return
Return:
LDA $0DBE
INC A
RTL
%RATS_end(0)
I don't know any ASM. I'm hoping someone could help me, which is why I posted it here. I posted it before in the Basic hacking section but no one replied, so, I thought that you guys might be able to solve my dilemma. I want to make it so that peach falls after floating in about a second or two. Isn't there a code that can make this possible? If so, please reply with what I need.
Thank you for reading!
- "The phrase "You Rock" is commonly associated with awesome people. Created in the late 1980's, it was originally a derogatory mark for someone who listened to rock. Now, It means that someone is awesome."