Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started 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?
-
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.
-
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
-
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.
-
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
-
TY, I figured it out last night. Same way like yours, thanks again