Language…
17 users online:  Ahrion, Batata Douce, BlueSheep123, crocodileman94,  Deeke, Gamet2004, Golden Yoshi, Green, Hidincuzimsmokin, masl, NewPointless, playagmes169, ppp9q,  Ringo, sinseiga, sugarfish456, TheXander - Guests: 279 - Bots: 281
Users: 64,795 (2,376 active)
Latest user: mathew

How to check if a block has been hit from below in Uberasm

I am trying to use Peach's floating ability and I want to run a check that disables the float if the player hits a block from below. Only thing I can find is mariobelow for blocks. I need it to disable whenever the player hits any block from below and I can't seem to figure out how to do this.
Trust the Fungus.
I think what you are looking for is the address $77 that checks if the player is blocked in a certain direction.

Code
main:

	LDA $77		; Player blocked status - Used to check if player is blocked in a certain direction. Format: SxxMUDLR
	AND #$08	; Only check for ceilings
	BNE .onCeiling
	;Not on ceiling. Do nothing
	RTL

.onCeiling
	;Player is touching the ceiling. Cancel float

.Return
	RTL


However I´m not sure how your floating ability works. You would have to implement that yourself.
That did the trick. Thanks a lot
Trust the Fungus.