News:

Don't forget to visit the main site! There's lots of helpful docs, patches, and more!

Main Menu

[SM]How to make Items disappear ?

Started by JoshShoeWah, December 06, 2017, 01:14:24 PM

Previous topic - Next topic

JoshShoeWah

I am wanting to make a room with 2 items in it. I want one of them to disappear after you collect one of them. This would force you to decide between 2 upgrades. How would I get started on this? Thank you!

Jordan5

I'm not sure this is possible (at least, without some serious work). Even if both the items have the same index, the second item will only disappear after you leave and re-enter the room. If you could force them to go through a door transition after collecting one item then it would work.

Quietus

You could also design the room to force the player into separate paths, so they can't grab both.

Moehr

Using V-copy and H-copy blocks beneath the item, you can have a crumble block that is alongside each item with bts 05 delete the PLM you didn't grab. Like so:

SASSASSSS
C1SC2SSHH
SHSSHSSVV
SSSSSSSSS

where S are solid blocks, A are Air tiles, C are crumble with BTS 05, H and V are H-copy and V-copy which lead out from the crumble blocks. 1 and 2 are the PLM. When samus grabs PLM 1 she will land on a H-copy that will trigger the crumble block next to PLM 2. PLM 2 will get overwritten with blank space.

If you want to make the choice permanent, and both items are equipment upgrades, give them the same PLM ID.

My hack does something similar, with branching paths in a single room coupled with identical PLM IDs for each of the four upgrades you are forced to choose between.

Similarly you can use air-shot, air-bomb, shot, bomb, and crumble tiles with a BTS value of 01,02,03 or 05,06,07 to overwrite other blocks adjacent to them to make switches that clear PLM away or open up passages. It's sort of the same principle that door bubbles work on.

JoshShoeWah

Thank you so much! This looks to be exactly what I am looking for. I'm going to try it tomorrow when I start working on it again.

Right now I have the items on top of door blocks that bring you to the previous room so when you try to re enter you do not get the other item.  It works but I can't seem to get the door to work perfectly.  it spawns you in the middle of the room and off camera. Although when you move the camera snaps back to you. Not terrible but not ideal or polished.

Thanks again for the suggestions.