How to detect button presses (Space, W, A, S, D)

Started by 8BitBunnie on

Topic category: Help with MCreator software

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to detect button presses (Space, W, A, S, D)

Heyo! Thanks in advance for any help you guys could offer. I surprisingly couldn't find anything covering this topic, but sorry in case it's frequent. I'm wondering if there's any way I can detect the player pressing a specific button aside from making a new keybind. For my specific case, I want to detect when the player presses space and is mid-air to execute another jump. I appreciate any kind of answer!

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you need a keybind, If you…
Sat, 07/27/2024 - 11:49

you need a keybind, If you want to be able to detect when a key Is pressed in all procedures and not Just the two triggers of the keybind, make a player persistent variable that is set to true when the key Is pressed and to false when it's released, then use this variable in procedures to detect when the key is being pressed 

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That's the way I ended up…
Sun, 07/28/2024 - 04:03

That's the way I ended up doing it, but I was wondering if there's any other way to do it aside from keybinds. Keybinds that are set to vanilla binds appear as conflicting, it's a very nitpicky thing but I was hoping there's more than one way

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hold on, that is Martian to…
Fri, 11/15/2024 - 02:53

Hold on, that is Martian to me, how do I do that? How do I check a player's variable with a procedure?