Unity Endless Game - Part 2 : Moving The Player ( player running )

preview_player
Показать описание
In this video, our player will be able to move forward when we start the game. We will use the character controller component (a component you can add to your player. Its function is to move the player).

● 3D Models Sketchfab:

--------------------------------------------------------------------
✅ My current Productivity Setup 👇:

--------------------------------------------------------------------

FOLLOW ME:
--------------------------------------------------------------------

► All content by GDTitans is 100% free. I believe that education should be freely available to everyone.
Рекомендации по теме
Комментарии
Автор

Thank you so much for teaching, major respect.
No BS, straight to the point tutorials

adusparx
Автор

I'm putting the instruction for my future reference

- Create plane and change the Z scale
- Create a capsule
- Change camera setting
- Create new materials for the ground and the player
- Change player position
- Create script folder, and then create PlayerController, assign it to the Player object
- Write characterComponent
- Create Controller in the PlayerController script
- Get component
- Create a new variable vector3 direction
- Create a new method called fixed update, create new class move
- Write direction.z = forwardSpeed in the update method
- Create the forwardSpeed variable

CaptainSeanTV
Автор

Very good tutorial for someone new to unity, thanks a lot!

Nemanja
Автор

hi,i follow ur script but i found that if my player start at middle lane,the player‘s character controller will always stay at the middle lane,it does not move with player. I expect it is the issue of update() and fixedupdate() but i could not modify😢

desmondyap
Автор

HELP ME PLEASE .I don't know why my player seems to vibrate when it moves to the left or right but if the player is in the middle nothing happens.

devont-fi
Автор

hey for some reason the thing moves for sometime and suddely stops why please answer

margs_aviation
Автор

the one script you have does not work this line of code is not working : private charatare controller does not show the character controller when I have the component pls help

idklolcool
Автор

In endless runner how I have to set my own player with the replacement or existing player

foodblogger
Автор

I followed the tutorial to make sure the script is correct many times and it is correct but my player can’t seem to move forward. Any tips or helps that anyone can give me?

NaAnBoyGaming
Автор

I used time.deltatime for the forward movement and it works perfectly on the unity editor but lags on android build....how to solve that issue

SSwitchS
Автор

Player Controller.cs(54, 3): error CS0106: The modifier 'private' is not valid for this item

ftoome
Автор

Can you help: Spawning tiles are coming at y=0, i would like the y to be 5. how can we do that?

TechWrathTV
Автор

The forward speed is not showing in my inspector under the player controller components as shown in the video 😭💀

GrilledChickenRamyun
Автор

Why is the movement snappy?
The lane change is not smooth? why?

austineban
Автор

Hello GDTitans
In my code CharacterController wasn't green
Will that affect the code

malikthetalentmaker
Автор

Hey, thanks for the tutorials. Can you give a solution to the jittery, laggy movement of the character please?

eren_guneri
Автор

i got this error "unity object reference not set to an instance of an object"

mehdiwow
Автор

help when i typed the script forward speed did not show in the inspector

mattt
Автор

my player falls slowly throu the ground when i hit play, pls help me

kampfmops
Автор

I copied the script exactly and my player isn't moving :(

MadelineBean