#can anyone halp me with changing

1 messages · Page 1 of 1 (latest)

plush comet
#

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

proven idol
#

i made this

#

but no idea how to switch them in bettween

#

i got this

#

but the code from the tutorial didnt work

plush comet
#

Try selecting one of the arrows. These are transitions, which allow you to set conditions telling when they should happen

proven idol
#

i did that

plush comet
#

can you show a screenshot of one of them selected? The Inspector displays transition and condition options

proven idol
#

i got some code

plush comet
#

it's ok, we can debug this without the code...

#

for now

proven idol
#

oh..

plush comet
#

could you select the walk node and show me what Inspector looks like?

proven idol
#

like this ?

plush comet
#

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?

proven idol
#

that is the name of the site i got it from :D

plush comet
#

understood... I'm just trying to make sure it has a working walk clip

proven idol
#

it worked before ....

plush comet
#

Try these steps, it will help me make sure the walk state is set up correctly...

#
  1. In the Animator window with the Walk state selected, click on the mixamo.com entry in the Motion field.
  2. 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)
#
  1. 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?

proven idol
#

ill try ...

#

i renamed it

#

em...

plush comet
#

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...

plush comet
#

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?

proven idol
#

yeee

#

it does the animation

plush comet
#

cool, that probably means the Animator Controller is set up correctly and it might be something with your code

proven idol
#

ye so..

#

dont judge me :D

#

chat GPT might be the one who actually made the code

#

for this

plush comet
#

woohoo!

proven idol
#

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

plush comet
proven idol
#

oh thank you C:

plush comet
#

you're welcome 👍

proven idol
#

last thing :3... what's the error about :?

#

i dont see it

plush comet
#

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);

proven idol
#

ooohhh.

#

shit my bad