Create an Open World Movement System in Unity C#

Поделиться
HTML-код
  • Опубликовано: 1 фев 2018
  • Join our Filmstorm Motion Library: / filmstorm
    Join us on RUclips Gaming and click join next to the like button:
    • Create an Open World M...
    Join our popular All Access Pass to get all of our products: gum.co/filmvip (Use filmstorm20 at checkout to save 20%)
    Support us on our Gumroad gumroad.com/filmstorm
    ---------------------------------------------------------------------------------------------------------
    Our latest products from Gumroad are:
    GTA Animation Pack and Tutorial: gum.co/gtapack
    Sword Hack & Slash Animation Pack: gum.co/ninjas
    Assassin's Creed Climbing System - Unity3D (BETA): gum.co/acclimb
    ------------------------------------------------------------------------------------------------------
    Thanks for checking out my tutorials, I really appreciate it. If you want to take your Filmstorm experience to the MAX, check out www.gamedevcoding.com for more free assets and project downloads today!
    Current Projects:
    GTA Single Player System: • Single Player GTA Unit...
    FPS System: • FPS in Playmaker Game ...
    3rd Person Character Movement: • Third Person System Tu...
    2.5D Player System: • 2.5D Character System ...
    -----------------------------------------------------------------------------------------------------------
    Have more suggestions for content? Leave a comment below and let me know what you want to see.
  • КиноКино

