Language…
9 users online: Firstnamebutt, masl, netyo, playagmes169, pnaha, qantuum,  Ringo, tOaO, Zavok - Guests: 258 - Bots: 463
Users: 64,795 (2,378 active)
Latest user: mathew

Question about ASM/Hex edditing.

Hey y'all

So I have a quick question about ASM or possibly HEX editing. I have 2 levels in my hack so far that have the floating skulls platform. The first level is a pretty chill level, but I kind of want to ramp of the difficulty on the second level by making the platforms move faster than the stock speed which I used in the first level.

What would be the best way to do this?

I see that there is a disassembly for this sprite in the sprite section. I downloaded it and had a look inside the asm file and I do see a X/Y speed value that i can change. If i insert that asm into my hack will it only affect the "custom" sprite I insert, or will it affect the stock speed of the platforms hack wide?

The disassembly does not come with a GFX file so im assuming i can use the GFX file that the skull is in?

Also I want to thank everyone who has helped me out in the past few months! You guys and gals are awesome!

Cheers!
Originally posted by Zeus1614
I see that there is a disassembly for this sprite in the sprite section. I downloaded it and had a look inside the asm file and I do see a X/Y speed value that i can change. If i insert that asm into my hack will it only affect the "custom" sprite I insert, or will it affect the stock speed of the platforms hack wide?

Nope, only the custom one. Custom sprites are separate entities from the original sprites and they never affect each other. A disassembly is merely a reconstruction of an original sprite that you can modify more easily.

Quote
The disassembly does not come with a GFX file so im assuming i can use the GFX file that the skull is in?

Yes, it is made to use the same graphics as the original sprite.
It's easily the best thing I've done
So why the empty numb?
Thanks for the clarity Koopster,

I actually have one more quick question about changing values in the ASM file.

Inside the Floating skull ASM file theres a list of values right at the top that all start with !RAM_

The one value I'm trying to change is !RAM_SpriteSpeedX = !B6 to make the skulls move faster when Mario jumps on the platform. The problem i am having is whenever i change the !B6 to anything else and try to reinsert the ASM file i get an error saying whatever value i changed !B6 to is not found. What am I doing wrong?

I have another custom sprite that I changed the movement speed and I had no issues.

Any help would be greatly appreciated

Cheers!
Oh no, do not change that. That's a RAM address, not a value.

It appears that the implementation of x speed in this sprite is not that straightforward. Look for these lines

Code
	LDA $18BC|!Base2				; use sprite trigger to determin x speed
	STA !RAM_SpriteSpeedX,x			;

and replace them with something like

Code
	LDA $18BC|!Base2				; use sprite trigger to determin x speed
	BEQ +
	LDA #$10
+	STA !RAM_SpriteSpeedX,x			;

I haven't tested it, but if my quick evaluation is correct, the red value should be the x speed. For reference, the original value is #$0C.
It's easily the best thing I've done
So why the empty numb?