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 input pressing

statci

Member

Ok i hope i'm not posting in the wrong section, but here goes.

I want to know how or event if you can get an event to use a key. let me explain
lets say i'm using a script that when i press the y key it does a certain action.
how can i have an event initiate the button,

i don't know if i'm making any sense.

there is a event commands called {button input pressing} i thought that would help me boy was i wrong.
They need an rpg maker xp manual for dummies. I need it.

By the way what is the button input pressing it sounds self explanatory but i can't figure it out?
 

Fusty

Sponsor

I don't know if I understand you but I think you want to have an event that reacts whenever you press a button?
If so then do this on the event that has to react:

On the 1st page of the event commands click Conditional Branch.
Then go to the 4th page of the Conditional Branch window and press Button.
Then choose the button that has to be used. (A in my example)
Your event should look like this now:

@> Conditonal Branch: The A button is being pressed
@>
: Else
@>
Branch End

Now add whatever you want to make the event do when the A button is pressed, like a jump command.

@> Conditional Branch: The A button is being pressed.
@> Set move route: This event Jump.
: Else
@>
Branch End

Make this event parallel process and it should work.

Hope it helps.
 

statci

Member

i was more thinking of like having the event do what pressing the key would do without me pressing it.

say like in my game, when i press the y key the tint would change. how can i have an event initiate the y key by itself, without me pressing the key.

hope it can be done.
 
So what you want is a Screen tint when you press the Y key, without having an event? Or am I misunderstanding you. I may be able to help if its just a simple screen tint with a key press, try and explain it and I'll get back to you.
 
If I understand you correctly, once you already have a command that, say, changes the screen tint if you push a button, you want to have an event push that button to trigger that effect?

That's unnecessarily complicated. Just have the event change the screen tint/access the menu/whatever directly.
 
You're looking at this from the wrong angle. Simplify it a little. I see exactly what you want to happen though.

The Y key works right? I mean, when you press it, the screen tints?

If so, then all you have to do is make the event (The character/npc or whatever) use the same event command. Just copy/paste it into the event whenever you want it to happen. It doesn't need to use the key to get something to happen. It just needs to make that thing happen. : )

You're making three lefts to turn right. Just step back and think of it logically. This kind of stuff is why I LOVE eventing. Keep it up. You'll get there.
 

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