Комментарии • 219

  • @n1lknarf
    @n1lknarf 5 лет назад +6

    Thank you so much. It's hard enough having to do everything just 1 person. You made this look so simple and organized. Keep it up!

    • @Filmstorm
      @Filmstorm  5 лет назад

      Thanks! Always here to help! 👍🏼

  • @user-mh2bh1tb8q
    @user-mh2bh1tb8q 5 лет назад +4

    Thanks so much! This is all set up in a very considerate way that actually seems usable for a full game. I appreciate these resources greatly.

    • @Filmstorm
      @Filmstorm  5 лет назад +1

      Awesome Lynn, thanks for watching, if you need a question answered with anything on your project, please let us know, we will be able to help 👍🏼

  • @guilleacq
    @guilleacq 6 лет назад +5

    This is incredible! I love your videos man

  • @carterlikespie
    @carterlikespie 4 года назад

    Awesome video! Got a good camera and movement system going! Thanks to you my project is well underway!

  • @jasper.creations
    @jasper.creations 6 лет назад +1

    Beautiful tutorial. Thank you so much for thinking of the personal users!

  • @soul3082
    @soul3082 6 лет назад

    Yes!!! It's the tutorial I was looking for, so time. thanks and good video

  • @gromwaldbear5539
    @gromwaldbear5539 5 лет назад

    I first came across quaternions in my research into ways to unite quantum and spacetime physics. My brother who is a spacecraft navigator told me about their uses in navigation.

  • @Oxmond
    @Oxmond 4 года назад +3

    Cool! What a great character movement tutorial! 👍🤓

    • @Filmstorm
      @Filmstorm  4 года назад

      You’re very welcome!

  • @footbx-live5965
    @footbx-live5965 5 лет назад

    thank u so much we really appreciate the efforts you put on making these tutorials, u are awesome

  • @Tosmo
    @Tosmo 3 года назад

    Ok, I got it!
    The initial result had the character animations and rotations responding to inputs but the character wouldn't move around the scene. I slapped in the MovementManager from your more recent movement code tutorial and it works now. Thanks!

    • @JPayce
      @JPayce 3 года назад

      I am having the same issue, do you have a link to the movement manager script tutorial ?

    • @Tosmo
      @Tosmo 3 года назад

      @@JPayce ruclips.net/video/9rB5TxxbwUU/видео.html without rewatching the full video, I don't remember what it is I changed

    • @Gurem
      @Gurem 2 месяца назад

      this is a root motion tutorial which is why it wasnt working.

  • @foax2316
    @foax2316 6 лет назад +3

    I LOVE this channel. So helpfull and so easy to watch and follow.
    I would be interested in that clothing system, how you got that flowing so nice, including the orange strains at the hands (whihch i assume are based on the same method?).
    Have a nice day.

  • @erikfrits257
    @erikfrits257 4 года назад

    Thanks for tutorials! Small note: I think it will be better if you would create variables when you actually need them in code, then it would be more dynamically written. So instead of writing all 20 vars, you write the ones you need at the moment and add more and more as you go.

  • @mr.bill4752
    @mr.bill4752 3 года назад

    A perfect tutorial found after hours of search through scrap.

  • @Pentasoniczound
    @Pentasoniczound 5 лет назад +13

    Hi, I noticed with your code the that the vectors were getting added together and going up to a value of 2 when moving on both input axes simultaneously. I.E. moving diagonally.
    I tried this to fix it:
    moveVector = new Vector3(0, verticalVel, 0).normalized;
    Speed = new Vector2(InputX, InputZ).normalized.sqrMagnitude;

  • @tattoosclub23
    @tattoosclub23 3 года назад

    you are the best!!! thank u!!!

  • @ipuzzledalot7946
    @ipuzzledalot7946 6 лет назад +2

    Hi i love all of the channels content and i think you're doing an incredible job. One inquiry i have is about third person based combat in unity and how you can go about making it smooth without the use of playmaker. I saw an older video of yours with hack and slash style combat with playmaker which is perfect, but i would like to know the basis of how to hand program it :) any help would be grateful! keep up the good work too!

    • @IamNeighborlee
      @IamNeighborlee 4 года назад

      Forget it,unity is ALL about greed,ue4 gives you most of this OUT of the box...I do have a unity project but I've wasted HOURS trying with no success at all to get a solid charaacter, near perfect in all respects, going through c# coding and enjoying it as I learn,NO closer at all to the beauty ue4 gives you FOR FREE. Sick ....and no on a disability income buying is not an option , ever. Every little bit counts - we all have budgets.

  • @2ksp235
    @2ksp235 4 года назад

    @Filmstorm great tutorial. great regards

  • @Samurai-sg4yd
    @Samurai-sg4yd 4 года назад +2

    Roddy Rich sampled your intro to make the box

  • @ayahtiri_moba
    @ayahtiri_moba 6 лет назад

    That's what i'm waiting for.. Terima kasih 🙏

  • @asatanseesnatasa
    @asatanseesnatasa 4 года назад +3

    This is a great tutorial. The movement is exactly what I was looking for. Also, do you have a tutorial about things such as jumping and attacking?

    • @Filmstorm
      @Filmstorm  4 года назад +2

      Thanks for watching! I’m working on a series right now which will incorporate jumping and attacking systems in it. It’s a multi-part Open World Series 👍🏼

    • @asatanseesnatasa
      @asatanseesnatasa 4 года назад +1

      @@Filmstorm Sounds great. Will it be using any 3rd party assets/plugins or will it we be able to make it all in Unity?

    • @Filmstorm
      @Filmstorm  4 года назад

      No it’s all hand made no other plugins or assets - only assets will be the ones I make 😃

    • @asatanseesnatasa
      @asatanseesnatasa 4 года назад

      Looking forward to it. Do you have an ETA?

  • @batnikelam-mavzer443
    @batnikelam-mavzer443 Год назад

    excellent

  • @josh_swanson
    @josh_swanson 4 года назад +1

    I saw you have a second system for Lock On...will you be showing that aspect? That's currently what I'm working on.

  • @spt.1988
    @spt.1988 6 лет назад +1

    Do you recommend to use Playmaker instead of scripts? Thanks for sharing.

  • @gabriellogronio3868
    @gabriellogronio3868 6 лет назад +12

    Hi! I have a problem, my character keeps blinking back to the original position and the camera doesn't follow him. I did everything in the video and the code is like yours, but I can't to get it working. If you answer this comment, i'll make a git rep so you can check it out. Thanks in advance

    • @Filmstorm
      @Filmstorm  6 лет назад +7

      Hi Gabriel, sounds like a problem with the animation setup. It's probably a checked box in the humanoid setup that causes the character to move in front of the root position and then when the animation loops it moves him back into the original position. Check the animation preview window and click play if you character is moving ahead of the red, blue, green axis beneath him, then the animation is not setup correctly. Uncheck the boxes and keep testing it and you should be able to get it to work correctly. :) If you're still having problems please share a video instead as I'll be able to pin point the problem faster for you. Cheers.

  • @notwho8825
    @notwho8825 5 лет назад +4

    Hey my character is animated but doesn’t move and if I lift it up the ground it starts flying also I wanna ask if you need the same camera script u have to move the character

  • @anthonyd9043
    @anthonyd9043 4 года назад +2

    Hey Kieren thanks for these incredible videos!
    You said at the end of this video that you added a layermask for environment to the Camera Collision script. I checked your github as you said, and it's not in there. Is it an if for the raycast, or a catchall to include ground, etc.?

    • @Filmstorm
      @Filmstorm  4 года назад +1

      Hey Anthony, yes I thought I pushed the update to GitHub but it looks like the layer mask isn’t in that code. I’ll check back through my files and see if I can find it.
      Although it’s fairly simple, you create a public layer mask that can be set on the script, then check if the ray cast is or isn’t hitting the layer mask and let the code continue... 👍🏼

    • @anthonyd9043
      @anthonyd9043 4 года назад

      @@Filmstorm thanks for responding!! I'd love to see the actual code if at all possible. I find as a beginner I still write very slow/inefficient code. So what I add an or to the IF of the current collider check?

  • @rafa666imjp
    @rafa666imjp 6 лет назад +4

    Try zoom in the code next time... Thanks for the content!

    • @Filmstorm
      @Filmstorm  6 лет назад +3

      Oh yes I realised after I recorded it, but I definitely will next time.
      Here is the script on GitHub for reference: github.com/filmstorm/Unity-Scripts/blob/master/Movement/MovementInput.cs

    • @rafa666imjp
      @rafa666imjp 6 лет назад +1

      Nice, thanks!!!

  • @jbmocean399
    @jbmocean399 4 года назад

    Hi! I'm a complete beginner when it comes to unity and programming alike.
    Could you explain what InputMagnitude is and how I can use it?
    You mention at the start of the tutorial that all I need to get this to work is a blend tree (which I get) and InputMagnitude but I have no idea how to get InputMagnitude.
    Is it that InputMagnitude is just a varible you created under Parameters? Could it be called anything?
    Excuse my noobness...Just started learning Unity yesterday

  • @stellarestuary589
    @stellarestuary589 5 лет назад

    I have a question about this video. I notice that it belongs in the Third Person System Tutorial Series playlist, do I have to watch the preceding videos before it, or is there just a certain number of videos that I'm required to watch before I can get started with this script? I'm trying to develop a prototype that doesn't have the animations seen in the video, just a vertically aligned capsule that explores the environment for now.

  • @mllelafortune
    @mllelafortune 4 года назад

    Hi @Filmstorm, one question about camera-relative based locomotion. How to swap Vertical axes depending on whenever the player is facing the camera or not? When you are running away from the camera, the InputX goes from -1 to 1 (left to right), but when you are running towards the camera, they do not invert. And do the LeftTurn plugged on -1 is played when you turn right when running towards the camera. Thanks!

  • @jaydeepkasture8483
    @jaydeepkasture8483 5 лет назад +1

    sir what animation is playing in InputX and InputZ when you call this in the InputeMagnitude()
    line no 70 and 71

  • @magnusm4
    @magnusm4 5 лет назад

    You're using the animation to move. Is it better to get started with that or doing movement manually?
    Cause I have been working on a complete script with nothing but the capsule from the CharacterController.
    It has wall jumping that i'm satisfied with.
    I have certain movement things I want that are a little unrealistic to focus on a fluid and responsive gameplay that is anything but stiff and feeling forced.
    I was mainly thinking of simply syncing the animation as i'm afraid of the hit detection of the character model on uneven ground and different tracks of land.
    What i'd like to implement is:
    Damping so he accelerates more naturally.
    Making him slow down and accelerate if I quickly go from pushing forward to backward as well as make animations of him quickly turning like in Mario 64.
    Wall jumping which another tutorial by Shanebeck made plus another which works amazingly when I managed to tweak it a little to perfection.

  • @chenzhexu4322
    @chenzhexu4322 4 года назад

    Hey!Where could I purchase the environment and model assest you are using in this vedio? The rainning and lightening effect are so damn cool. Also the character model fits the enviroment style perfectly! Could you please give me a link to purchase the environment assests?

  • @leroyjuniorjoweihan5944
    @leroyjuniorjoweihan5944 6 лет назад +2

    Hey! Where do I find those animations to set it up before I follow the tutorial? Thanks in advance :)

    • @Filmstorm
      @Filmstorm  6 лет назад

      Hi Cortnex, these animations are from our animation pack here gum.co/ninjas 👍🏼

  • @VapaFish
    @VapaFish 5 лет назад +1

    Hi there! Sorry to ask but does this use thew same camera system as in "Free 3rd Person Camera Setup?"

  • @IamNeighborlee
    @IamNeighborlee 4 года назад +1

    Btw in line 40, given this is a year plus old, moveVector must be MoveVector it seems. Just a FYI at least here in MS visual c++ community edition 2019 . I'm also getting : void InputMagnitude() {
    //calculate Input Vectors
    InputX = Input.GetAxis("Horizontal");
    InputZ = Input.GetAxis("Vertical"); , showing InputxX and InputZ in red.
    Any idea on fixes for those,,I checked with suggestions and saying not defined.

  • @narasuruwu
    @narasuruwu 5 лет назад +1

    So I'm using a capsule but can't seem to get the movement working, For others it seemed like the problem was related to root motion but I really got no clue what to do since I'm using a capsule, Thanks in advance

  • @El_Andru
    @El_Andru 5 лет назад +14

    Is there a way to not use the root animation motion rather a script motion within this script?
    Is because mine is just rotating in place but not changing position

    • @karimdaouiji9146
      @karimdaouiji9146 5 лет назад

      Just add something like, transform.Translate(Vector3.forward * speed * moveSpeed);

    • @GamingWizzzard
      @GamingWizzzard 5 лет назад +2

      I added transform.Translate(Vector3.forward * Speed * Time.deltaTime); and that worked for me, but only if I comment out character grounding, but then character doesn't fall down. Why is this? How do I fix it?

    • @Filmstorm
      @Filmstorm  5 лет назад +2

      Hey there, to let the character fall if your using translate, you’ll need to change your animation setting and turn off the root motion on Y setting. This will allow the character to fall down while moving. 👍🏼

    • @GamingWizzzard
      @GamingWizzzard 5 лет назад

      Hmm, so are you using Mecanim? I am trying to get this to work with blender's in-place animations.

    • @Noah_B_Music
      @Noah_B_Music 5 лет назад +1

      @@karimdaouiji9146 where would u add this

  • @ipuzzledalot7946
    @ipuzzledalot7946 6 лет назад +2

    i have a question about this video aswell, are the animations driving the players velocity? and causing the player to actually run forward? as the inputX and inputZ values are passed to the animator but i dont see them being used

    • @Filmstorm
      @Filmstorm  6 лет назад +1

      Hi Dean, Yes the animations use root motion which I recommend as this increases believability in your character being grounded and not sliding around the world. The InputMagnitude that we setup in the video is used to control how hard either direction is pressed by taking the square magnitudes of both inputs (Horizontal and Vertical). Now we passed all these values into the animator because you can use InputMagnitude for values of transitioning between the strength of the input pressed. Then you can setup strafing for you character by playing animations when inputX is either left (-1) or right (1) and inputZ is either forward (1) or back (-1). You can use a blend tree with a Cartesian or Direction Mapping layout to achieve this. 👍🏼

    • @ipuzzledalot7946
      @ipuzzledalot7946 6 лет назад +1

      Awesome, that's what i thought it was! and good idea on the strafing with the inputs! Thank you for getting back to me, and keep up the awesome work :)

    • @Filmstorm
      @Filmstorm  6 лет назад

      Thanks Dean, hope you enjoy the other videos 👍🏼

  • @giorgioguglielmone6528
    @giorgioguglielmone6528 4 года назад

    Hi, great tutorial. I ask too much if you tell me how you got the rain and thunderstorm effect? I like it very much.

  • @jasonargo4459
    @jasonargo4459 4 года назад

    How would you incorporate 2D sprite anims using Blend Trees into this script, with the understanding that any camera rotations would have to show a new sprite anim (a new anim basically but drawn from the new perspective)?

  • @legendsalper
    @legendsalper 5 лет назад +3

    Hey man I copied all your codes and followed the tutorial beginning to end for sevral times. But my character does not move with your script. I can make it move by using my own but mine does not follow the camera's facing direction. What can I do to solve this problem ? Do you have any idea why your script is not moving my character ?
    There is no erro in the unity console btw.

  • @Citizenu11
    @Citizenu11 5 лет назад +2

    Firstly, thanks for this video Filmstorm! Secondly-- I'm having an issue where "The name "InputMagnitude" does not exist in the current context.
    error CS0103
    I have InputMagnitude set as a parameter in the animator, and the blend tree uses it. What am I missing here? Do I need to set InputMagnitude in a separate script?
    Thanks!

    • @Filmstorm
      @Filmstorm  5 лет назад

      Hi Ian, yes you'll need to reference the InputMagnitude (which is a float) in your c# script. You can see the working implementation of this here: github.com/filmstorm/Unity-Scripts/blob/master/Movement/MovementInput.cs

  • @tharandule
    @tharandule 4 года назад

    hello tharandule here with Dark Blade creations, your animations in all your projects are vary nice and smooth indeed, we are looking for good quality animations like this but in the UE4. does your animations transfer?

  • @riftsummoner
    @riftsummoner 5 лет назад

    Great Videos and thanks for your help. I got an issue where my animations seems fine but on the blend tree it does not seem to be animating the same as the animations suppose to be but just the hands of the model do a different animation. I think its because the Model was in a T shape but when i transfer the animations to a different Model the different model does not seem to move

    • @riftsummoner
      @riftsummoner 5 лет назад

      never mind i solve the issues with a different model but it seems to being doing the same wrong animations. No matter what model i try but they seem to not be following the animations i input in the blend tree. I tried different animations but they seem to be all the same. The Animations looks different on testing but once on the blend tree and start running the game. In the blend i see the animations do different with the arms only seems different

  • @foax2316
    @foax2316 6 лет назад

    Maybe you can help me.
    I got everything working nicely, just one little Problem.
    If I walk around with my character, the camera is snapping back an forth. That happens after I stop walking, reposition the camera so it looks in another direction than the character, and then walk again. It just snaps back into the old position.
    Hope you can help, love your tutorials.

  • @erickpilla7183
    @erickpilla7183 4 года назад +2

    Hi bro ! I made equal yours , both animations and code, but mine is not changing the position, the animation is playing normal and the numbers in the inspector too but it's not moving
    I add: transform.Translate(Vector3.forward * speed * Time.deltaTime); , transform.Translate (new Vector3 (InputX, 0,InputZ)); and dont work

  • @gohelboy
    @gohelboy 4 года назад +1

    This is great but when u turn then player move tiny but so sides and it not look great how can we change to turn animation !

  • @REDPlys
    @REDPlys 5 лет назад +3

    Hey @Filmstorm , When I run the game, my player stays in place; got any idea how to fix it?

    • @hinthujanthiagarajah1975
      @hinthujanthiagarajah1975 5 лет назад +10

      Hey, add this controller.Move(desiredMoveDirection * Time.deltaTime * 2f); to where we check for if blockRotationPlayer == false.

    • @REDPlys
      @REDPlys 5 лет назад +2

      @@hinthujanthiagarajah1975 THANK YOU!!!

    • @Filmstorm
      @Filmstorm  5 лет назад +4

      Yes and to add a bit more flexibility to the code, if you change the * 2f to a new float variable called speed you can then change how fast or slow you want the player to move.
      So ...
      [SerializeField] float speed = 1f;
      controller.Move(desiredMoveDirection * Time.deltaTime * speed);

    • @REDPlys
      @REDPlys 5 лет назад

      @@Filmstorm Thank you

  • @andreykopa9550
    @andreykopa9550 6 лет назад +2

    This is incredible. 10 Russian bears of 10

    • @Filmstorm
      @Filmstorm  6 лет назад

      Thanks! That’s also a great rating system 😁👍🏼

  • @khaled282003
    @khaled282003 5 лет назад +2

    How do I add it to my character movement? Like is there a scene to add? Because I want to add the script and build off of it in a way but I can't add it to my current character please help I have a Game Project due in a couple weeks and this has been my biggest issue. Thanks!

    • @Filmstorm
      @Filmstorm  5 лет назад +1

      You just need to download our C# script from github (use the raw link) and then add it to your assets (drag it into your Unity Project) and then add to your character as a component script. You then just need to setup the any additional movement input, if you press play it might give you an error about input. Also you need animation which are root motion driven for this system to work and you need to have an animator on your character with variables, InputX, InputZ and InputMagnitude along with a simple blendspace driven by potentially InputMagnitude to change the animator position depending on the input strength. Hope that's enough to get you started. If you watch this tutorial it will explain it in more detail.

  • @ChickenSkit
    @ChickenSkit 5 лет назад +14

    lol, i thought i was the one getting the Fb message

  • @ahmadtaib6199
    @ahmadtaib6199 4 года назад

    better than playmaker

  • @phoenix161
    @phoenix161 5 лет назад

    Is there a way to make it so that when the player is only turning the speed is halved?

  • @JCC4545
    @JCC4545 4 года назад

    Hi I'm having the issue whereby the speed when the player moves is super fast and I cant figure out how to slow this down to a more realistic speed

  • @keshinro...6979
    @keshinro...6979 4 года назад

    where is the previous video? sorry but i only watched this and i have not set up my animator ,i could not find it anywhere

  • @marjansek8977
    @marjansek8977 4 года назад +1

    Hi, so my first attempt my character was doing the animations and rotating but it can't move. I tried it a second time and it moved with the animations but my character doesn't rotate by the camera view. I don't know how to fix this i use you're 3rd person camera script in gimp download and for the animations i use the standard idle, walk and run animation from mixamo. Please can anybody help me?

  • @sekker2k446
    @sekker2k446 4 года назад

    Hello, And first at all i feel so grateful about your videos. i tried to implement it to my project. but my character stay in the position. just make the animator movements. i cheked it a lot of times but i have not seen differences about your script . i have the Axis on the right way. any idea about what happens?
    thx!

    • @basverhaar1577
      @basverhaar1577 4 года назад

      Perhaps your character animation stays in-place? If you download an animation from Mixamo, you have to uncheck the "in-place" button

  • @Epsio0
    @Epsio0 5 лет назад

    Why do you use root motion instead of using rigidbody to move the character?

  • @magnusm4
    @magnusm4 5 лет назад

    edit: Do you know how to add rotation animation to a script like this? I don't use rigidbody so I can't get the turning velocity so I can't make the character do a rotation animation when he's rotating or based on how much my input direction is based on the player's current direction.
    A really stupid thing. I've watched so many tutorials when working with character controllers that after so many tutorials and play testing I couldn't make a movement script without putting absolutely everything into one .Move method so I always had 1 Vector3 I kept adding and changing to simulate physics to not have two .Move or Vector3's colliding

  • @previous1591
    @previous1591 4 года назад

    My character is set x, y, z to 0 and I wrote the grounding script the same way you did, may I pls have help on this section?

  • @Willskull
    @Willskull 4 года назад +1

    How do I add InputMagnitude? Can't see it in "Parameters"...

    • @mentionethan
      @mentionethan 4 года назад

      im assuming you've figured it out or given up after 2 months, but you just create a float and name it "InputMagnitude"

  • @lauch8844
    @lauch8844 5 лет назад +3

    where did you learn coding for unity ?

    • @Filmstorm
      @Filmstorm  5 лет назад +2

      I taught myself after reading a whole lot of programming books - also did a Bachelors Degree but didn’t actually learn code from there 👍🏼

  • @alexv9607
    @alexv9607 4 года назад

    How do you make it so if you press WASD you walk and if you press SHIFT and WASD that you can run and also that it plays the right animation?

  • @magnusm4
    @magnusm4 5 лет назад

    I wish there was more tutorials on making the player orbiting the camera.
    If I move from the camera it smoothly follows, but if I walk towards the camera it stays.
    The problem comes when I want the camera to stay and let the player run around it in a circle.
    There's next to no tutorials or forums on it and most are either extremely complicated control tutorials or very vague about a solution

    • @noneofyourdamnbuisness3484
      @noneofyourdamnbuisness3484 5 лет назад

      you could just parent the camera to the player

    • @magnusm4
      @magnusm4 3 года назад

      @@noneofyourdamnbuisness3484
      1st: That doesn't make it smooth and you just have to put localPosition into consideration.
      2nd: That makes the camera stationary, it should stay absolutely still if the player moves purely left or right.
      Parenting an object is like hammering it in a point where the center of the coordinate is the parent.
      The most common and recommended way i've found is SmoothDamp.

  • @nathan12581
    @nathan12581 4 года назад

    My input magnitude doesn't get set back to '0' when I let go of any of the 'WASD' keys?

    • @Steelersfan355
      @Steelersfan355 3 года назад

      change the allowPlayerRotation in the if and else if to if(speed > .1f) and else if(speed < .1f) and it will reset the magnitude to zero instead of that long decimal.

  • @2ksp235
    @2ksp235 4 года назад

    hello @Filmstorm i have the same problem but worst. my character stay on the same place and run only on one direction :(

  • @dartutorials7859
    @dartutorials7859 4 года назад +3

    Hey for those who wondering how you add jump to the script i made a tutorial with this script that includes jump =]

  • @robertnelson6577
    @robertnelson6577 5 лет назад

    How do you add jump with the script in this video? Your not using a rigidbody.

  • @decsec1660
    @decsec1660 5 лет назад

    How did you make that clothe animation?

  • @luminaryphi4431
    @luminaryphi4431 4 года назад

    Anyone have a good setup for this style motion in Playmaker? My character just runs in the same direction relative to where Im facing regardless of whether Im pressing W, A, S, or D

  • @dorinofficial9181
    @dorinofficial9181 4 года назад +1

    I have problem with InputX and InputZ.Where it must be?

    • @Wildy333
      @Wildy333 4 года назад +1

      InputX and InputZ need to be Parameters in your animator set as floats.

  • @gohelboy
    @gohelboy 4 года назад +1

    How can we implement for mobile ?

  • @Steelersfan355
    @Steelersfan355 5 лет назад

    I ran into a problem. My character doesn't stop completely when using a controller

  • @Light-mt6fi
    @Light-mt6fi 3 года назад

    i wanna know about this 2d shader character for unity.....can u help me out....i have watched almost all ur videos learning all about unity...now m curious about this 3d character look like 2d....cool stuffs🔥...

  • @jamesalbus7991
    @jamesalbus7991 5 лет назад +1

    thanks for all the videos you do!
    P.S. how do you get your character to run forward endlessly like that at 1:12 if you don't mind me asking? can I replicate that in blender? thanks again for the video!

  • @MrSmoofist
    @MrSmoofist 4 года назад

    If you can help: first the camera doesnt move at all, rotating based on player, second is it wont go backwords, assuming its related to the camera part tho... HALP?

    • @mentionethan
      @mentionethan 4 года назад

      this tutorial was movement only, he has a more recent video using cinemachine if you want a good camera tutorial. When you say it wont go backwards do you mean the 's' key does nothing, or do you mean the character does a 180 instead of facing the same direction but moving backwards.

  • @Razgard
    @Razgard 5 лет назад

    My InputMagnitude value keeps over 0 even if there's no input. Sometimes even over 1. Why could that be?

    • @nerounity188
      @nerounity188 4 года назад

      Normalize your input vector,or set a input deadzone.try.

  • @geogkoumas9191
    @geogkoumas9191 6 лет назад +1

    Dude you are a great guy! I want to ask you something? I am not asking for a tutorial or anything, just from your experience if you could tell me if it is possible. I will try to find it myself, if there is a away!
    So, is it possible (in playmaker) to create two slots where you will put skills (animations) from an inventory of animations and then with one click of a button your character will change between these two slots (skills and their animations) and when you press an action key your character will perform the current skill-animation which is in the current slot?
    Thank you for your time!!! :):):):)

    • @Filmstorm
      @Filmstorm  6 лет назад +1

      Yes Geo, I think that would be completely doable. You just need to setup a canvas with your animation squares and then in Playmaker link up fsm to a drag of the different UI elements into another desired set of squares (or the actual order of animations to play back) - kinda like Absolver.
      Then you just cross fade the animations in the order of the skills that are in allotted boxes. 📦 👍🏼

    • @geogkoumas9191
      @geogkoumas9191 6 лет назад +1

      Thank you very much for your time! i really appreciate it!!!

  • @halfblue2678
    @halfblue2678 4 года назад

    Is this still usable for Unity 2019.3.0f6? It seems like it doesn't work for me.

  • @atirutwattanamongkol8353
    @atirutwattanamongkol8353 4 года назад

    Oh boi the character have some serious underbite

  • @ahmedasban367
    @ahmedasban367 5 лет назад +5

    i have problèm with animation !! i need his tuto if you can't ^^'please

    • @Filmstorm
      @Filmstorm  5 лет назад

      What’s happening with your animation? How can we help?

  • @gamingwithraghav7161
    @gamingwithraghav7161 5 лет назад +18

    Sir how can we make it JUMP

    • @Addercus
      @Addercus 4 года назад +4

      @@SLthenus if (Input.GetButtonDown("Jump") && controller.isGrounded)
      {
      moveDirection.y = jumpHeight;
      }
      moveDirection.y -= gravityValue * Time.deltaTime;
      controller.Move(moveDirection * Time.deltaTime);

  • @devpatel1346
    @devpatel1346 5 лет назад

    Hey, the video is great! But i am having some problems, i have tried to read your responses in the comments but i can't seem to fix it. my animation stays in place in the blendtree and animation viewer its always on the red blue and white axis under him. but when in the world it doesn't move the character and doesn't even play the animation properly. The animation just gets stuck. Please Help. Thanks!

    • @devpatel1346
      @devpatel1346 5 лет назад

      nvm, i figured it out by reading unity's form about "root motions", but still thanks for the amazing video!

  • @erikfrits257
    @erikfrits257 4 года назад

    What is controller used for? My script could not get it automatically and was giving me errors, So I have deleted this var from code completely.

  • @gamingwithraghav7161
    @gamingwithraghav7161 5 лет назад +2

    BRO HOW CAN WE MAKE TO WALK SAPRETLY AND RUNNING SAPRETLY BY PRESSING ( SHIFT + W ) OR any key

    • @gamingwithraghav7161
      @gamingwithraghav7161 5 лет назад +1

      I want that when I press ( W ) then my character walk BUT when I press ( SHIFT + W ) then my character will run..

    • @gamingwithraghav7161
      @gamingwithraghav7161 5 лет назад +1

      Plz help me bro

    • @JohnnyGontier
      @JohnnyGontier 4 года назад

      @@gamingwithraghav7161 try to add that variable to blend tree
      if we take the example of this video u have Input Magnitude is 0 to idle 0.5 to walk and 1 to run but if u add the run button then u will have for input magnitude 0 and for shift 0 is the idle state and 1 for magnitude and 0 for shift is walk state and 1 for magnitude and 1 for shift is the running state.

  • @undergoingsin9577
    @undergoingsin9577 5 лет назад

    Is there anyway i can just copy and paste this? =)

  • @XZYSquare
    @XZYSquare 2 года назад

    small thing, your voice seems quieter than the game or music

  • @nathanfox5633
    @nathanfox5633 5 лет назад

    My character is animating and rotating fine, he just won't move. (Running on the spot!) Followed the code as closely as I could, have I missed something? Any help would be appreciated!

    • @angela_jx
      @angela_jx 4 года назад

      Probably really late but it might be because you have apply root motion disabled in your animator component

  • @yusufalibrahim1994
    @yusufalibrahim1994 4 года назад

    name of music at beginning?

  • @mxsxvm3997
    @mxsxvm3997 2 года назад +1

    I need help with the character animation.
    I set it up but my character is stuck in the Plane...
    Can someone pls help me??

  • @sureshrawal7913
    @sureshrawal7913 6 лет назад

    How to get playmaker please help me

  • @GameOnBudget
    @GameOnBudget 4 года назад +1

    Can we move our character with joystick on android platform with your script. ????

  • @aquivergames1735
    @aquivergames1735 5 лет назад

    I can't able to extract my script In playmaker

  • @ilanraz9489
    @ilanraz9489 2 года назад +1

    Any source code for the tutorial, please?

  • @Wildy333
    @Wildy333 4 года назад

    For some reason my character won't rotate, the movement is fine but the character doesn't turn. I even copy the code from gitHub. Any ideas how to fix?

    • @Wildy333
      @Wildy333 4 года назад

      Figured it out, had a separate camera script on a parent object. Got rid of it and everything works like a charm.

  • @neyapmamgerek
    @neyapmamgerek 4 года назад

    Hi! I have a problem, the movement speed doubles when I press W+D or W+D etc. How can I fix this issue? Can someone help me please?

    • @stupidbrad
      @stupidbrad 4 года назад

      do .normalize in a line somehwere, idk all i know is to put normalize

  • @glacioofficial2698
    @glacioofficial2698 6 лет назад +6

    And you didn’t include jump.
    Though, a REALLY good script.

    • @Filmstorm
      @Filmstorm  6 лет назад +3

      Awesome thanks for the feedback, I’ve made a jumping version of the script, will share the update in a quick tutorial 👍🏼

    • @domo99ify
      @domo99ify 6 лет назад

      please add the run and dash features too, that tutorial works great for me, Thanks! :)

    • @0PuntoyFinal0
      @0PuntoyFinal0 5 лет назад +1

      Have you done it yet? Cant wait to see that!!!!

    • @Masterix07
      @Masterix07 5 лет назад +1

      @@0PuntoyFinal0 yep I waiting too :) I do something but dont work with root motion ...

  • @previous1591
    @previous1591 4 года назад

    The grounding does not work unfortunately

  • @nicooo3994
    @nicooo3994 4 года назад

    How do I make the player walk faster?