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.

Opening CMS with Input.trigger?

topman

Member

My problem is I can't open my CMS with the usual menu key (x or escape [Input::B])

I do have the windows setup, although I haven't added anything to them yet, I can call it through a call script and I can exit using the W (Input::R) key, but I would like to open it with either the :):R) or the :):B) key instead.

I can post the code if it will help, but for now I'll see if someone can answer without it, just in-case it isn't necessary.
 

topman

Member

EDIT:

What I mean is, that I made the CMS myself, but I can't assign a key to open it, like you press X or the escape key to open the status menu, I want to be able to do that with my CMS with either:

Input.trigger?(Input::R) (W key)
or
Input.trigger?(Input::B) (x or esc key)

I can close it using a key but I wouldn't know where to put the code for assigning a key.

I can PM the code to someone who is a scripter, it's not the best as it is only windows at the moment, but it is mine so, I guess you understand.
 

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