Banner
Views: 934,190,095
Time:
21 users online: aaa, Aeon, Ahrion, ArtieLiu, dirty, Enan63, Fellipe R, HammerBrother, isaix, katun24, Knucklesfan, Ondore's Lies,  quietmason, RAFAEL_M_C_, Ralshi02, SCP-96, Shuttles, Skewer, solgaleo35, The Central Scrutinizer, WhiteYoshiEgg - Guests: 69 - Bots: 168 Users: 52,116 (2,118 active)
Latest: lincade
Tip: If you're using the wall-running purple triangles in your hack, remember to add Tile 1EB (or a tile that acts like Tile 1EB) underneath it. Extended object 44/45 will include this tile for you.
Not logged in.
Disable P2's spinjump
Forum Index - SMW Hacking - SMW Hacking Help - ASM & Related Topics - Disable P2's spinjump
Pages: « 1 » Link
I want disable Player 2's spin jump. I created this patch first;

Code
header
lorom
	org $00D645
	db $60


Which disabled both players spinjump. But i needed it for just player 2 so I tried this;

Code
header
lorom

	LDA $0DB3					;\ Check for the current
	CMP #$00					;| player, if it is Luigi.
	BNE dontdoshit				;/ Otherwise return.
	org $00D645
	db $60
	
	BNE dontdoshit:


Which didn't work at all. Is there a better way to do this?
You're doing it all wrong because:
1.- You can't hex edit an area based on an event. It'll always change.
2.- BNE dontdoshit: is wrong, just put dontdoshit:
also
3.- You can just omit the CMP #$00, it'll work fine.
4.- You're doing nothing if Player 2 is in play, and you want the patch to do otherwhise.

Try this, untested because lazy:
Code
	org $00D645
		autoclean JSL spinjump1P

freecode


spinjump1P:
	LDA $0DB3	;\ if Mario, return
	BEQ -		;/
	LDA.W $148F	;\
 	INC A		; | restore old code (luigi)
	STA.W $140D	;/ 
-	RTL


hope i did nothing wrong like i always do lol


e: today i learned asm

..or not, but my code doesn't work lel
You... can't exactly do what you're doing in the second codebit.

That first bit of code needs some ROM space too.

Try this instead:

Code
org $00D645
autoclean JML JCena
freecode
JCena:
LDY $0DB3
BNE +
INC A
STA $140D
JML $00D649
+
JML $00D7A4


and Erik, your code doesn't even assemble :V
Whoa, I was way off...

Thanks for the code Medic. It worked just fine. Now I'll dissect this and learn from it.
Pages: « 1 » Link
Forum Index - SMW Hacking - SMW Hacking Help - ASM & Related Topics - Disable P2's spinjump

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2021 - SMW Central
Legal Information - Privacy Policy - Link To Us


Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

  • Super Mario Bros. X Community
  • ROMhacking.net
  • Mario Fan Games Galaxy
  • sm64romhacks