Map item

So, I want to make an item that will display a picture of a map that i've created and remove it when the action button is pressed.
I tired doing this
And??? You generally need to say what happens and how it's different to what you expect to happen.

And when you show a screenshot of your event, please include the whole event window. Here, I can't see if it's a map event or a common event, and if it's a common event I can't see the trigger. Those things are important when trying to figure out why something won't work.


In this case I can tell you ... you display the image, wait for 1 second, then check to see if the button is pressed. If the player presses the button exactly one second after the image is displayed, it'll work. But if they press it after one second, or press and release it before one second, then at the time you do the check (one second after displaying), the button won't be pressed.

You either need to put the check for button press into a loop that has a Wait 1 frame before the conditional branch, so it continues checking for a button press, or use the message system to pause until the player presses the button. To do it this way, display the image, do a Show Text command with no text, a transparent background, and set to bottom. Then erase the image. It will then display the image, show a message that the player won't see, apart from the tiny arrow at the bottom of the screen, and when they press enter the message, and the image, will go away.
Common Event...?
And??? You generally need to say what happens and how it's different to what you expect to happen.

And when you show a screenshot of your event, please include the whole event window. Here, I can't see if it's a map event or a common event, and if it's a common event I can't see the trigger. Those things are important when trying to figure out why something won't work.


In this case I can tell you ... you display the image, wait for 1 second, then check to see if the button is pressed. If the player presses the button exactly one second after the image is displayed, it'll work. But if they press it after one second, or press and release it before one second, then at the time you do the check (one second after displaying), the button won't be pressed.

You either need to put the check for button press into a loop that has a Wait 1 frame before the conditional branch, so it continues checking for a button press, or use the message system to pause until the player presses the button. To do it this way, display the image, do a Show Text command with no text, a transparent background, and set to bottom. Then erase the image. It will then display the image, show a message that the player won't see, apart from the tiny arrow at the bottom of the screen, and when they press enter the message, and the image, will go away.

I apologize for how I made this thread, I was tired and wasnt thinking. I did mean a common event that is triggered by using an item. I did as you said and put a loop, but after the picture is erased it locks my characters movement
Can you please show us a full screenshot of the common event? Your loop is probably not set up correctly. My guess is that you didn't put in the Wait, or you're not exiting properly.
Can you please show us a full screenshot of the common event? Your loop is probably not set up correctly. My guess is that you didn't put in the Wait, or you're not exiting properly.
there is no exit to the loop, that is why it freezes everything.
However, there is another way to do what you want that is much simpler

show picture
show text (no text, background set to invisible)
erase picture

the computer will wait until you confirmed the invisible message, no need for a loop
Erase Event only has meaning on map events, or common events called by map events. Yours is neither, so that command is doing nothing.

Instead, remove the Erase Event command, and put a Break Loop (or Exit Loop) command AFTER the Erase Picture command.

Original thread: https://forums.rpgmakerweb.com/threads/map-item.103816/