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 Processing help

I'm trying to make a new button that examines events. I haven't dabbled in button input yet so I tried a few different approaches to no avail. At first I made a common event that just inputs button presses to the variable. Then I made a new page on the event itself with the condition that the player touches it and was hitting the examine button. That worked but it created some sort of side effect that wouldn't let me talk to that NPC anymore, only examine it. I guess the variable that tracks inputs doesn't reset to 0, at least not in this setup. It seems like I could get it to work with stacks of fixes, but I feel I'm missing the more efficient way of doing it.

I can't even really flowchart this idea, the more I think of it, the less ways I can think of making it work. Can anyone help me make an examine button? I'd rather you not have to walk into the event and hit the button but just be next to it and facing it, but I can't get it to work any other way. I'm tragically lost and I need meh inputz!

I feel ridiculous posting this too, I honestly searched and tried a few different approaches.

PS:
Does anyone know the input variable for "right-shift"? I like the idea of it being the button below the action button.
 
keyboard input module. i dont know much about it, but search for it in the script archives.
i was looking at them and they look like a huge pain in the ass, so i said goodbye to my idea...
 
There's another way to change the action button, just playtest and press F1. On the "Keyboard" tab, just change whatever letter you want to "C", which is the action button.

The input variable for shift is 11, I'm not sure but right-shift is probably the same.
 

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