#i just gets stuck on my running

1 messages · Page 1 of 1 (latest)

thorny tendon
#

what are the transitions for animator

dusk crypt
#

transition error yea

grand bison
#

i got rid of the jump

#

at this point i feel like the trigger would be better off to be used

thorny tendon
grand bison
thorny tendon
grand bison
thorny tendon
grand bison
#

the jump should be false shouldnt it

thorny tendon
#

why do u have tru/false

#

on the same tranistion

grand bison
#

i dont actually know

thorny tendon
#

and where is jump

grand bison
#

just added them

#

the game contantly thinks im moving for some reason

#

imma have to set the value higher i think

thorny tendon
grand bison
#

cause the game thinks im moving a lil bit for some reason

thorny tendon
#

make a video then cause I have no Idea what ur seeing

grand bison
#

hold on why is the recording so bad 1 sec

thorny tendon
#

yeah is freezing

#

cant understand whats happening

#

also keep IsMoving unchecked when starting the game

grand bison
grand bison
#

again jesus

#

lemme just scale down the quality some more

thorny tendon
#

btw

#

if u wanna test ur game faster

grand bison
#

but i dont think my laptop wants to work with me today

#

but as you could tell it was giving me the isMoving parameter without moving

#

i would stood still and its saying im moving

#

isnt there meant to be a true or false statement in these?

thorny tendon
#

..uhh thats huge

#

isMoving = characterController.velocity.magnitude > 0.001f

grand bison
#

what?

thorny tendon
#

yes

grand bison
#

no like where is it going and wat is it doing?

thorny tendon
#

Oh my bad, make a bool for that and remove what u currently have

#

simplify it to have that in update

#
isMoving =  characterController.velocity.magnitude > 0.001f;
animator.SetBool("isMoving" isMoving);```
grand bison
thorny tendon
grand bison
#

im so confused

thorny tendon
#

its annoying that ur using VSCode

#

cause its nt configured

#

characterController is ur controller

grand bison
#

yeah

thorny tendon
#

and move those two out of this if

#

no need

#
isMoving =  character.velocity.magnitude > 0.001f;
animator.SetBool("isMoving" isMoving);```
grand bison
#

done

thorny tendon
#

ok where did u add it

grand bison
#

so now what

thorny tendon
#

in script

grand bison
thorny tendon
#

private bool isMoving;

grand bison
#

okay now its added

thorny tendon
#

ok now test

grand bison
#

"the name 'character' does not exist in the current context"

thorny tendon
#

yes

#

dont u see the obvious error

#

bro if you dont configure the Visual Studio or use VS2022 Im not helping further

#

its against the rules

grand bison
#

velocity.magnitude

#

okay gimme 5 mins to install it

thorny tendon
grand bison
thorny tendon
#

ok, configure it then show me its working

grand bison
#

community professional or enterprise?

thorny tendon
grand bison
#

you got a tut for configuring or nah

thorny tendon
grand bison
#

does that mean im done?

thorny tendon
#

you installed the 2019 version or u had already ?

#

how many versions u got

#

open Visual Studio Installer

grand bison
thorny tendon
grand bison
#

wym?

thorny tendon
#

search Visual Studio installer

#

on your PC

grand bison
thorny tendon
#

Open it

thorny tendon
grand bison
#

yeah

thorny tendon
#

do you have Unity Workload installed

grand bison
#

yeah

thorny tendon
#

whats bottom right corner say

#

Install or 0B ?

#

or -negative

grand bison
thorny tendon
#

so u installed it already

grand bison
#

yeah

thorny tendon
#

did u switch the editor and open script in unity?

grand bison
#

yeah

thorny tendon
#

show VS now

#

open ur script

#

Third Person thingg

grand bison
#

lemme sign in 1 sce

thorny tendon
#

ok

grand bison
#

im now on vs

thorny tendon
grand bison
thorny tendon
#

now fix line 37

grand bison
#

better?

thorny tendon
#

now whats error say

#

see it will help u

#

isMoving = controller.velocity.magnitude >= 0.001f

grand bison
#

its still running w out me doing anything

thorny tendon
#

do you have .SetBool(isMoving anywhere else in script?

grand bison
#

i got rid of one but its still hapenning

thorny tendon
#

its probably your transitions in animator tho

#

show all transitions from Idle to jog

grand bison
thorny tendon
#

Idle >>> Jog

#

and uncheck any exit time

grand bison
#

i sent both

#

all exit times are turned off

thorny tendon
grand bison
#

welleverything is working

#

except from my walking animation now

#

what code did i have before

thorny tendon
#

wdym

grand bison
#

my jump works as its supposed to

#

when i jump the animation plays

#

but now my run isnt working

thorny tendon
#

did you check what i asked

#

is the isMoving bool checked in playmode

grand bison
#

no

#

not even when i move

thorny tendon
#

add this in update Debug.Log(controller.velocity.magnitude);

#

move around and take a screenshot of console in playmode

grand bison
#

all good?

thorny tendon
#

why did u put 1?

#

0.001f

#

literally I did not write >= 1

#

why did u change it

grand bison
thorny tendon
grand bison
#

i was viewing the concept as a deadzone

#

oh okay sorry

thorny tendon
#

if you want a gradual animation into move you need to start using blend trees and float paramater animator speed

thorny tendon
grand bison
thorny tendon
grand bison
#

ya

thorny tendon
#

it should

#

Debug.Log(isMoving)

#

and movee around

grand bison
#

shall i keep the other debug or replace?

thorny tendon
#

hit collapse on console tho

grand bison
thorny tendon
#

so the bool works.

grand bison
#

yeah but not properly for some reason

#

im thinking i should just switch back to the older code i had earlier?

#

i dont know

#

what do you recommend?

thorny tendon
grand bison
#

i can send the full code i have rn?

thorny tendon
grand bison
#

thats what i have

thorny tendon
grand bison
thorny tendon
grand bison
thorny tendon
#

do you have Loop enabled on Jogging clip

grand bison
thorny tendon
grand bison
thorny tendon
grand bison
#

ill test again

thorny tendon
#

still didnt see the video

#

whats the character do when u walk

grand bison
#

just walks

#

he doesnt do the idle animation

#

i start the game and he just starts running without me touching anything

thorny tendon
#

bro ur confusing the shit out of me, first u said he wouldnt jog

#

now u saying he doesnt idle

#

which one is it

grand bison
#

im confused too

#

it was one

#

but then we messed with the code

#

now its not working again

thorny tendon
#

nothing is wrong with the code

#

if all the values show they are correct

#

can you actually SHOW the issue

#

cause ur not clear

grand bison
#

well one thing is wheni load in, the is moving is auto on, like before i start its disabled, but when i start the game it enaboles

#

i have a video that i took on my phone, if you dm me ill send the vid

#

oh wait i got it

thorny tendon
thorny tendon
grand bison
grand bison
#

like the amount before it classes as ismoving?

thorny tendon
#

maybe 0.001f is too fine

#

something maybe moving ur character

#

is RootMotion on

#

ur idle animation could be moving the controller slightly

#

causing isMoving threshold to go above 0.001f

grand bison
#

root motion is on yeah

#

i fixed it

#

i think it was the code

thorny tendon
#

how was it the code?

grand bison
#

i dont know why but it wasnt agreeing with whatever was going on

#

i readded the old code just in case

#

and my walk and idle work as well as the jump

thorny tendon
#

did u even try what i said/

grand bison
#

yeah

thorny tendon
#

what did u try

grand bison
#

i tried changing the threshold

#

and i turned off root motion