#Can't Go forward!

1 messages · Page 1 of 1 (latest)

jolly latch
#

Here!

coral spindle
#

now FIRST the animation clip in the Animation window found under Window > Animation

jolly latch
#

You mean I take a pic? OK tehn!

coral spindle
#

yes...

elfin raven
#

Yes, a screenshot. That we have all asked this entire time

quartz crag
#

😄

elfin raven
#

not a soul said anything about a video

jolly latch
#

Ill psate a pic but I'm not sure what you want!

coral spindle
jolly latch
#

It's all dots!

coral spindle
#

and screenshot until you reach the bottom

jolly latch
#

Ok, one by one...

coral spindle
#

only 2-3 screenshots will be required, not much

jolly latch
#

yeah

coral spindle
#

thats the exact same thing

#

you didnt scroll

elfin raven
#

Also look at your moving animation not idle

jolly latch
elfin raven
jolly latch
#

OOfnagain!

quartz crag
#

i hope you aren't trolling lol

coral spindle
#

no hes just 12 and doesnt have a brain

jolly latch
#

Watch your mouths boys!

#

this is the bottom one!

coral spindle
#

you were told to go to the walking one

jolly latch
#

Ughr!

#

aight!

uneven cliff
#

if you take a second to read, you wouldnt need to use Ughr!

elfin raven
jolly latch
#

that's it!

coral spindle
jolly latch
#

Yup!

#

that's the bottom!

#

if that doesn't make you upset postponing the subject to 7-9 hours. Gonna sleep a little, sorry guys!

jolly latch
#

Alright! What should I do now? I posted the pic above! Anything to do?

elfin raven
#

Does the player move if you disable the animator

jolly latch
elfin raven
#

Post the code again. It's been a while

jolly latch
#

Ok.

jolly latch
elfin raven
#

Show a screenshot of the inspector of this component on the player

jolly latch
#

I used all the three ways of moving the RigidBody in the code and yet it didn't work!
MovePosition, Velocity, AddForce!

#

The plaer has a collider also the terrain!

elfin raven
#

Add this line after your add force, in both places.
Debug.Log($"Player's velocity is {rigidbody.velocity}");

jolly latch
jolly latch
#

You know when I press the key W, the animation plays and doesn't stop when I put away my finger!
I've also tried to diable the Animator as you said above and doesn't move 😦

#

the player also slowly falls!

elfin raven
jolly latch
elfin raven
#

Unless you changed it

jolly latch
#

take a look!

elfin raven
#

Yes that is velocity. Your position is different. You can see it

jolly latch
#

I'm thinking it's the rigidbody issue! See the code? it's written private new Rigidbody

jolly latch
elfin raven
#

Just to be sure, Change the log to this:
Debug.Log($"Player's velocity is {rigidbody.velocity}, position is {transform.position}");

elfin raven
elfin raven
jolly latch
elfin raven
#

Then run it again and send another screenshot

jolly latch
#

the player was moving!

elfin raven
#

Default force mode is already meant for per frame, you don't need to make it so with Delta time

jolly latch
#

Wait! it's not working! it's sliding on the terrain!

#

even moves when in the sky, without pressing any button!

elfin raven
jolly latch
#

I've made it move by using ForceMode.Impulse but it was going too fast! set Impulse to Force it was same. But when I use it with Vector3 it says it can't take 4 arguments ! because V3 only for XZY.

jolly latch
jolly latch
#

cause it was already not moving! Had no other way so I did this!

elfin raven
#

It's like you just ignore the things I say to change, change completely different things, then get mad when it doesn't work

jolly latch
#

Aight, changed it to as it was! No Idea why it doesn't move! Used so many ways across the web and nothing!

elfin raven
#

Wait I thought the issue was that it wouldn't stop moving

jolly latch
elfin raven
#

Because you're setting the velocity to the same thing whether you're pressing the button or not.

jolly latch
#

You mean even if my finger is not on the button?