Help - Search - Members - Calendar
Full Version: [XP/VX/VXA] Waiting until Button Input
RPG RPG Revolution Forums > Scripting > Event Emporium > Eventing Tutorials
PK8
This is probably one of those rare moments where I actually write a tutorial. It's something I just learned about, and I consider myself to be a bit terrible at explaining things but I hope it helps. (And I'm going to assume you're familiar with some of RPG Maker's event commands.)

With this tutorial, I hope to teach you how to create your own Wait Until Button Input. This is probably useful should you want to pause your evented cutscene and then let the player know to keep going by pressing a particular button or two.

1. Create an Event.
We will start off by creating a new event.
Screen Shot


And it's blank.
Screen Shot


2. Set up the loop.
Alright, in all seriousness, let's get started. First, you want to create a loop. Let's look for it.
Screen Shot


Click it, and it gets placed into the Contents box. So far so good.
Screen Shot


3. Make a Wait Command.
Next up, you'll want to place a Wait Command inside the loop in order to prevent your game from completely choking.
Screen Shot


Now you should set up the wait frames. You could choose a small number. I prefer 1 (unless the game gets intensely laggy for me).
Screen Shot


4. Create a Conditional Branch.
Now set up a conditional branch.
Screen Shot


Head into Tab 4 and Click the radio button next to "Button". Set the Input Button to whatever you wish. (If you're new to RMing, just go with C for now.)
Screen Shot


Your Contents box should now look something like this:
Screen Shot


5. Break the Loop upon pressing the button.
Just one more thing we need to do. Head to the Event Commands and look for Break Loop.
Screen Shot


And here's the result! Hope you enjoyed the image-heavy tutorial. I'm sure you guys can pull something a little more creative than what I just did, but I hope it helped all the same. smile.gif
Screen Shot
Shaddow
This looks really useful! Nice and simple, but very helpful nonetheless. I would recommend adding spoilers next time, as screen shots tend to be rather large.

You do have one screen shot that did not seem to post properly, though, may want to look into that.

All in all a useful tutorial and one I'm glad to see added!
PK8
Ah, my apologies on the images. Thanks for the spoilers and the heads up. Fixed.
X-M-O
This is an excellent tutorial, as most beginner developers find looping to be difficult to manage.
Looking forward to seeing what other ideas come to your mind and what other tutorials you create. happy.gif
PK8
Man, my ideas generally tends to be pretty quirky and sometimes insane, especially in the scripting department. laugh.gif Thanks. smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.