So, I want to make New Hacker's 5-Up block disappear after it has been taken from a level - just like how the Yoshi Coins disappear after you've got them all from the level.
I mean, I can't have people get easy lives by going back and forth in the level just to grab the 5-Up again and again.
Ninja Boy Forum Moderator, Discord Moderator, and Public Relations
Posts: 1873/5520
Since:
Location: Keeping it weird
Correct answers: 30
Last seen: 10 hours, 10 minutes and 29 seconds ago
Well you'll need to use object tool to do that and just because the title bugged me a little thats not making a sprite disappear but make a block disappear.
Well you'll need to use object tool to do that and just because the title bugged me a little thats not making a sprite disappear but make a block disappear.
Oh sorry about that!
And...I don't get Object Tool. I don't have any ASM knowledge, is there any other way to make this?
Yes. You can convert the block to a sprite instead and only have the main sprite code run if a specific SRAM bit is set. Of course, you need to set that bit once the sprite is collected. I think the Yoshi Coin sprite does something like that.
The simplest thing I can think of is changing the byte in the Moon's code to generate 5-up instead of 3, because moons use flags in RAM to prevent you from collecting them more than once.
From ROM map:
$02ADDB is how many lives 3up Moons give you.
If I'm not mistaken, and you can live without Moons, then you can just change this byte to $05 and change the "3UP" tiles in the GFX file (GFX00) to get 5-ups that behave correctly. This way all moons act like 5-up objects.
Ninja Boy Forum Moderator, Discord Moderator, and Public Relations
Posts: 1879/5520
Since:
Location: Keeping it weird
Correct answers: 30
Last seen: 10 hours, 10 minutes and 29 seconds ago
The simplest thing I can think of is changing the byte in the Moon's code to generate 5-up instead of 3, because moons use flags in RAM to prevent you from collecting them more than once.
From ROM map:
$02ADDB is how many lives 3up Moons give you.
If I'm not mistaken, and you can live without Moons, then you can just change this byte to $05 and change the "3UP" tiles in the GFX file (GFX00) to get 5-ups that behave correctly. This way all moons act like 5-up objects.
That would work except the 5-up will be glitched but I'm not sure if anyone has bothered to fix that or not yet.
That would work except the 5-up will be glitched but I'm not sure if anyone has bothered to fix that or not yet.
You mean the score sprite, right? I thought that when the 5-up item 'hijacks' the index of the 3-up score, it would also use the 3-up score sprite tile. In that case you only need to edit the tile, but you can indeed no longer get 3-ups period.
Ninja Boy Forum Moderator, Discord Moderator, and Public Relations
Posts: 1880/5520
Since:
Location: Keeping it weird
Correct answers: 30
Last seen: 10 hours, 10 minutes and 29 seconds ago
no if you change the hex for the 3up moon it will use the 5up score sprite. Also I'm not exactly how the graphics are set up for it and you could get 3-ups but only if you make a custom sprite or block that pulls the correct values.
Ezel Green Yoshi
Posts: 1187/3671
Since:
Location: Poland
I'm not sure but isn't there a 5-up icon fix in the patch section? I think I saw something like that a few weeks ago. I think it would be easier than messing with the ROM Map.
Ramp202 Alpha Kretin X
Posts: 1717/1725
Since:
Location: Bonnyville, AB
Wait, wouldn't it be better to duplicate the Moon code and tweak that to so that it give 5 lives instead of three, so I can have both the Moon and a 5-Up?
Ninja Boy Forum Moderator, Discord Moderator, and Public Relations
Posts: 1881/5520
Since:
Location: Keeping it weird
Correct answers: 30
Last seen: 10 hours, 10 minutes and 29 seconds ago
Well I mean I could easily make a block that pops up the correct score sprite but it would need either object tool or the conditional map16 thing still.
Follow Us On