Problem with showing an image pressing a key?

● ARCHIVED · READ-ONLY
Started by Omega023 7 posts View original ↗
  1. Hello everybody, I hope you can help me with this problem... The issue is simple: I want to make appear an image in the game with an event, that event will make that the image appear when I press a key... Well, After that, I want to make it disappear pressing a key again, and keep this event working forever... for example, I want to create a map on the wall, you can view that map every times you want...

    Any ideas? Thanks everybody for the reading.
  2. Just to clarify... You are basically just trying to set up a hotkey to display and put away the map?
  3. More or less, mi intention is activate the event of the image with a key, and deactivate it pressing one more time a key,

    There is a way, putting a local switch and create a new page making the image disappear, but in that way, the event won't appear again...
  4. You can use a conditional branch to make the image appear when a certain button is pressed, but that will also make the image disappear as soon as the button is released instead of when the button is pressed a second time.

    You set the condition to the button press, the effect to the "Show Picture" and the "Else" effect to "Erase Picture".
  5. @Cadh20000 Frick, I never thought of that! All this time, I was making two pages in the event - one for button press, one for button release - and using a switch to go between the two. You're a genius! All hail if-else statements!
  6. Lol! Have fun and do your best!
  7. You can also have it disappear by using an empty "show text" command, like in my map example here:

     

    TG-rpgmaker-world-map.PNG