Hello everyone. I have recently been trying to make an event where there is a sign on the wall of a restaurant in one of my cities (so basically, a restaurant menu). Once you click that sign, a picture will appear which is a menu. Then you click it once again to erase the picture. The problem I'm having with this at the moment is that while the picture is still up. You are able to move around. I don't want the character to be able to move while you're looking at the menu. Only when you click it a second time to remove the picture from your screen. I have not been able to figure this out, so I ask. What is the best way to do this sort of event? Thank you for your support.
Make it an autorun event.
How so? Autorun events will just freeze my game.
Well, if all you want to do is prevent the player from moving, then you can do a loop with a Player Wait right after like so:
@>Show Picture
@>Loop
@>Set Move Route: Player
: :$>Wait: 4 frame(s)
@>Conditional Branch: The C Button is being pressed
@>Break Loop
@>
: Branch End
@>Wait: 4 frame(s)
@>
: Repeat Above
@>Erase Picture
It's untested, but I assume that would work. You might have to lower the number of wait frames.
NB: All of that would be on one page in the event where you select the menu.
Ok, well, it sort of works. Only one thing about this code is not working right. I don't understand why this is. But it only displays the picture if I rapidly spam the action button... It confuses me as to why this is happening.
Oh, yeah sorry - that's my fault - put some wait frames between the start of the loop and the Show Picture command - maybe like 20 frames or so.
Thank you so much man, you rock. It works perfectly now. ;)