#can anyone halp me with changing
1 messages · Page 1 of 1 (latest)
Hi, I can help you take a look at this. Could you describe what you want to do? If you have any screenshots that would help too
i made this
but no idea how to switch them in bettween
i got this
but the code from the tutorial didnt work
Try selecting one of the arrows. These are transitions, which allow you to set conditions telling when they should happen
i did that
can you show a screenshot of one of them selected? The Inspector displays transition and condition options
oh..
could you select the walk node and show me what Inspector looks like?
like this ?
I'm not sure what "mixamo.com" means in the clip node... could you select that in the project view and check to make sure it's an actual walk clip?
understood... I'm just trying to make sure it has a working walk clip
it worked before ....
Try these steps, it will help me make sure the walk state is set up correctly...
- In the Animator window with the Walk state selected, click on the mixamo.com entry in the Motion field.
- See what that highlights in Project view (just to make sure we are looking at the same clip that is referenced in the walk state)
- with that clip selected in Project view, look in the inspector at the bottom preview and make sure it looks correct (walking)
when you get that far could you send me a screenshot?
ok cool, I just wanted to make sure it's an actual clip. I wasn't sure because it's not showing in the transition in your screenshot above with the transition conditions...
ye ye
ok one thing we can try...
When Unity is in Play mode you can manually toggle the Paramaters in Animator window... Could you try this and try toggling the IsMoving paramater and see if it does anything?
cool, that probably means the Animator Controller is set up correctly and it might be something with your code
ye so..
dont judge me :D
chat GPT might be the one who actually made the code
for this
woohoo!
i did most of the movment myself tho :D
everything works exept the wallking
oh never mind am stupid
one thing :?
can i make it so that the camera is rotating with the player and not the ather way around :?
is there like a offset of some sort
wait...
never mind
yes, the best way to make a camera like that is with Cinemachine. Here is the documentation for the free look camera...
https://docs.unity3d.com/Packages/com.unity.cinemachine@2.3/manual/CinemachineFreeLook.html
oh thank you C:
you're welcome 👍
It's probably referring to the name of the state in the Animator window.
Also - to set the parameter IsMoving we don't want to return it like you are doing here. It needs to be set on the animator.
First you need to get the animator in the start function like this:
private Animator animator;
void Start()
{
animator = gameObject.GetComponent<Animator>();
rb = gameObject.GetComponent<RigidBody>(); // I noticed a syntax error here too
then you can set the IsMoving parameter in the Update function like this:
animator.SetBool("IsMoving", true);