Language…
12 users online:  Anorakun, bradcomp, DanMario24YT, DasFueller, DimeR, GRIMMKIN,  idol, Metal-Yoshi94,  Shoujo, signature_steve, SMW Magic, steelsburg - Guests: 300 - Bots: 420
Users: 64,795 (2,373 active)
Latest user: mathew

How to make a block Unrespawn after taken (Sorry, not SOLVED)

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.
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.
Originally posted by ninja boy
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.
Alternatively alternatively you can use the conditional map16 in lunar magic, but that also requires ASM.
@Iceguy: I don't know how to do that...


...Sigh...I knew this day would come.

TUTORIALS, HERE I COME!
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.
Originally posted by Diortem
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.
Quote

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.
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.
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.
Yes, there is a 5-up fix that was made by Zeldara109 about 2 months ago
I change my layout every 4-5 months
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?
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.