Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Button Tap?

I am a pretty good eventer, but some of the things in RMXP I don't use sometimes. Right now I am making an evented ABS, but I've come to a rather bad problem. I can just hold the attack button and I attack. I need to find a way to check if the player doesn't hold it; but tap it.

Here is my code:
@> Conditional Branch: The C button is being pressed
@> (The attack code)
@> Else
@> (The player being damaged code)

So, the player is invincible if they hold C. I've heard something like "Button Input Processing" and I found it, but I have no idea how it works. Can someone teach me how to use it? If that's not how you check if the player is tapping a key, please teach me how. And teach me how to use "Button Input Processing too :tongue:.

Thank you for reading this. Hopefully someone can come to the rescue.

Have a nice day,
~speedolphins
 
button input processing man, it's my favorite fucking event command. I use it for so much, menus, battle systems, and lots of little really useful things that might not even occur most of the time.

t's actually ridiculously easy to use. I can sum it up in one screenshot actually.

http://bb.xieke.com/files/buttonprocess.PNG[/img]

basically, button input processing slaps your input into a variable. then you use the variables to check which button was pushed.
 
MISSINGNO.":2zzfetax said:
button input processing man, it's my favorite fucking event command. I use it for so much, menus, battle systems, and lots of little really useful things that might not even occur most of the time.

t's actually ridiculously easy to use. I can sum it up in one screenshot actually.

http://bb.xieke.com/files/buttonprocess.PNG[/img]

basically, button input processing slaps your input into a variable. then you use the variables to check which button was pushed.

Thank you, so much! You don't know how much that helped me! Should I add you to my credits list? o.O

Zeriab":2zzfetax said:
And to see which number corresponds to which button simply right-click on the button input process dialog and press What's this?

http://img174.imageshack.us/img174/4868 ... essem9.png[/img]

Wow, I didn't know that either! Can you do that with anything?

Thank you both for helping me. I think I understand now.
 
For the tap, you might need something like this;

Code:
@> Conditional branch: C is down
 @> Switch(Attack Switch) on
 @> Wait 5 frames #Or however long
 @> Attack Switch off
@> End
Have that as a common event that is always running or something.

And then have, for the monster.
Code:
@> Conditional branch: Attack Switch is on
 @> (The Attack code)
: Else
 @> (The player being damaged code)
@> End
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top