Making a map item

Hi. So I plan to make an item, so that when the player uses the map item a map will show up. And so far that works fine. However, I don't know how to make it go away once it has appeared.


I'm using a "show picture" and "erase picture" command. I want to make it disappear by pressing a button, and I have put in the command that does that. But it won't work for some reason...

Does anyone have any idea?
 

Rpgscreenie2.png

Rpgscreenie1.png

Rpgscreenie3.png
It isn't repeatedly checking if you press the "C" button, it's checking it as soon as the switch is on and only once.


You need the bit in the 2nd conditional branch to loop.
It isn't repeatedly checking if you press the "C" button, it's checking it as soon as the switch is on and only once.


You need the bit in the 2nd conditional branch to loop.

I tried this, and the image wouldn't load at all and the game froze. Did I do this correctly? Rpgscreenie4.png
Hmm... I dunno but I can't see anything wrong, I may be missing something... Looks about right though.


WAIT!! HANG ON!! I think as well as turning the switch off, you need to break the loop with the event command called "Break Loop" or something like that.

Hmm.. thatdidn't work either.. I figured out that making the second part of the common event a separate common event on parallel process, worked. But thank you for your help. 🙂
Don't use conditional branch - the best way is much simpler


Simply place an empty show text with an invisible background between the show picture and the erase picture


show picture


show (empty) text


erase picture


The invisible show text will cause the program to wait for confirmation by action button before erasing.

Original thread: https://forums.rpgmakerweb.com/threads/making-a-map-item.60512/