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.

How do I make a "press this 'particular button' for this particular result kind of th

Code:
if Input.trigger?(Input::"RMXP_KEY") #If the key was pressed. 
  #Do stuff
end
Note_: TO see the keys press F1 midgame, it will take you to a screen where alll the key are displayed, change "RMXP_EY" to the Kewy you want, like C => Enters, A => Shift, etc
Is that what you mean?
 
Yeah that's exactly what I wanted.

That code that you gave me,
ts like the fork condition "if press 'X' do this" of the vents options, right?

Is there anyway to use oher keys other than the ways given automatically?

Thanks Devil

Sorry for double post, but when I try it it gave me a "syntax error" message.
 

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