playMaker

Author Topic: Can playmaker do hotkey binding? [SOLVED!]  (Read 1208 times)

RapperCerberus

  • Playmaker Newbie
  • *
  • Posts: 11
Can playmaker do hotkey binding? [SOLVED!]
« on: September 16, 2021, 01:19:45 AM »
Such like: use arrow keys/numpad arrow keys to move instead of WASD keys, use B to show inventory instead of I, etc... Make player bind the hotkeys for him/herself
Is there any method to do this?
« Last Edit: September 27, 2021, 02:10:27 AM by RapperCerberus »

Broken Stylus

  • Beta Group
  • Hero Member
  • *
  • Posts: 772
Re: Can playmaker do hotkey binding?
« Reply #1 on: September 17, 2021, 09:14:03 AM »
It allows you to use any key you want. But if you want to let the player change them, you'll have to create a setting page for keys.
You would include autoswap and automatic move one key down every time a key is defined.

Wpx13

  • Playmaker Newbie
  • *
  • Posts: 7
Re: Can playmaker do hotkey binding?
« Reply #2 on: September 20, 2021, 09:14:55 AM »
yes you can do hotkey binding by using the keys actions like  ( any key store string ) get string key down.up ) etc...


sry about bad english btw

RapperCerberus

  • Playmaker Newbie
  • *
  • Posts: 11
Re: Can playmaker do hotkey binding?
« Reply #3 on: September 26, 2021, 04:09:00 AM »
I don't get it, how can I get the key pressed state I want?
For example, user binds W key on move forward, I can get W key pressed state by the action <get key>. But if user change W key to others like arrow up key or numpad 8 key, how can I get this variable? Is there any action can do this?
The problem is, I wanna get the move forward key's pressed state, not a specific key's.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: Can playmaker do hotkey binding?
« Reply #4 on: September 26, 2021, 08:37:38 AM »
Hi.
maybe this old tutorial can help :


the actions you can find on the Ecosystem, search for :

getkeyfromstring
getkeydownfromstring
getkeyupfromstring
getkeycodetostring

no spaces, as its seems that there are still issues with the seacrh system from the Ecosytem

RapperCerberus

  • Playmaker Newbie
  • *
  • Posts: 11
Re: Can playmaker do hotkey binding?
« Reply #5 on: September 27, 2021, 02:09:22 AM »
TY, I figured it out last night. Same way like yours, thanks again