This is the First script code (Changed a bit works the same) !(EDIT)! this is new code to reduce glide using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerMove : MonoBehaviour { public float moveSpeed = 5f; // Speed of the player public CharacterController characterController; // Reference to the CharacterController public Transform cameraTransform; // Reference to the Camera Transform private Vector3 moveInput; // Update is called once per frame void Update() { MovePlayer(); } void MovePlayer() { // Get input float verticalInput = Input.GetAxis("Vertical"); float horizontalInput = Input.GetAxis("Horizontal"); // Calculate movement direction Vector3 verticalMove = cameraTransform.forward * verticalInput; Vector3 horizontalMove = cameraTransform.right * horizontalInput; // Combine movements moveInput = horizontalMove + verticalMove; if (moveInput.magnitude > 1f) { moveInput.Normalize(); } // Apply movement characterController.Move(moveInput * moveSpeed * Time.deltaTime); // Stop the player immediately if there is no input if (verticalInput == 0 && horizontalInput == 0) { moveInput = Vector3.zero; characterController.Move(moveInput); } } }
@tortieunfound29 күн бұрын
The bullet pack that you use has been deleted. What can I use instead?
@jbwilliams29429 күн бұрын
It could have been better if you spoke and explained what you were doing. Thanks anyway.
@cantbelieu18 күн бұрын
yea and if he posted code in desc😔😔
@BadApple-um7vbАй бұрын
Interesting i will try it tomorrow
@SunsetVR42Ай бұрын
It says float can't convert to Vector3, lots of stuffs going wrong and I'm following every direction clearly😞
@ghali4170Ай бұрын
there were many things that were added here but was not shown :<
@maurocunha9770Ай бұрын
Just a small detail, don't know if you forgot to record it or if it was some kind of bug on my end, but the video is missing the part of assigning the player character to the animator variable in the inspector, thus resulting in a 'UnassigedReferenceException' and the moving animations not working. Cheers, I'm really enjoying these videos, would just wish it had some kind of voice over!
@nobody3728-k7sАй бұрын
too underrated brooo, you really deserve billions ,you are far better than many other youtubers . great job mate luv u frm india😍😍😍
@BKD639Ай бұрын
It a meme ?
@anastascompany5828Ай бұрын
Real hero, unfortunately didn't find that video 2 days ago.
@superbabythanos1Ай бұрын
can i have the code for the script?
@DaNi-rf9hcАй бұрын
Oh thank you.. now i can use blender 3d again
@QuaninVNАй бұрын
It keep showing the maxHealth and the slider keeps lock at maxValue
@taimourkhan3410Ай бұрын
great tutorial
@phoenixx714Ай бұрын
Donde esta el resto del tutorial?? al parecer quedo incompleto
@chuongbmgvlog992 ай бұрын
i don't sign in unity, motherf*ck it
@chuongbmgvlog992 ай бұрын
how can u add mouse sensitivity?
@sarwarikhan36812 ай бұрын
I am from India if you add voice the video get viral
@sarwarikhan36812 ай бұрын
I am from India if you add voice the video get viral
How can u be this lazy, u can do it urself in 2 mins
@LanKelley3 ай бұрын
we could use this model
@Karanja3d3 ай бұрын
nice work
@alisamokarenko3 ай бұрын
@kash9663 ай бұрын
Keep working ❤❤❤❤
@terryblend3 ай бұрын
Well done, Keep it up!
@besorialwi90773 ай бұрын
semagat bang
@besorialwi90773 ай бұрын
i from indonesia mantap bang rinci banget
@giddyhaddcock_gaming53964 ай бұрын
What is NavMesh Surface and what is NavMeshAgent???
@denis_na_yuge4 ай бұрын
Удалось формат поправить, но цифры не отсчитывает..
@denis_na_yuge4 ай бұрын
Почти получилось!))) В скрипте отсчет идет (в инспекторе), а на экране меняется формат с 0:00 на 00:(00:00) и отсчета нет...((( не пойму в чем дело... Есть варианты?
@MiamiSunriseGames4 ай бұрын
Смотри видео внимательнее, других вариантов у меня нет)) Или другие уроки глянь))
@MiamiSunriseGames4 ай бұрын
где-то ты ошибся)
@denis_na_yuge4 ай бұрын
Другие поищу. Все перепроверил сто раз
@123void65 ай бұрын
Great tutorial!
@LifeAsANoun5 ай бұрын
Oh no... you aren't one of those people who doesn't respond to questions and comments, are you?
@MiamiSunriseGames5 ай бұрын
Provocative question))
@Animfub7365 ай бұрын
Can you make a tutorial on how to create a Doom clone in the future?
@MiamiSunriseGames5 ай бұрын
maybe
@fran-diazgil80865 ай бұрын
Keep up the good work! Im really enjoying the uploads🙃
@Animfub7365 ай бұрын
Nice tutorial
@amv63905 ай бұрын
Ты лучший)
@yosko5975 ай бұрын
Hey can u make a video on how to make an archery tower defense kind of Game in unity
@damonp63665 ай бұрын
"Promo sm" 😂
@lamadox91405 ай бұрын
you are my savior
@lito715215 ай бұрын
awesome tutorial, keep up the good work😃
@AnandJobby5 ай бұрын
Pls add voiceover
@wasd._productions5 ай бұрын
Thanks so much this really helpful
@Glasraf6 ай бұрын
Give my script or im not your sub
@herohuntstudios6 ай бұрын
Thumbnail looks siiiiick
@LAWDOG20246 ай бұрын
thanks
@LAWDOG20246 ай бұрын
loving the vids thank you for your dedication to this series I just started making my game today
Пікірлер
This is the First script code (Changed a bit works the same) !(EDIT)! this is new code to reduce glide using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerMove : MonoBehaviour { public float moveSpeed = 5f; // Speed of the player public CharacterController characterController; // Reference to the CharacterController public Transform cameraTransform; // Reference to the Camera Transform private Vector3 moveInput; // Update is called once per frame void Update() { MovePlayer(); } void MovePlayer() { // Get input float verticalInput = Input.GetAxis("Vertical"); float horizontalInput = Input.GetAxis("Horizontal"); // Calculate movement direction Vector3 verticalMove = cameraTransform.forward * verticalInput; Vector3 horizontalMove = cameraTransform.right * horizontalInput; // Combine movements moveInput = horizontalMove + verticalMove; if (moveInput.magnitude > 1f) { moveInput.Normalize(); } // Apply movement characterController.Move(moveInput * moveSpeed * Time.deltaTime); // Stop the player immediately if there is no input if (verticalInput == 0 && horizontalInput == 0) { moveInput = Vector3.zero; characterController.Move(moveInput); } } }
The bullet pack that you use has been deleted. What can I use instead?
It could have been better if you spoke and explained what you were doing. Thanks anyway.
yea and if he posted code in desc😔😔
Interesting i will try it tomorrow
It says float can't convert to Vector3, lots of stuffs going wrong and I'm following every direction clearly😞
there were many things that were added here but was not shown :<
Just a small detail, don't know if you forgot to record it or if it was some kind of bug on my end, but the video is missing the part of assigning the player character to the animator variable in the inspector, thus resulting in a 'UnassigedReferenceException' and the moving animations not working. Cheers, I'm really enjoying these videos, would just wish it had some kind of voice over!
too underrated brooo, you really deserve billions ,you are far better than many other youtubers . great job mate luv u frm india😍😍😍
It a meme ?
Real hero, unfortunately didn't find that video 2 days ago.
can i have the code for the script?
Oh thank you.. now i can use blender 3d again
It keep showing the maxHealth and the slider keeps lock at maxValue
great tutorial
Donde esta el resto del tutorial?? al parecer quedo incompleto
i don't sign in unity, motherf*ck it
how can u add mouse sensitivity?
I am from India if you add voice the video get viral
I am from India if you add voice the video get viral
Keep going 😆👍🏻
took you 30 minutes to do this
i drew that in 5 minutes
kzread.info/dash/bejne/dZZ3mrVyeabXh9o.htmlsi=qwm2Mo6BVQXWsCbg
give me link to it
How can u be this lazy, u can do it urself in 2 mins
we could use this model
nice work
Keep working ❤❤❤❤
Well done, Keep it up!
semagat bang
i from indonesia mantap bang rinci banget
What is NavMesh Surface and what is NavMeshAgent???
Удалось формат поправить, но цифры не отсчитывает..
Почти получилось!))) В скрипте отсчет идет (в инспекторе), а на экране меняется формат с 0:00 на 00:(00:00) и отсчета нет...((( не пойму в чем дело... Есть варианты?
Смотри видео внимательнее, других вариантов у меня нет)) Или другие уроки глянь))
где-то ты ошибся)
Другие поищу. Все перепроверил сто раз
Great tutorial!
Oh no... you aren't one of those people who doesn't respond to questions and comments, are you?
Provocative question))
Can you make a tutorial on how to create a Doom clone in the future?
maybe
Keep up the good work! Im really enjoying the uploads🙃
Nice tutorial
Ты лучший)
Hey can u make a video on how to make an archery tower defense kind of Game in unity
"Promo sm" 😂
you are my savior
awesome tutorial, keep up the good work😃
Pls add voiceover
Thanks so much this really helpful
Give my script or im not your sub
Thumbnail looks siiiiick
thanks
loving the vids thank you for your dedication to this series I just started making my game today