#FIRST PERSON MOVEMENT (Brackeys)

1 messages · Page 1 of 1 (latest)

manic pivot
#

hello, I watched the entire video without making any mistakes in the code etc, but my character still does not move and is not subject to gravity, I'm at 14:07 minutes

#

if anyone can help me if possible, thank you (I point out that I am a bit of a beginner)

desert vapor
open ginkgo
#

The character controller is entirely separate from the physics system, no rigidbody required.

hollow stream
#

@manic pivot what is the video link?

heady solar
#

Did you press play?

cinder sedge
#

Character Controller does not include gravity

hollow stream
#

you watched the entire video or you're at 14:07 minutes, which is it

hollow stream
#

and you're SURE you did all the code?

manic pivot
#

I watched the whole video and my character doesn't move

hollow stream
#

you're clicking play right?

manic pivot
hollow stream
#

why is the pubic variable speed not being serialized in the inspector

manic pivot
#

I don't understand

hollow stream
#

show your code again

manic pivot
#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PlayerMovement : MonoBehaviour
{
public CharacterController controller;

public float speed = 12f;

// Start is called before the first frame update
void Start()
{
    
}

// Update is called once per frame
void Update()
{
    float x = Input.GetAxis("Hozizontal");
    float z = Input.GetAxis("Vertical");

    Vector3 move = transform.right * x + transform.forward * z;

    controller.Move(move * speed * Time.deltaTime);
}

}

hollow stream
#

you spelled horizontal wrong

manic pivot
#

my character still doesn't move

hollow stream
#

take a screenshot again

manic pivot
#

omggg

#

my player move !!

hollow stream
#

bruh

manic pivot
#

I just didn't put this:

hollow stream
#

yep that would do it

#

is gravity working too?

manic pivot
#

no gravity

hollow stream
#

ok i'd watch the entire video again just in case you missed some code

manic pivot
#

yes i go