3D ENDLESS RUNNER IN UNITY - PLAYER (Pt 1)

  Рет қаралды 89,489

Practical Programming

Practical Programming

3 жыл бұрын

Playlist: bit.ly/endless-runner-in-unity
Github: github.com/SK-Studios/3D-Endl...
In the first part of this beginner series on creating a 3D endless runner in Unity, we will be creating the player. We will make it automatically move forwards, and be able to be controlled left and right. We will also make the camera follow the player.
How to Install Unity (not sponsored): • How to Install Unity G...
.............................................................................................
All Unity Tutorials: bit.ly/all-unity-tutorials
Beginner Unity Tutorials: bit.ly/unity-beginner-tutorials
Intermediate Unity Tutorials: bit.ly/unity-intermediate-tut...
Main Menu in Unity: bit.ly/unity-main-menu
Playlist: bit.ly/endless-runner-in-unity
.............................................................................................
♥ Subscribe: bit.ly/sk-studios-youtube
● Instagram: / _skstudios_
● Itch: sk-studios.itch.io
● Stealth (Latest Game): sk-studios.itch.io/stealth
..............................................................................................

Пікірлер: 108
@christophersadri6464
@christophersadri6464 2 жыл бұрын
Dude, ty for explaining this stuff so simplistically. I've done a year and a half of coding in a course and this explains things so much clearer, that it's loads easier to understand. I honestly hope you gain all the traction you deserve. Thanks again massive fan of your work already.
@wotismyname1712
@wotismyname1712 2 жыл бұрын
I don't why but this video has made my hopes waaaaay higher on unity since it seems so much easier to use thx to this series. Thank you sooo much!!!
@Cocomacsonian
@Cocomacsonian 2 жыл бұрын
Tbh this is the best Unity tutorial I have ever watched
@PracticalProgramming
@PracticalProgramming 2 жыл бұрын
Thanks so much! I'm glad it helped :)
@GamingsMostAmazingSoundtracks
@GamingsMostAmazingSoundtracks 2 жыл бұрын
@@PracticalProgramming I really need help there’s no speed or rigid body slots under My player movement script. I cannot add my Ridgid body inside the slot under script. What should I do
@EmreC1012
@EmreC1012 Ай бұрын
This is 3 years ago, but its still one of the best tutorials i have ever seen. Thank you so much! And if you see this, thank you.
@Grey2Heavymental
@Grey2Heavymental Жыл бұрын
Huge help!!! You are a great teacher and am very glad I subscribed.
@scottmedhaug4107
@scottmedhaug4107 Жыл бұрын
taking your time and explaining every little thing is important
@alexharvill533
@alexharvill533 3 жыл бұрын
Great tutorial! Straightforward and simple. Please keep it up.
@PracticalProgramming
@PracticalProgramming 3 жыл бұрын
Thanks! I'm currently working on a new tutorial series - I hope you will like it :)
@emptyman3469
@emptyman3469 2 жыл бұрын
@@PracticalProgramming Great!!! I have a like and a subscription.
@MAXmillium
@MAXmillium 3 жыл бұрын
Thanks for the tips! great info here
@thousend6693
@thousend6693 2 жыл бұрын
Nice that was rly easy thx for the great tutorial
@user-we6si4mi3x
@user-we6si4mi3x 2 жыл бұрын
Great Tutorial thanks so much!
@PracticalProgramming
@PracticalProgramming 2 жыл бұрын
You're welcome!!
@adelacorn
@adelacorn 3 жыл бұрын
Great job! Keep it up. Surprised you have so few subs and views. Keep going and they will come!
@PracticalProgramming
@PracticalProgramming 3 жыл бұрын
Wow thanks man that means a lot to me! I'll definitely keep going with both tutorials and devlogs 😁
@Morrisonfam2020
@Morrisonfam2020 3 жыл бұрын
ya
@Sourabhsharmaofficial
@Sourabhsharmaofficial 3 жыл бұрын
Subscribed. You are simply awsome the way you teach and the way you code superb. thanks
@PracticalProgramming
@PracticalProgramming 3 жыл бұрын
Thanks!! I'm glad you found it helpful :)
@sola4s755
@sola4s755 3 жыл бұрын
best tutorial and best teacher really!
@PracticalProgramming
@PracticalProgramming 3 жыл бұрын
Haha thanks!! 😅
@hgokmendev
@hgokmendev 2 жыл бұрын
thank you , that's very helpful tutorial
@stykerz3254
@stykerz3254 3 жыл бұрын
Thank you so much!
@PracticalProgramming
@PracticalProgramming 3 жыл бұрын
You're welcome :)
@gamefreaks2000
@gamefreaks2000 Жыл бұрын
good one💥
@eren_guneri
@eren_guneri 2 жыл бұрын
When character moves forward, the movement is jittery like it's lagging. I've found a quick solution which is making its ridigbody kinematic but is that what we want or would it cause any problem in the future? Or do you have any suggestion to fix the jittery movement?
@ztin4532
@ztin4532 3 жыл бұрын
ur the best ;) just ignore the subs and keep it up you really really help ppls tysm! edit: u just got new sub
@PracticalProgramming
@PracticalProgramming 3 жыл бұрын
Thanks so much, I really appreciate that! 😊👍
@dopebrose5151
@dopebrose5151 2 жыл бұрын
you earned a sub
@PracticalProgramming
@PracticalProgramming 2 жыл бұрын
Thanks! 😁
@scottmedhaug4107
@scottmedhaug4107 Жыл бұрын
yes the new input system is good to learn
@Zolt_Bolt
@Zolt_Bolt 3 жыл бұрын
you are worth subscribing 😊😊😊😊
@PracticalProgramming
@PracticalProgramming 3 жыл бұрын
Thanks!! :)
@zakariahammaoui
@zakariahammaoui 2 жыл бұрын
thank you so much
@TheRealKaiProton
@TheRealKaiProton 2 жыл бұрын
Ive been in Godot, and GMS for months, maybe years, because ol'unity tutors seem to spend have the videos talking about installing the software, going on the market, and explaining every single panel and button in the editor, by the time I get to the content on most, Im losing interest, this video however, kept it clean and to the point, Im not new to programming, and this pace, and explanation seemed brilliant for my learning style..
@user-nb1xj7df5w
@user-nb1xj7df5w 3 жыл бұрын
Good work
@PracticalProgramming
@PracticalProgramming 3 жыл бұрын
Thanks! :))
@Morrisonfam2020
@Morrisonfam2020 3 жыл бұрын
wow Cool video
@robowolfe5297
@robowolfe5297 2 жыл бұрын
it was a great tutorial but my code let me go backwards when I spammed a and d here is the code with some tuning that didn't help (FYI there was no errors in unity): using UnityEngine; public class MovementCode : MonoBehaviour { public float speed = 5; float horizontalInput; public float horizontalMultiplier = 2; public Rigidbody rb; private void FixedUpdate() { Vector3 forwardMove = transform.forward * speed * Time.fixedDeltaTime; Vector3 horizontalMove = transform.right * horizontalInput * horizontalMultiplier * speed * Time.fixedDeltaTime; rb.MovePosition(rb.position + forwardMove); rb.MovePosition(rb.position + horizontalMove); } private void Update() { horizontalInput = Input.GetAxis("Horizontal"); } } Thank you!
@muhammedyunusemrekaya2221
@muhammedyunusemrekaya2221 3 жыл бұрын
İ LİKED İT DUDE KEEP DOİNG İT !
@PracticalProgramming
@PracticalProgramming 3 жыл бұрын
Thanks! I'm glad you found it helpful 😊
@divyanaik2976
@divyanaik2976 2 жыл бұрын
cannot go left/right please help
@rubiyati3949
@rubiyati3949 3 жыл бұрын
So good
@PracticalProgramming
@PracticalProgramming 3 жыл бұрын
Thanks!
@shafiullahansari639
@shafiullahansari639 3 жыл бұрын
Hello sir, what should I do to stop(Brake) this movement
@muneymancan7521
@muneymancan7521 2 жыл бұрын
i did evrething it said but then i saved and logged out the next day it asked to go into safe mode, so i did and then when i left safe mode evrething in my project just got deleted
@LiquidPank
@LiquidPank 3 жыл бұрын
what should I do if my float command doesn't work?
@dylancorr8054
@dylancorr8054 Жыл бұрын
How could I use Math.f.Clamp with this movement script so the player doesn't fall off the tile? Any help be appreciated :)
@UshaPadma
@UshaPadma 3 жыл бұрын
what version are you using
@Viktor_Vazquez
@Viktor_Vazquez 3 жыл бұрын
Quick question: I made something using this tutorial but in my project I added walls to keep the player boxed in the level. Originally the walls would instantly kill the player but a tester told me it was shit. So I decided it would just act as a wall but now its easy for players to just phase thru the wall if they keep pushing into it. Any tips?
@PracticalProgramming
@PracticalProgramming 3 жыл бұрын
Sorry, I can't really help with that since I don't know exactly what the problem is. However, the thing that comes immediately to my mind is to check that the rigidbodys collision checking is set to continuous? All the best for your project :)
@Viktor_Vazquez
@Viktor_Vazquez 3 жыл бұрын
@@PracticalProgramming yeah I've tried that already but the issues persists. I'll just have to keep poking around till something works. Thanks for the reply anyway. Great tutorial :)
@ticketforlife2103
@ticketforlife2103 2 жыл бұрын
how does your editor autocomplete ?
@animeeeedits
@animeeeedits 3 жыл бұрын
hey there i have a question. I cant drag and drop the script (PlayerMovement) to the player. It stands: „cant add script component ‚playermovement‘ because the script class cannot be found. make sure that there are no compile errors and that the file name and class name match“ what should i do? thanks
@PracticalProgramming
@PracticalProgramming 3 жыл бұрын
Make sure the name of the script and the name of the class (inside the script public class PlayerMovement) are exactly the same (including capitals and spaces). I hope that helps :)
@hydrakiller9653
@hydrakiller9653 3 жыл бұрын
@@PracticalProgramming hello sir in my pc horizontal input at 11:16 is showing that "the name horizontalInput does not exist in the curremt context" pls help what to do
@ilnar347
@ilnar347 3 жыл бұрын
13:00 You can simply add a camera to the player in the hierarchy, and not fool around with scripts.
@PracticalProgramming
@PracticalProgramming 3 жыл бұрын
If you do that the camera will follow the player left and right which is not what we want. If you do not mind that behaviour though then it does not matter :)
@urrutiaeric14
@urrutiaeric14 3 жыл бұрын
How would i translate this to touch controls?
@mundaneheavy
@mundaneheavy 2 жыл бұрын
Error after i edit the script like in the video: "Assets\Scripts\PlayerMovement.cs(5,22): error CS1519: Invalid token '=' in class, struct, or interface member declaration" I also won't show a rigid body slot in the script when i put the script on the capsule, and i can't run the game. Help?
@PracticalProgramming
@PracticalProgramming 2 жыл бұрын
I have included a link to the project on GitHub in the description where you can download it. Try comparing your scripts against my script and see if there are any differences (even a single uppercase/punctuation character can make a difference). I hope that helps :)
@kiannooooo
@kiannooooo Жыл бұрын
when i wrote the public float speed it didn’t show up in unity just the script
@CXMXBXR
@CXMXBXR 2 жыл бұрын
hey +Practical Programming I'm struggling to get past the first section og coding 4:50 the speed will not show in the inspector any advice
@shikhargupta7545
@shikhargupta7545 2 ай бұрын
Same issue how did you solved it?
@arazqarayev80
@arazqarayev80 3 жыл бұрын
you RE GOOD
@PracticalProgramming
@PracticalProgramming 3 жыл бұрын
Thanks :)
@radajz3153
@radajz3153 2 жыл бұрын
Why does my player only moves forward and backwards when i press a and d
@matthewtang6806
@matthewtang6806 2 жыл бұрын
Leave a comment before watch :D ! Thanks for preparing this tutorial for us.
@PracticalProgramming
@PracticalProgramming 2 жыл бұрын
Haha thanks! And you're welcome :))
@paganotommaso
@paganotommaso 2 жыл бұрын
Is there any way to take mobile touch
@krrishaw9331
@krrishaw9331 3 жыл бұрын
i have copied the same code and saved also, but in the inspector the rigidbody and float speed not coming please help
@PracticalProgramming
@PracticalProgramming 3 жыл бұрын
Are you receiving any errors in the console? And just make sure the variables have public in front of them?
@jbzeus6100
@jbzeus6100 3 жыл бұрын
I was wondering has the newer version of unity changed anything? Cos the rigidbody and verctor3 rant showing up as green? Edit: in the camera script unity dosent recognize Vector3
@PracticalProgramming
@PracticalProgramming 3 жыл бұрын
Can you check whether you have the same using tags at the top of your script as me? Those are required for the script to work.
@finngomezgamer
@finngomezgamer 3 жыл бұрын
(the reason I ask is) I am trying to make my own endless runner and put it on the app store
@timur_nr1
@timur_nr1 3 жыл бұрын
I couldn't get past 5:50 until I saw my () were supposed to be {} Thanks!
@PracticalProgramming
@PracticalProgramming 3 жыл бұрын
Haha you're welcome! I'm glad you figured it out :)
@TalhaRiaz197
@TalhaRiaz197 2 жыл бұрын
how can i make a logic for my Game please help me
@buffcovid192
@buffcovid192 3 жыл бұрын
Can this game be on mobile
@michael.corlenome
@michael.corlenome 2 жыл бұрын
My camera follow script follows the player, but it's not behind the player, instead it's like a first person perspective. Can someone help?
@asifkaka5052
@asifkaka5052 2 жыл бұрын
increase the camera position on the Y and Z axis and Rotate it around 30 degree on the Z Axis
@KJ7JHN
@KJ7JHN 10 ай бұрын
Hey boss, could you make a similar tutorial where the ground tiles move instead of the player? This way we keep our 0,0,0 location. Just a wish and hope. Awesome tutorial, thanks for posting.
@reixlen9576
@reixlen9576 2 жыл бұрын
Nice Tutorial but my Player Collides with the Box Collider
@Please_Shuuush
@Please_Shuuush 2 жыл бұрын
can you please give me the script it wont show 0 refrences
@pushkalgambhir9420
@pushkalgambhir9420 3 жыл бұрын
My player start moving upawards when i click on play please help
@PracticalProgramming
@PracticalProgramming 3 жыл бұрын
Make sure you check that you are moving the player along the Z axis and not the Y axis in the movement script - let me know if that was the problem or not, and if it's not I'm sure we can figure out what's happening Good luck!
@shikhargupta7545
@shikhargupta7545 2 ай бұрын
my player is not moving left and right
@finngomezgamer
@finngomezgamer 3 жыл бұрын
is the code royalty free
@PracticalProgramming
@PracticalProgramming 3 жыл бұрын
Yes I have no problem with you using it for any purposes you want to :)
@abhyudaypradhan2282
@abhyudaypradhan2282 2 жыл бұрын
how to install the visual studio?
@PracticalProgramming
@PracticalProgramming 2 жыл бұрын
Go to code.visualstudio.com and download it for your platform :)
@abhyudaypradhan2282
@abhyudaypradhan2282 2 жыл бұрын
@@PracticalProgramming THANK YOU SO MUCH
@abhyudaypradhan2282
@abhyudaypradhan2282 2 жыл бұрын
ITS WORKING PERFECTLY
@PracticalProgramming
@PracticalProgramming 2 жыл бұрын
You're welcome :)
@TimTomToeofficial
@TimTomToeofficial Ай бұрын
5:37 I did this part and in didn’t work I couldn’t change the speeed
@baltor-
@baltor- Жыл бұрын
Man coding is hard!
@elrunkesxd3798
@elrunkesxd3798 2 жыл бұрын
ü
@elrunkesxd3798
@elrunkesxd3798 2 жыл бұрын
Ñ
@peejays6301
@peejays6301 3 жыл бұрын
hi guys
@yogangstudios5715
@yogangstudios5715 3 жыл бұрын
Why do I see you everywhere?
@crwdex
@crwdex 10 ай бұрын
this "new" input system is just terrible :(
@asifkaka5052
@asifkaka5052 2 жыл бұрын
My camera Follow Script gives Error The Script: using UnityEngine; public class CameraFollow : MonoBehaviour { public Transform player; Vector3 offset; private void Start() { offset = transform.position - player.position; } private void Update() { Vector3 targetpostion = player.position + offset; targetpostion.x = 0; transform.postion = targetpostion; } } The Error : Assets\Scripts\CameraFollow.cs(19,19): error CS1061: 'Transform' does not contain a definition for 'postion' and no accessible extension method 'postion' accepting a first argument of type 'Transform' could be found (are you missing a using directive or an assembly reference?) If you guys can help me I would really appreciate it
@asifkaka5052
@asifkaka5052 2 жыл бұрын
Also I am using the 2020.3.30f1 version of unity
@elrunkesxd3798
@elrunkesxd3798 2 жыл бұрын
Ñ
3D ENDLESS RUNNER IN UNITY - INTRODUCTION (Pt 0)
1:46
Practical Programming
Рет қаралды 21 М.
3D ENDLESS RUNNER IN UNITY - ENDLESS GROUND SPAWNING (Pt 2)
13:07
Practical Programming
Рет қаралды 64 М.
$10,000 Every Day You Survive In The Wilderness
26:44
MrBeast
Рет қаралды 47 МЛН
格斗裁判暴力执法!#fighting #shorts
00:15
武林之巅
Рет қаралды 90 МЛН
Procedural Generation: Endless Runner Unity Tutorial (Updated 2023)
9:28
Rigor Mortis Tortoise
Рет қаралды 16 М.
Godot 4 Infinite Runner Tutorial Part 1
6:42
Gwizz
Рет қаралды 9 М.
3D ENDLESS RUNNER IN UNITY - OBSTACLES (Pt 3)
14:59
Practical Programming
Рет қаралды 47 М.
Infinite Runner in Unity - PLATFORM GENERATOR
18:20
GameDevHQ
Рет қаралды 36 М.
3D ENDLESS RUNNER IN UNITY - COINS (Pt 4)
22:48
Practical Programming
Рет қаралды 29 М.
3D ENDLESS RUNNER IN UNITY - Finishing Touches (Pt 5)
11:30
Practical Programming
Рет қаралды 16 М.
How to move a player in Unity 3D
7:53
Jeremy Morgan
Рет қаралды 15 М.
Endless Runner: Procedural Track Generation (Unity Tutorial)
14:37
Matt MirrorFish
Рет қаралды 56 М.