Language…
10 users online: AJ1Ayrton, GRIMMKIN, Hidincuzimsmokin, Klug, Nirv, Oskise, playagmes169, Rykon-V73,  Telinc1, Tsquare07 - Guests: 247 - Bots: 278
Users: 64,795 (2,375 active)
Latest user: mathew

tthehelp

Is there anything in Ram that is a flag for when a thwomp smashes or something like it?
(=´∀`)人(´∀`=)


I'm not sure, but I think this may be what you want:

Code
$7E:1887 | 1 byte | Timer | Time to shake ground


This address also uses these:
Code
$7E:1888 | 2 bytes | Misc. | Layer 1 Image Y position, used by RAM $7E1887 (Shake ground)

Code
$7E:188B | 1 byte | Misc. | Something related about Mario's Image Y position, used by RAM $7E1887 (Shake Ground)


Professional frame-by-frame time wizard. YouTube - Twitter - SMW Glitch List - SMW Randomizer
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

Return:


LDA.B #$01 ; \ Play sound effect
STA.W $1DFA ; /
RTS

Well, I don't know it it works, but I rip the code from All.log
RTS
Originally posted by undefinied3
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

Return:


LDA.B #$01 ; \ Play sound effect
STA.W $1DFA ; /
RTS

Well, I don't know it it works, but I rip the code from All.log
RTS

It didn't work for me.

Edit: Wait i think there's an object holding flag in there.
I don't get it.
(=´∀`)人(´∀`=)