Making image disappear when pressing any button

Hey 😍

I feel this is a stupid question, but I can't make it work 😐

My player can get an item (a labyrinth map) and I'd like it to pop up an image whenever the item is used, and make the image disappear when they press any other button (walk, cancel, enter etc). The imagem appearing is working, but how do I make it disappear? I tried conditional branches (if button [whatever] is pressed), but it made the image disappear right after appearing.
Hmm, I dunno about a "press any button" prompt, but you can make Z and X work with a dialogue box (set it to transparent and keep it on the button) or a condition branch for movement. Not sure.
I'm not sure if I understood what you meant, but it worked!
I put a "show message" transparent bow after the show image command, and a "delete image" after that. Thank you very much!
Just like fluffymonster saying, you can try to make a dialogue box,
in between "show picture" and "erase picture".

Make these steps on the common event :

Show Picture #1 -> Your picture
Show Text... (Do not write any text, leave it empty)
Erase Picture #1

Hope this solve your problem. 🙂
I'm not sure if I understood what you meant, but it worked!
I put a "show message" transparent bow after the show image command, and a "delete image" after that. Thank you very much!
Yup, that's what I was referring to. It's the easiest way I know of to do it. Glad I could help. 😍
In a script call, you can put

if(Input._latestButton != null) $gameScreen.erasePicture(id)

If you prefer mostly event commands, you can put:

Input._latestButton != null

In the script box of a conditional branch.
Then erase the picture of your choice with the regular command.

Original thread: https://forums.rpgmakerweb.com/threads/making-image-disappear-when-pressing-any-button.122276/