#so im here now chemicalcrux IDBB 1463
1 messages · Page 1 of 1 (latest)
so in this game you solve puzzles and all and you need to walk in a 3D world
the game is already out its albert innovation if you want to see the gameplay there is some videos of it im working on a update with rebinding because there is not one right now in it
So the thing i want to do is
not make any composites
to do each rebind at the time with one button for each keys
but the thing is that we cant do without composites for the main control
(wasd)
I still do not understand anything
what part dont you understand ?
how do you need to move
with the wasd keys
to do each rebind at the time with one button for each keys
yes
yes, so you can press all the keys together?
yes
e. g. to move in upper right direction you press W & D
the problem is that i have to go with the composites if i want to do diagonals right?
yes, right, I have said you do can move in diagonals already
or you need to be able to move?
yes
it's reply for...
this
you need composites to go in diagonals
and to move
if you wanna be able to press all the buttons together like..
if (W) ...
if (S) ...
if (A) ...
if (D) ...
and not..
if (W) ...
else if (S) ...
else if (A) ...
else if (D) ...
..then you need to make it composite
without new Input System, yes, of course
but i need the new one
yes, then do it composite, that's all
but how do i do with buttons
would you like to explain?
yeah
for me to understand it better
with composites its not possible to do one button for each keys inside the composite
if my composite is wasd
i cant do a button to rebind w
without rebinding asd after that
you have just said that you do not need to do that?
yeah
you need to make'em all work together, don't you?
i don't understand
what are you obliged to do?
do composites for wasd
no, you are not
Look.
You have said you need to be able to move in diagonal directions with WASD.
If you want them to be pressed together - you make them composite.
If you want them to work separately - you make them non-composite.
yeah but i dont want them to work separatly just be able to rebind them separatly
If you want them to be pressed together - you make them composite.
what do you mean "to be able to rebind them separatly"?
how do you want to do it and what's the purpose?
like for all game you can rebind just w
if you want it to be z
and you press a button
rebind
and its done
ohhhhhh
but with composite
you mean changing the button to move?
YES
you should have said it before
you mean: "I don't wanna move back with S, I gonna move with X", right?
yeah right that's it
wait, I need to think how to do that in new Input System, default code
but i dont want to do like "I don't wanna move back with S, I gonna move with X, but to do that i need to do W,A then X then D"
and thank you a lot for your time im so sorry that i wasnt clear
and I don't get this one too
okok so just
not one button to change all the keys
4
one for each
like one for w one for a one for s one for d
private InputAction movement;
private void ChangeWBinding()
{
InputBuilding bindingW = moveAction.bindings.Find(w => w.name = "W_BINDING_NAME");
bindingW.overridePath = KeyCodeToPath(KeyCode.Q); // e.g. Q key
bindingW.ApplyBindingOverride(binding); // it's needed I guess
}
private string KeyCodeToPath(KeyCode keyCode) => $"<Keyboard>/{keyCode.ToString().ToLower()}";
apply it for all the bindings or make new void
@summer spoke
e.g.
ChangeBinding("MY_NICE_W_BINDING", KeyCode.Q);
private void ChangeBinding(string bindingName, KeyCode newPath)
{
InputBuilding bindingW = moveAction.bindings.Find(w => w.name = bindingName);
bindingW.overridePath = $"<Keyboard>/{newPath.ToString().ToLower()}";
bindingW.ApplyBindingOverride(binding);
}
@summer spoke try this method and write if something does not work
okok thank you very much