I need help with binding the key please.

Started by ErnBEY on

Topic category: Help with modding (Java Edition)

Last seen on 11:02, 1. Dec 2023
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I need help with binding the key please.

How can we use the procedure by connecting a double key and using both of them, that is, how can we make it work when both of them are pressed.

Last seen on 07:18, 4. Mar 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What I would do is make a…
Tue, 11/28/2023 - 16:25

What I would do is make a variable, let's say, Key A pressed? When key A is pressed, set the variable to yes, when it is released, set it to no. Then, on the other key bind, put it the code you want to run if both are pressed, but place it inside an if statement. Only run the code if Key A pressed = true. 

Last seen on 11:02, 1. Dec 2023
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can you show it with an…
Tue, 11/28/2023 - 17:02

Can you show it with an example screenshot?

Last seen on 11:02, 1. Dec 2023
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
who help me :(
Thu, 11/30/2023 - 12:24

who help me :(