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
194
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
194
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,779
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

have another character sheet! ill probably add some more details before i make my thread for this project
Every time the official RMWeb account makes a post, I think it's @Eliaquim writing it!

It's driving me crazy, but it's also wonderfully hilarious.
// Looks at Elfkisser, realizes he'd have to either install Windows 10 or compile it for Linux
// Didn't install Elfkisser.
Too much effort for a curiosity. :popcorn:
I was just high-fiving myself for all I've learnt in the engine, and how far I've come, only to forget to remove the Immortal state from a semi-scripted battle. Now the enemy never dies and I feel so smart >.>
Playtest your stuff. Always playtest.

Forum statistics

Threads
99,224
Messages
963,226
Members
130,813
Latest member
Gremter
Top