Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: RapperCerberus on September 16, 2021, 01:19:45 AM

Title: Can playmaker do hotkey binding? [SOLVED!]
Post by: RapperCerberus 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?
Title: Re: Can playmaker do hotkey binding?
Post by: Broken Stylus 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.
Title: Re: Can playmaker do hotkey binding?
Post by: Wpx13 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
Title: Re: Can playmaker do hotkey binding?
Post by: RapperCerberus 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.
Title: Re: Can playmaker do hotkey binding?
Post by: djaydino on September 26, 2021, 08:37:38 AM
Hi.
maybe this old tutorial can help :


the actions you can find on the Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181), search for :

getkeyfromstring
getkeydownfromstring
getkeyupfromstring
getkeycodetostring

no spaces, as its seems that there are still issues with the seacrh system from the Ecosytem
Title: Re: Can playmaker do hotkey binding?
Post by: RapperCerberus on September 27, 2021, 02:09:22 AM
TY, I figured it out last night. Same way like yours, thanks again