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.

Key-Pressing Action

I'm not necessarily requesting a script, but I'm wondering, is there a simple, customizable script, that can associate key pressing with Common Events?

For instance, at any random time, if I press the "A" key on my keyboard, it can activate a Common Event that I've made where the Player jumps. Or if I press the "F" key, a pre-set sound effect plays.

It would help me a great deal, so if there's anyone who may know, please respond.

Thank you.
 
What the hell you have posted this in Feedback?

And you don't need a script for that.

Just make a Common Event Run, and set a conditional if The key you want is down Do whaetever
 
You could use a parallel process that has Button Input Processing and a conditional branch in it - that's the old way to do it, since I believe not every key is included in the "Button is being pressed?" option.
 

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