Language…
16 users online: 1UPdudes, astreboo, Cappaque, famicat, Flipipu, ideronme, Josuke Yoshikage,  JupiHornet, metronia, mizounimax, nicecarlos024, nospaulatu, Saela, Sixcorby, TruffledToad, Zachsuperdude - Guests: 457 - Bots: 131
Users: 70,870 (2,308 active)
Latest user: famicat

Blocking a Passage using GPS

Someone can help me in a code, that I thinking about how can I "lock" a passage for Mario from a block, when Mario pass at a side of a block. Like: I'm playing a game, and I put a block where the player cannot pass if him is already passed this block in the first side (from the left side, for example). See an example:

Code
db $37

rep 3 : JMP Start
rep 7 : JMP Return
JMP Start : JMP Start


Start:
	LDA $7B			; \ If the player is not facing left...
	BPL Return		; / Return. Else,...
	LDA $72			; \ ...if the player is not in air...
	BEQ MakeSolid		; | ...act as 130.
	LDA #$20		; | Else, set speed to #$20.
	STA $7B			; /
	LDA #$08		; \ Número do efeito sonoro em hex.
	STA $1DFC		; / Escolha qual banco você quer.
	RTL
MakeSolid:
	LDA #$30		; Act as 130.
	STA $1693|!addr
	LDY #$01
Return:
	RTL

print "Um bloco de teste."


I'm making a block, and I need someone to help me please to I end this block and share (if other people wants to download this asm).


If you're just trying to make "one-way" blocks, then these might be what you're looking for.

Professional frame-by-frame time wizard. YouTube - Bluesky - SMW Glitch List - SMW Randomizer
Originally posted by Thomas
If you're just trying to make "one-way" blocks, then these might be what you're looking for.


OMG! THANKS! I did not saw this block, really! Lmao #tb{^V^}