Hi everyone, I want your help in making basic character movements in unity. I want to create some basic movements in my scene like, on pressing up arrow player moves forward and on pressing down key player moves backwards ( but not facing the camera player should not turn player’s face must be looking in forward direction like in fps games), right key for right strafe and left key for left strafe and one jump button. I tried standard assets tried editing the thirdpersonanimatorcontroller but it didnt work. Plz help me or provide a controller and script for that plz
So what “didn’t work” about it? Honestly, the standard character controllers are the best place to start, and editing them is pretty straightforward, even if you’re just copying out parts to build your own controller. But if you want the movement to be more like a FPS, try using the FPS controller.
Sir, I want Ethan to strafe not to turn. I tried to do in blend trees, but the scripting and blending is making me mad
I don’t know (or remember) the animations that come with Ethan, but I created a simplistic strafe for my character by playing the strafe animation and traveling sideways in the game (no rotation on the rigidbody). However, I didn’t actually use the animator controller that came in the standard assets, so I can’t say how you’d go about fixing that up, off hand.
Good character controllers are hard. Best to study the examples, tutorials and documentation if you’re building your own.
hi sir can you give me yours? controller So that i can try it out? I am having problems
Sir i dont need a good controller I want a simple controller with strafe and vertical movements only
can U provide me?with its script plz
That’s not exactly how we work here. While I think we’re all generally very happy to provide assistance with specific things and give pointers for those that are lost, giving fully-working code isn’t common. And it’s not because we’re jerks. It’s because if we did that, you’d just use what we gave you and learn nothing. And what’s the point of doing any of this stuff if you’re not going to learn how to do it along the way?
I recommend starting with an empty script. Get forward movement working (no animations or anything, just movement. Then add in backwards movement. Then side-to-side. Once that’s working, figure out how to get the animations going. Again, look at the standard assets as an example and work from that. Figure out specific things you’re having difficulty with, and Google those things or ask us here if you can’t find the answer yourself.
Fair warning: this is a very helpful community, but we do run out of patience for those who refuse to help themselves. Take that initiative!
I agree. In addition to what @Schneider21 said, if you get to the point we can talk about the animator controller, I’d be happy to discuss my simplistic design with you, when you can follow along