Using X to remove picture from screen.

In the beginning of the game, I want there to be a piece of paper that the character can look at for the keyboard controls. I made a picture and want to overlay it over the screen, and then have the player be able to exit out when pressing X.

Untitled_zpsb866a935.png


Now the "X Button" conditional branch is probably horribly wrong but I have honestly not been able to find ANYWHERE a good tutorial or even an explanation on the keyboard controls for RPGM (if you know of one please PLEASE link me it's getting so frustrating).

But of course, this just makes the character open their inventory.

Also, I want the player to be able to do this same thing from their inventory since they will be taking the paper with them as well. I'm guessing I'll use a common event for that with these same event commands. Buuuut gotta get it figured out first.

Help please!
With that coding, you would need really fast typing reflexes - the conditional branch checks if the button is pressed in that millisecond where it's executed, and if not it continues to the next command.

Better way (if you aren't set on using the X button) would be to make a transparent, empty show text after the show picture (which means that the program will wait until the player confirms that invisible text over the picture), and then erase picture after the show text - no conditional branch needed.

The "exit event processing" commands are also not neccessary, because the event would end after those branches anyway...
It works, thank you!

However, um, does anyone know how to make it so that when you open up an item, you can bypass the box where you choose which character to use it on?
Actually "is pressed" means that the key is held down even if it was pressed a while ago. But thats besides the point.

What you can do is actually nest that conditional branch inside a loop command. It will play the loop over and over until the button is pressed. You may need to drop a 1 frame wait into the loop as well to cut down on lag. Dunno, I forget how optimized events were in Ace. Oh, and in this case you'd need either exit event processing or exit loop commands to be on the conditional branch, but I see you already have the former.
Change the item to None instead of 1 Ally or whatever it is, and you shouldn't get the choice of who to use it on.

Original thread: https://forums.rpgmakerweb.com/threads/using-x-to-remove-picture-from-screen.17461/