thanks.
EDit: does it act like a flag? will 00 or 01 work?
Edit2:
I want to make mario spin jump when the thwomp hits the ground Im using levelasm and its not working.
Code
LDA $7E1887
CMP #$20
BEQ go
RTS
go:
LDA #$01
STA $7E140D
RTS
What's wrong with that?(=´∀`)人(´∀`=)
Well, firstly, these RAMs are only timers for shake the ground. If you want to check if the twomp hits the ground, try this:
-Don't put sprites that shake the ground except twomps...
LDA $1887
BNE DoCode
RTL
DoCode:
LDA #$01
STA $140D
RTL
I relly don't know if it works, but try it!
Sorry by the grammar errors, I don't speak english too good
It doesn't work, it just crashes the game.
Edit: nevermind. The game crashed because you used RTL not RTS. But it still doesn't do anything.(=´∀`)人(´∀`=)
Originally posted by undefinied3
Well, firstly, these RAMs are only timers for shake the ground. If you want to check if the twomp hits the ground, try this:
-Don't put sprites that shake the ground except twomps...
LDA $1887
BNE DoCode
RTL
DoCode:
LDA #$01
STA $140D
RTL
I relly don't know if it works, but try it!
Sorry by the grammar errors, I don't speak english too good
That wont let mario spinjump.
This will.
Code
LDA $1887
BNE DoCode
RTL
DoCode:
LDA #$01
STA $140D
LDA #$80
STA $15
RTS
Um, with levelasm you should use RTS, not RTL!
Originally posted by UMA
Code
LDA $1887
BNE DoCode
RTL
DoCode:
LDA #$01
STA $140D
LDA #$80
STA $15
RTS
That crashed the game.
Edit: oh wait you put an RTL too... aaaand it doesn't work.(=´∀`)人(´∀`=)
Ok, let's do a hard thing..
LDA $1887
BNE DoCode
RTS
DoCode:
LDA.W $148F
BNE Return
INC A
STA.W RAM_IsSpinJump
LDA.B #$04 ; \ Play sound effect
STA.W $1DFC ; /
RTS