Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> [XP/VX/VXA] Waiting until Button Input
PK8
post Sep 6 2012, 10:50 AM
Post #1


I walk the long road to redemption.
Group Icon

Group: Local Mod
Posts: 179
Type: Scripter
RM Skill: Advanced
Rev Points: 40




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


__________________________
Go to the top of the page
 
+Quote Post
   
Shaddow
post Sep 6 2012, 11:17 AM
Post #2


The Eventer Inventor
Group Icon

Group: Local Mod
Posts: 1,250
Type: Event Designer
RM Skill: Masterful
Rev Points: 90




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!


__________________________




I support these projects! -------------





Go to the top of the page
 
+Quote Post
   
PK8
post Sep 6 2012, 11:54 AM
Post #3


I walk the long road to redemption.
Group Icon

Group: Local Mod
Posts: 179
Type: Scripter
RM Skill: Advanced
Rev Points: 40




Ah, my apologies on the images. Thanks for the spoilers and the heads up. Fixed.

This post has been edited by PK8: Sep 6 2012, 11:55 AM


__________________________
Go to the top of the page
 
+Quote Post
   
X-M-O
post Sep 6 2012, 01:41 PM
Post #4


Level 82
Group Icon

Group: Director
Posts: 6,347
Type: None
RM Skill: Undisclosed




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


__________________________
Go to the top of the page
 
+Quote Post
   
PK8
post Sep 6 2012, 01:56 PM
Post #5


I walk the long road to redemption.
Group Icon

Group: Local Mod
Posts: 179
Type: Scripter
RM Skill: Advanced
Rev Points: 40




Man, my ideas generally tends to be pretty quirky and sometimes insane, especially in the scripting department. laugh.gif Thanks. smile.gif

This post has been edited by PK8: Sep 6 2012, 01:56 PM


__________________________
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 21st May 2013 - 03:27 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker