Pictures Either Don't Go Away or Never Show Up

EDIT:
0picturehelp3.png


I apologize for cropping the image, I guess I somehow missed the required reading prior to making my first post. Thank you to everyone who commented. Removing the conditional branch and the waits and replacing it with empty text boxes made it so I can now easily cycle through images during NPC dialogue.

Original Post:
I'm really struggling with the Picture function in RPG Maker MV
I've looked at a couple tutorials and followed them exactly but it does not seem to work for me.
What I would like is an event where: You are shown a picture, your press ok, you are shown a different picture, you press ok, the pictures go off the screen

However, if I do this when you engage with the NPC they just flicker and nothing happens. I also tried doing it as Picture-Loop-Press Ok-Break Loop and that has the same issue.
If I just put the event as "show picture" the picture just stays on the screen and never leaves.
What am I doing wrong? Thank you all so much
0picturehelp.png
The reason nothing seemed to happen with the NPC is that you activated it with the OK button and then your event started running and your finger was still holding the OK button for a small instant which caused the erase picture to run.

You could make a 'show text' event command after the show picture that has transparent background and no text in it. (and even then you might want to put a small wait time after the show picture)

If you just want to show a new picture instead of the old, you don't need to erase the old one, you can just show another picture with the same picture id 1.
The reason nothing seemed to happen with the NPC is that you activated it with the OK button and then your event started running and your finger was still holding the OK button for a small instant which caused the erase picture to run.

You could make a 'show text' event command after the show picture that has transparent background and no text in it. (and even then you might want to put a small wait time after the show picture)

If you just want to show a new picture instead of the old, you don't need to erase the old one, you can just show another picture with the same picture id 1.
Thank you very much for your reply.
I tried adding a wait feature.
Now the sequence of events is- action trigger NPC
1st picture appears, press OK, next picture appears,
the two pictures flash back and forth (without me pressing anything)
after a few times, the second picture remains on screen and doesn't go away, even after ending npc encounter.

0picturehelp2.png
10 frames is 1/6 of a second if you are lucky. So you told it to flash the picture on screen like that.

You should post the entire event, not just the cropped out parts. But there is a better way to do this. What I do is:

Show first picture, put a text box on screen. Can be empty even, just enough to pause everything. Then show second picture, put another text box on screen. Then Do all erases after that box. That way you are not at the mercy of how fast (or slow) a player presses the buttons.

The issue is yes you will have a text box on screen though. But you can probably use it in some way to make it all relevant. Or worst case you make the box transparent, which will look like this:

IATCO_Zoe_Bio.png

The bottom of that is the show text box with transparent text. And if you edit the windowskin you can change that cursor to something else too if you want!
First things first: don't crop the screenshot of the event. Also please review this required reading before posting, it will help a lot in getting your issue solved.


You may want to review the button triggers, as I suspect you want "Triggered" and not "Pressed".
1738032098245.png


You are also reusing the same picture number for both pictures. I can't tell if this is intentional or not. As you may be able to tell from @bgillisp 's reply, there are more roads that lead to Rome, but please share your event page so that it becomes clearer what you're trying to do.
You may want to review the button triggers, as I suspect you want "Triggered" and not "Pressed".
Given that this is MV support, I am suspecting they use MV, in which case, the editor's UI does not provide a button type option.
Instead isTriggered must be called via a script call.

MZ Master Race, MV peon 😢
Given that this is MV support, I am suspecting they use MV, in which case, the editor's UI does not provide a button type option.
I had no idea! Thanks for correcting!
Thank you very much for your reply.
I tried adding a wait feature.
...

Don't put the wait inside the conditional that checks the button press. Put it after the show picture, before you start checking for button input (and use a longer wait time).
Also, like I and others suggested, you can do it with the empty and transparent 'show text'.

edit: and actually to even do it with the check for input you need to put it in a loop, because if you talk with npc who is on 'action button trigger', it just runs the event through and then it's over.
if you use parallel, this can give trouble,
if you use action button (same thing),
player touch could work.

in case you use action button, you need a "loop and break loop".
break loop when you press OK button. (or on autorun event if it is)!

if you use action button, you might to look into HIME_EventTriggerLabels
or in Eliaquim Extra Triggers (he got a MV pack which is free)

so you need to combine them and whatever button you press, it activate
the label, so you need to do it nicely and correctly (dont use wait when not needed).
10 frames is 1/6 of a second if you are lucky. So you told it to flash the picture on screen like that.

You should post the entire event, not just the cropped out parts. But there is a better way to do this. What I do is:

Show first picture, put a text box on screen. Can be empty even, just enough to pause everything. Then show second picture, put another text box on screen. Then Do all erases after that box. That way you are not at the mercy of how fast (or slow) a player presses the buttons.

The issue is yes you will have a text box on screen though. But you can probably use it in some way to make it all relevant. Or worst case you make the box transparent, which will look like this:

View attachment 329990
The bottom of that is the show text box with transparent text. And if you edit the windowskin you can change that cursor to something else too if you want!
Thank you. I did this and it is working much more smoothly.

Original thread: https://forums.rpgmakerweb.com/threads/pictures-either-dont-go-away-or-never-show-up.174972/