Making image disappear when pressing any button

mellanny

I have no idea what I'm doing
Veteran
Joined
May 4, 2020
Messages
30
Reaction score
13
First Language
Portuguese
Primarily Uses
RMMV
Hey :kaoluv:

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

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.
 

fluffymonster

She's So FLUFFY!
Veteran
Joined
May 23, 2020
Messages
155
Reaction score
193
First Language
English
Primarily Uses
RMMV
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.
 
Last edited:

mellanny

I have no idea what I'm doing
Veteran
Joined
May 4, 2020
Messages
30
Reaction score
13
First Language
Portuguese
Primarily Uses
RMMV
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!
 

cradth

:)
Veteran
Joined
Feb 13, 2016
Messages
225
Reaction score
121
First Language
Indonesia
Primarily Uses
N/A
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. :)
 

fluffymonster

She's So FLUFFY!
Veteran
Joined
May 23, 2020
Messages
155
Reaction score
193
First Language
English
Primarily Uses
RMMV
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. :kaoluv:
 

standardplayer

Keeper of Kitties
Veteran
Joined
Apr 6, 2016
Messages
621
Reaction score
2,778
First Language
English
Primarily Uses
N/A
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.
 
Last edited:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Okay someone really needs to fix that broken railing, its a health hazard...

I'm starting to wonder if I should go the Half Minute Hero route with my game. The character's main weapon is logistically way too strong. So I can't really let the player continuously grow it.... But if they had to build it up each time like HMH, that could work. Also it lets me take advantage of my randomly generated maps so much more. Hmm... This could work! :LZSexcite:
std::vector, std::map and std::string. Three reasons why I'd take C++ over C. :D

Forum statistics

Threads
99,203
Messages
963,003
Members
130,791
Latest member
xericho
Top