#i just gets stuck on my running
1 messages · Page 1 of 1 (latest)
transition error yea
i got rid of the jump
at this point i feel like the trigger would be better off to be used
can u show wat the conditions for exit is on jump ?
to which one? idle or jogging?
both
uhh
i dont actually know
and where is jump
just added them
the game contantly thinks im moving for some reason
imma have to set the value higher i think
the value of what?
when to play the animation after moving
cause the game thinks im moving a lil bit for some reason
make a video then cause I have no Idea what ur seeing
yeah is freezing
cant understand whats happening
also keep IsMoving unchecked when starting the game
yeah
again jesus
lemme just scale down the quality some more
okay will do
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?
what?
yes
no like where is it going and wat is it doing?
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);```
?
no
im so confused
its annoying that ur using VSCode
cause its nt configured
characterController is ur controller
yeah
and move those two out of this if
no need
isMoving = character.velocity.magnitude > 0.001f;
animator.SetBool("isMoving" isMoving);```
ok where did u add it
i dont think?
private bool isMoving;
okay now its added
ok now test
"the name 'character' does not exist in the current context"
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
am installing now
ok, configure it then show me its working
community professional or enterprise?
community
you got a tut for configuring or nah
it takes a few steps , yea
its very simple , ur just adding the workload and then switch it inside the editor
does that mean im done?
uh
you installed the 2019 version or u had already ?
how many versions u got
open Visual Studio Installer
ive got the 2022 version
ok screenshot ur Visual Studio Installer tho
wym?
Open it
click Modify
yeah
do you have Unity Workload installed
0B
so u installed it already
yeah
did u switch the editor and open script in unity?
yeah
lemme sign in 1 sce
ok
im now on vs
ss
good (error highlighting)
now whats error say
see it will help u
isMoving = controller.velocity.magnitude >= 0.001f
its still running w out me doing anything
do you have .SetBool(isMoving anywhere else in script?
i got rid of one but its still hapenning
paste the current code on pastesite
its probably your transitions in animator tho
show all transitions from Idle to jog
when u press playmode is the bool in animator checked without you pressing anything
welleverything is working
except from my walking animation now
what code did i have before
wdym
my jump works as its supposed to
when i jump the animation plays
but now my run isnt working
add this in update Debug.Log(controller.velocity.magnitude);
move around and take a screenshot of console in playmode
all good?
i was experimenting
leave it at 0.001f
if you want a gradual animation into move you need to start using blend trees and float paramater animator speed
now it should be animating correct
unfortunately not
huh did u save the new 0.001f
ya
shall i keep the other debug or replace?
u can keep it if u want or comment it out with //
hit collapse on console tho
so the bool works.
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?
which part you took off that from old code
i can send the full code i have rn?
ok
ok can u screenshot the Animator in playmode while u moving
u see the logic is working
yeah for sure
do you have Loop enabled on Jogging clip
so hows it not working llol..
i have absolutely no clue
did u try moving without jumping ?
just walks
he doesnt do the idle animation
i start the game and he just starts running without me touching anything
bro ur confusing the shit out of me, first u said he wouldnt jog
now u saying he doesnt idle
which one is it
im confused too
it was one
but then we messed with the code
now its not working again
nothing is wrong with the code
if all the values show they are correct
can you actually SHOW the issue
cause ur not clear
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
try increasing the threshold maybe
?
the video
wdym threshold?
like the amount before it classes as ismoving?
try 0.01
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
how was it the code?
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
did u even try what i said/
yeah
what did u try