Making picture disappear with button press

Crimsonsquall

Warper
Member
Joined
Aug 29, 2018
Messages
4
Reaction score
0
First Language
English
Primarily Uses
RMMV
Hi everyone,

I'm pretty new, and have been trying to figure out how to do this for awhile now. I'm sure it's simple, but the solution has thus far eluded me. I have an event that is activated with a button press, and then I show a picture. I want the picture to disappear with another button press, so people can have it up there for as long (or as short) a time as they want.

As it is now, I have the picture showing for 800 frames, and then the event moving forward, which works, but is not ideal. Is there a way I can have the event unfold exactly the same way, but instead of waiting, have the picture disappear with a button press?

Thank you so much for any advice!

event.JPG
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
15,351
Reaction score
8,532
First Language
English
Primarily Uses
RMMV
Try taking out the wait 800 frames, and in it's place put an empty text box. Set the background to transparent. Then all that will show is the small triangle at the bottom of the text message, prompting the player to push a key.
 

Crimsonsquall

Warper
Member
Joined
Aug 29, 2018
Messages
4
Reaction score
0
First Language
English
Primarily Uses
RMMV
This is such an elegant solution...I can't thank you enough. It's perfect for what I'm doing. I'd be curious if there are any other ways, just for anyone else looking.
Thank you!
 

Aloe Guvner

Walrus
Veteran
Joined
Sep 28, 2017
Messages
1,628
Reaction score
1,115
First Language
English
Primarily Uses
RMMV
If you're curious for other ways:

If the player isn't able to move in between, another solution would be to replace the wait:800 with turning on a self switch, and move the remaining commands to another event page conditioned by that self switch and triggered by the action button.
Thus the next time the player clicks the action button, the picture disappears and the rest of the event plays.

Or if the player would be allowed to move, turn on a switch that conditions a parallel common event, where the common event has a Conditional Branch checking if the action button was pressed. If so, it does the rest of the event.

However, I prefer mlogan's solution much more than those two methods because it's simpler and gives the player an indication that the game is waiting for their input. This was just to satisfy your curiosity.
 

Crimsonsquall

Warper
Member
Joined
Aug 29, 2018
Messages
4
Reaction score
0
First Language
English
Primarily Uses
RMMV
If you're curious for other ways:

If the player isn't able to move in between, another solution would be to replace the wait:800 with turning on a self switch, and move the remaining commands to another event page conditioned by that self switch and triggered by the action button.
Thus the next time the player clicks the action button, the picture disappears and the rest of the event plays.

Or if the player would be allowed to move, turn on a switch that conditions a parallel common event, where the common event has a Conditional Branch checking if the action button was pressed. If so, it does the rest of the event.

However, I prefer mlogan's solution much more than those two methods because it's simpler and gives the player an indication that the game is waiting for their input. This was just to satisfy your curiosity.
Awesome, that is really helpful. I appreciate all the expertise!
 

Crimsonsquall

Warper
Member
Joined
Aug 29, 2018
Messages
4
Reaction score
0
First Language
English
Primarily Uses
RMMV
Try taking out the wait 800 frames, and in it's place put an empty text box. Set the background to transparent. Then all that will show is the small triangle at the bottom of the text message, prompting the player to push a key.
This is such an elegant solution...I can't thank you enough. It's perfect for what I'm doing. I'd be curious if there are any other ways, just for anyone else looking.
Thank you!
 

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

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,981
Members
137,563
Latest member
cexojow
Top