Language…
9 users online: Aeon, dacin, DashGamer, DixyNL, GRIMMKIN, MegaSonic1999, Nemesis1407,  Segment1Zone2, toady - Guests: 237 - Bots: 345
Users: 64,795 (2,376 active)
Latest user: mathew

Help with Poison Mushroom ASM movement speed

Hey,

So i downloaded the poison mushroom sprite (Poison Mushroom, by imamelia (rewritten by kaizoman/thomas) and its working great! The question i have is regarding movement speed. I actually want a sprite that moves normally and a second one that doesnt move at all.

I tried putting the mushroom on a 1F0 tile but that didnt work.

I looked in the ASM and i found where it says XSpd = $10; how fast it moves horizontally

I tried changing the value to 80, as i read thats the middle point. I could be wrong on that.... I reinserted the sprite using PIXI and nothing changed...

Is there someone here that could point me in the right direction? Is there an easier way to get the sprite to just stand still and not move? or do i have the change the ASM?

Thanks so much!

Cheers!
$80 is not the middle point but rather is the smallest negative value. To prevent a sprite from moving, you just have to set it to $00 (the real middle point).

I assume you made a backup. In that case, make sure the CFG/JSON points to the correct ASM file. It's written in plain text on the CFG file and for JSON, it's under AsmFile.
I'm not sure if this is the same as the current version, but I've tested imamelia's poison mushroom a while ago and it's notably inaccurate with how SMW's mushrooms work, not sure why. (I just replaced 1-ups with poison in my hack instead...)
It's easily the best thing I've done
So why the empty numb?
I'll definitely try and change the speed value and see if that works. Thanks for the instruction

If that doesn't work... How do I go about replacing the 1 up with the poison mushroom? Do I just find the graphics file with the 1 up and replace it with the graphics of the poison mushroom? Will it still kill Mario if I do that?

I appreciate the help :)

Cheers!
Originally posted by Zeus1614
If that doesn't work... How do I go about replacing the 1 up with the poison mushroom? Do I just find the graphics file with the 1 up and replace it with the graphics of the poison mushroom? Will it still kill Mario if I do that?

Since you asked, I'll give you the instructions. Note that I only did this because my hack doesn't have lives, so I literally did not need the 1-up mushroom.

First, you cannot change the graphics without affecting the mushroom, since they're the same graphic with a different palette. So you'll want to change which graphic it uses. You could for example make it use the coin game cloud coin tile (the smiling thing), which is tile C2 in SP2, and replace that with a poison mushroom. This is a hex edit to remap the 1-up, you can change the tile number to whatever you like:

Code
org $01C60D : db $C2	;tilemap

Naturally, that only changed the tile, but it'll still give you a 1-up. This little patch makes it hurt instead:

Code
org $01C5FE
	JSL $00F5B7		;hijack the behavior to hurt
	BRA $04 : NOP #4	;delete nonsense

As a bonus: I made the first question block with a shell inside make a 1-up (now poison mushroom) come out of it instead. You can accomplish this with this hex edit:

Code
org $00F096 : db $0A

It's easily the best thing I've done
So why the empty numb?
You cannot place poison mushrooms in tile 1F0 to make them stationary, as they will slide when in contact with it. You might be better off putting them in solid blocks or doing what MFG suggested.
Windowless ride, feeling alive
Are you alive or just breathing?
Thanks to everyone that gave some insight, I really appreciate it!

I ended up changing the speed value in the asm. I forgot to mention that I did actually try to change it to 00 before I posted.

What I did not do however was change the CFG file. That's where you guys helped! I didn't know I had to edit the CFG file so it points at the correct ASM file.

Low and behold after I changed the files it worked perfectly!

Thank you guys very much!