Making image disappear when pressing any button

mellanny

I have no idea what I'm doing
Veteran
Joined
May 4, 2020
Messages
89
Reaction score
33
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
207
Reaction score
364
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
89
Reaction score
33
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
232
Reaction score
133
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
207
Reaction score
364
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
698
Reaction score
3,451
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

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,049
Messages
1,018,546
Members
137,835
Latest member
yetisteven
Top