change custom controlls
Hi, I wanted my character to move using Left and Right T Button in 2D dimension, or left and right Move button using motion controllers, how can I do this?
-
Oh, do you mean when you pull left T/move the player will move left, and right T/move the player will move right?
-
Thanks for your reply, yes this is exactly what I want
-
Okay, this is how you'd do that and have it work exactly the same as if you'd pushed the stick...
We'll make a fake "stick" signal the puppet can use. Add a combiner in "sticks" mode. Add a value slider, and wire it into the X of the combiner; this is how fast we want to move right. Wire the combiner's output into the "walk" input of the puppet interface in the puppet's chip. (It might be hiding in the "controller" chip.)
Tweak the value slider to have a minimum of -1 so we can move left too. Now make a keyframe that sets the value slider to 1, and name it "right." Make a keyframe that sets the value slider to -1, and call it "left."
Now, we want to power the right keyframe when the player uses the right move/T, and power the left when the player uses the left move/T.
You can get those signals from the controller sensor, but the tricky part is using the correct signal for T depending on which move controller is actually being used in the right hand, and which is held in the left hand.
I have a little setup you can import and use straight-off if you like... https://indreams.me/element/otPjaGdcSGS
Import it, ungroup it, and you can drag the 2 controller chips into your puppet. Now you can use the "left move buttons" > "T" output to power the "left" keyframe. That output will always send the signal for the trigger of the move controller the player is using as their "left" one. ame for the "right move buttons" chip. You can hook the rest up how you need it.
Note there is some other stuff in a group of its own; you can just move that out the way. That's the part that figures out which move is which.
-
thank you very much bro, I really appreciate your help!
they should have made more options within the walk input so people can add things for each controller button! -
Yeah, they do have inputs in there for "walk forward" and "walk backward." But something like "left" or "right" could be different directions depending on the circumstances. So you need to directly tell it what you want it to do, essentially.
Please sign in to leave a comment.