Coding my own HILL CLIMB RACING (2D racing car Unity Tutorial)

  Рет қаралды 138,816

Valem

Valem

Күн бұрын

▶ Get the source code on patreon : / valemvr
▶ Join the Valem discord channel : / discord
Download the sprite here : www.spriters-resource.com/mob...
-------------------------------------------------------
Want to make your own game ? Here I'll show you how you can make a 2D racing game like Hill Climb Racing in 12 minutes !

Пікірлер: 254
@ValemVR
@ValemVR 5 жыл бұрын
Hey guys I hope you like the video ! Sorry If my voice is not that audible, I was sick during the recording of the audio. Anyway, I'm glad I was still able to release this video this week !
@younesl885
@younesl885 5 жыл бұрын
Valem You don’t have to feel sorry man, hope you get better. We are the ones who should thank you for your well detailed tutorials making complex projects look so easy. Well done 👍
@arsylfpv2848
@arsylfpv2848 5 жыл бұрын
Thanks! Hope you got more subs"
@arsylgames
@arsylgames 5 жыл бұрын
Can you maybe add a coin system?
@AnkitKanungo05
@AnkitKanungo05 3 жыл бұрын
I tried all the procedure in the same way I watched your video repeated time but all of no work.... It's showing a lot of errors
@bloxtopjustgames3111
@bloxtopjustgames3111 3 жыл бұрын
Your ok
@arsylgames
@arsylgames 5 жыл бұрын
2 fixes: 1, if you give gas and go in the air you can see the car is rotation the wrong way. To fix it, you just go to line 34 (of the car controller script) and where it says: "-movement" just change it to "movement" 2, do not add wheel joints to the wheels, add 2 wheel joints to the empty car object and drag the rigibodies from the wheels in it. Thanks for doing it!
@szplayz265
@szplayz265 4 жыл бұрын
Thanks;
@voidnatta
@voidnatta 4 жыл бұрын
Thanks, the second fix helped me a lot :D.
@arsylgames
@arsylgames 4 жыл бұрын
Emperius I now, Otherways your suspension is broken
@antonai367
@antonai367 4 жыл бұрын
thanks :*
@arsylgames
@arsylgames 4 жыл бұрын
@@antonai367 no problem!
@JonasTyroller
@JonasTyroller 5 жыл бұрын
Those unity sprite shapes look awesome! The internet needs more tutorials like this. Good job.
@ValemVR
@ValemVR 5 жыл бұрын
Wow Jonas, I feel honored that you watched one of my video. Love your work so much! Dankeschon mein freund (yep my German is terrible)
@Itsysss
@Itsysss 3 жыл бұрын
Two legends in one place😄
@theun-knownmusician5468
@theun-knownmusician5468 3 жыл бұрын
Jonas Tyroller hey! I’m learning right now, I’m 13 and hope to be a game developer someday :)
@Itsysss
@Itsysss 3 жыл бұрын
@@theun-knownmusician5468 Just like me
@CJ-mr8dn
@CJ-mr8dn 2 жыл бұрын
@@theun-knownmusician5468 same
@nicklasl7973
@nicklasl7973 3 жыл бұрын
Great Tutorial! Spent a whole day trying to do this from other tutorials and failed, so now I'm very happy indeed :)
@jameswalker6052
@jameswalker6052 4 жыл бұрын
Very good video bro this was my first unity project. Thanks
@karlkiyotaka
@karlkiyotaka Жыл бұрын
You're amazing bro,Thanks very much for this tutorial,I never thought i would find someone who can explain this as easy as you did.Thanks again.
@borgesp.azevedo5316
@borgesp.azevedo5316 5 жыл бұрын
Hey man, good tutorial, helped me too much!
@RickardApps
@RickardApps Жыл бұрын
Amazing work Valem. This is my start to exploring your channel :)
@ValemVR
@ValemVR Жыл бұрын
Welcome :)
@dokhtaroneh
@dokhtaroneh 4 жыл бұрын
You are the best tutor on the KZbin! You should make more videos like this.
@webpro607
@webpro607 3 жыл бұрын
Great work bro... the best Unity youtube channel ever
@exod2703
@exod2703 5 жыл бұрын
Thanks Q ! That"s exactly what i was looking for ! #Love
@meghs91
@meghs91 4 жыл бұрын
Truly amazing, keep it up
@lifelevelup8503
@lifelevelup8503 Жыл бұрын
dude your so funny i like that. learning with a smile is the best way to learn. you have my clicks !
@stormaestheticrap5819
@stormaestheticrap5819 5 жыл бұрын
You need to add 2 wheel joints to the empty car object, not to the weels itself. If you have done that, you just drag the rigibodies from the tires to the wheel joint.
@AntAttakk
@AntAttakk 4 жыл бұрын
Thanks! I was stuck on this for an hour before I saw your comment.
@szplayz265
@szplayz265 4 жыл бұрын
Thanks;
@devswell6538
@devswell6538 4 жыл бұрын
THANK YOU !
@wikiti-yt
@wikiti-yt 5 жыл бұрын
This is nice. Thank you!
@AmineGM73
@AmineGM73 Жыл бұрын
I really like the tutorial nice explained I will subscribe 👍👍
@ziakhan6478
@ziakhan6478 3 жыл бұрын
we need more tutorial like this◉‿◉
@artusartus4540
@artusartus4540 2 жыл бұрын
Salut! Ça fait plaisir de voir un français faire des videos en anglais! Ça donne de la motivation
@kuzmychmaksym3843
@kuzmychmaksym3843 9 ай бұрын
Very useful tips, thank you.
@ROXPLAYZONE
@ROXPLAYZONE 4 жыл бұрын
Awesome tuitorial..thanks a lot
@officialspock
@officialspock 4 жыл бұрын
Awesome tutorial, just subbed
@Hood_Rats_DXX
@Hood_Rats_DXX 2 жыл бұрын
This is such a good turorial
@Quran_Lofi1
@Quran_Lofi1 3 жыл бұрын
Keep it up bro love you
@adamhilali806
@adamhilali806 4 жыл бұрын
Thank boy I am just 9 years old and I love to code in unity you were my inspiration thanks
@shivakashyap8695
@shivakashyap8695 4 жыл бұрын
Great kid , good sprit
@hxdx6950
@hxdx6950 3 жыл бұрын
@@shivakashyap8695 yea
@RandomNPC2532
@RandomNPC2532 4 жыл бұрын
The wheels and car get stability issues when reaching top speed, is there a resolution for that? Also if you turn the fuel canister into a prefab it won't work the same as a duplicated fuel canister?
@arsylgames
@arsylgames 4 жыл бұрын
For the first one there is a solution
@Bell_Studio
@Bell_Studio 4 жыл бұрын
@@arsylgames could you share the solution? thanks!
@arsylgames
@arsylgames 4 жыл бұрын
victor Bijl look at my other comment pls
@Huliuspulius
@Huliuspulius 2 жыл бұрын
add 2 x wheel joint 2d to carcontroller and drag the tires onto them.
@Frankslaboratory
@Frankslaboratory 3 жыл бұрын
Awesome, I will try to build something similar with JavaScript
@Nasser_Moahammed
@Nasser_Moahammed 2 жыл бұрын
It's good I have one suggest if you put a physics material 2d on the ground and the wheels it will be better
@martin128
@martin128 3 жыл бұрын
Thanks, i was just wondering how hard this would be to do in Unity
@ghostlygeeks5991
@ghostlygeeks5991 3 жыл бұрын
Merci pour la vidéo! :)
@realjaconic
@realjaconic 2 жыл бұрын
thank you very much! ♥
@strangesos5448
@strangesos5448 2 жыл бұрын
That's really great
@I_am_pradeep
@I_am_pradeep 4 жыл бұрын
Awesome tutorial. Do more like this.
@knoaf9092
@knoaf9092 2 жыл бұрын
Thank you for the video.
@plasteelgaming
@plasteelgaming 2 ай бұрын
In 2024 the Sprite Shape option is moved to Create>2D>Sprite Shape Profile. When creating a 2D Sprite select Closed. To get the different stretch options click on the sprite and they appear in the Scene. When importing the car parts, drag them to the scene to make them appear, rather then the Hierarchy. I also had to a lot off trouble shoting with the camera since it keeps to far upp and down and that is most likelly because he connects the car controller to the camera script (with rotating wheels etc). If you connect only the car to the camera it works, also tried it in Cinemachine and adding only the car works. After that i gave up, if you follow this make sure to use Unity 2018.2.10f because too much is different in 2022.2.21f1
@johnberryconwayiii7071
@johnberryconwayiii7071 4 жыл бұрын
THANK YOU!
@Rastlore
@Rastlore 4 жыл бұрын
NIce tutorial, I liked your Flappy bird one too. Can you make an old skool type game, like maybe Donkey Kong in Unity?
@mehboobfazal
@mehboobfazal 4 жыл бұрын
When I Build and Run, The CarController object was invisible. Everything else run and behave fine....How to fix this ???
@aysamatik
@aysamatik 4 жыл бұрын
In my unity, surface is stretch, why, how can i solve it?
@nithinss8112
@nithinss8112 4 жыл бұрын
Hey at 7:09 when you went over from visual studio to unity what did you press to compile?
@ValemVR
@ValemVR 4 жыл бұрын
It automatically compile when you save your script :)
@aaronperron
@aaronperron 4 жыл бұрын
Ctrl + S in visual studio to save the script then you jump back into unity and it gets compiled automatically.
@veoxys
@veoxys 4 жыл бұрын
if i copy the tutorial with the fuel and then press play, it won't run down and if i press the up arrow key once the picture is gone
@jackhaugh9048
@jackhaugh9048 3 жыл бұрын
Hello everyone. For some reason when i setup my car and move all the items into the empty game object my wheels go through the car and wont stay in there position even with the rigidbodys and everything. Help asap would be very much appriciated
@selvamelangoven6207
@selvamelangoven6207 3 жыл бұрын
Help needed: @8:21 similarly my wheels are not rotating in its center of axis
@oath4717
@oath4717 4 жыл бұрын
Bro I love your accent; French?
@notanormie8363
@notanormie8363 2 жыл бұрын
I need help with the scripting The RigidBody2D isn't appearing as a class and basically nothing works, I have written everything exactly as it is but its just not working.
@sreehari498
@sreehari498 3 жыл бұрын
I followed the same scripts ont he camera and it showed me like, when the car goes upward, the camera goes downwards and vice versa. what can I do?
@rohanmills8509
@rohanmills8509 Жыл бұрын
How do you make the ground now with open sprite shapes and closed I can't seem to make it work?
@GuranshAneja
@GuranshAneja 3 жыл бұрын
love it
@marci6191
@marci6191 Жыл бұрын
How can I change the Miscellaneous Files to Assembly-CSharp? I try to make a game in Unity and I have to do this, but I dont know how to do it.
@JaimieX
@JaimieX 3 жыл бұрын
Why do we add torque to the car as well?
@pierrelatrille9726
@pierrelatrille9726 2 жыл бұрын
hello (ou bonjour car je détecte un accent français ). I have an idea for another version of your game, on the verge of a "serious game" It would be called "tariff peaks challenge" and it would explain metaphorically the effects of customs duties on trade : i.e you are an exporter , so you drive a truck full of a given type of merchandises . You are climbing a slope which represents the customs duty . The higher the customs duty is the steeper the slope, to the point where the truck falls back down the slope and looses al his cargo on the ground. Even if the truck succeeds to climb laboriously the slope it would still loose part of its cargo because the higher the price ( initial price + custom duty paid ) the lower the demand , a concept that economists call "price elasticity " . In my dreamed gameplay , the player would randomly select an existing tariff peak ( eg 3000% for sugar and alcohol in Egypt , I have a list of those peaks and of the volume of the trade they partially allow or totally prevent , I have also a data base of price elasticities by products) and then try to climb the slope accordingly . After 4 or 5 attempts a short quiz, Kahoot style would explain the concepts and then we would go to another level of a game more complex , because in the real world things are are indeed more complex : there are bound and applied customs , duties , preferential customs duties, ad valorem excises, preferential or non preferential tariff free quotas administered in various manner , trade costs etc etc . all relatively sophisticated concepts that your game could progressively introduce and explain in a ludic manner Would you be interested in making a prototype of that ? If such a prototype were to be convincing ,and I have no doubt it will after having seen your demo, this could have commercial and revenue implication for you although i cannot promise anything at this stage . best regards and bravo again pierre ( email me at this adress pierre.larrebourg1@gmail.com) et dites moi si nous pouvons poursuivre cet échange dans la algue de molière plutot que dans celle de Shakespeare . just cannot wait to hear from you . bien cordialement pierre
@TSthegamer
@TSthegamer 5 жыл бұрын
I want to know more pls make more vids like this !
@blackshark9311
@blackshark9311 3 жыл бұрын
Nice video. Explained very well. The camera part is working, but the speed is not working. I mean I can't control the car with keys. Need urgent help.
@suikasuika4157
@suikasuika4157 3 жыл бұрын
would like to see how he does the screeshot then shot it in the end of a session (when we lose)
@xrc7576
@xrc7576 4 ай бұрын
Any pointers with using code to generate this sprite shape profile to produce endless terrain?
@leokeshekurubas1069
@leokeshekurubas1069 3 жыл бұрын
Nice
@suikasuika4157
@suikasuika4157 3 жыл бұрын
Could you show how the game make to screen a part of the screen then show it when we die?
@janimusicshorts7707
@janimusicshorts7707 Жыл бұрын
i like it.
@Huliuspulius
@Huliuspulius 2 жыл бұрын
how can i make it so that i can control the car in air?
@gorsayamyan1632
@gorsayamyan1632 3 жыл бұрын
@Valem can you please say me how to make this level endless? i mean to generate road randomly and infinite. thank you for advance ))
@ManishSingh-dj3ds
@ManishSingh-dj3ds Жыл бұрын
use parallax.
@idoblenderstuffs
@idoblenderstuffs 9 ай бұрын
@@ManishSingh-dj3ds are you sure you know what parallax is
@WNFDraco
@WNFDraco Жыл бұрын
Thanks
@cherin5959
@cherin5959 Жыл бұрын
to me it stays frozen on the ground only the tires move when I add the motor
@freddyfox1
@freddyfox1 4 жыл бұрын
Valem, hello. Good video bro. If you know, show how i can add 2 buttons on display, like Gas and Stop for car?
@Muhaiminul_coding_club
@Muhaiminul_coding_club Жыл бұрын
i love your vidio
@EndlessPanos
@EndlessPanos 2 жыл бұрын
bonsoir mon ami français, merci pour ton aide :)
@bestbester
@bestbester 4 жыл бұрын
great video but i hope to Solve the problem of spinning the wheel if they go fast
@gamesuk7046
@gamesuk7046 3 жыл бұрын
hi.. using for commercial projects?
@frasergamedev9259
@frasergamedev9259 2 жыл бұрын
when i push the left arrow it goes right and vice versa
@MuhammadUsman-hb6zk
@MuhammadUsman-hb6zk 2 жыл бұрын
i got error of nullreference on movement = Input.GetAxis("Horizontal");
@cashclipsromania
@cashclipsromania 3 жыл бұрын
What buttons i use to go in front and back?
@arnavb9571
@arnavb9571 3 жыл бұрын
My car is spinning when the game starts. Any help?
@anonymoussloth6687
@anonymoussloth6687 3 жыл бұрын
how can we make the ground endless and have random gaps (like in alto's adventure)?
@jumpix2652
@jumpix2652 3 жыл бұрын
I also have the same problem, there is an asset in the Unity store but it costs 7 dollars, :(
@FC12CGaming
@FC12CGaming 2 жыл бұрын
any way to make it mobile friendly?
@dao_zey2735
@dao_zey2735 3 жыл бұрын
hello thank you for this awesome tutorial. How to make multiplayer?
@oclips3601
@oclips3601 3 жыл бұрын
Can the next tutorial e on how to make this endless?
@balochgamez8388
@balochgamez8388 3 жыл бұрын
in unity script are not showing back tire and front tire
@scratchtutorials1068
@scratchtutorials1068 3 жыл бұрын
i think you did some parts behind the scene
@ChristianRiosCartin
@ChristianRiosCartin 3 жыл бұрын
My wheels keep spinning out of place when too much torque is applied
@arsylgames
@arsylgames 3 жыл бұрын
Because he made 2 big mistakes
@arsylgames
@arsylgames 3 жыл бұрын
North America look at my older comment I writed on this vid
@arsylgames
@arsylgames 3 жыл бұрын
@North America No problem
@walney2008
@walney2008 4 жыл бұрын
very good, you speak moviment game , use helicopter, plane and tank ? tnhks
@samORDOCH
@samORDOCH 4 жыл бұрын
Maybe make a game like bbtan or simple card game or board game like checkers
@trivimesho654
@trivimesho654 3 жыл бұрын
👍🥇
@walney2008
@walney2008 4 жыл бұрын
hi, you speak controller moviment car in game stype 2d race top down, and scrooling vertical ? tnks
@drammaman
@drammaman 3 жыл бұрын
everything was fine until my stupid dudes head started falling through the map. Any help?
@MD_Shahadat_Hossain
@MD_Shahadat_Hossain 3 жыл бұрын
me too
@MD_Shahadat_Hossain
@MD_Shahadat_Hossain 3 жыл бұрын
oh sry i forgot to give edge collider on the surface LOL !!!!!!!!
@animemotivasiofficial
@animemotivasiofficial Жыл бұрын
my tires are like rasenggan
@alonemiles
@alonemiles 3 жыл бұрын
My car is not moving with inputs, while referencing this code
@SS-ed1ko
@SS-ed1ko 4 жыл бұрын
Help help help bro can you tell me on 8:08 min how suddenly car rigid body come in car controller script did I miss something
@MIO313
@MIO313 3 жыл бұрын
I have the same Problem ...
@ROXPLAYZONE
@ROXPLAYZONE 4 жыл бұрын
Recreate Altos Adventure Next ..Thanks
@subialijaz7823
@subialijaz7823 4 жыл бұрын
i was thinking the same :D
@callmesadboy2695
@callmesadboy2695 3 жыл бұрын
how u control this when u convert this game to android?
@callmesadboy2695
@callmesadboy2695 3 жыл бұрын
cause there no buttons
@dhogdy6301
@dhogdy6301 Жыл бұрын
how do you do the auto generated road?
@nicklandras.5741
@nicklandras.5741 4 жыл бұрын
Best game
@ruchitayapuram2222
@ruchitayapuram2222 3 жыл бұрын
ilove thissssssssss
@osamamahmoud7539
@osamamahmoud7539 4 жыл бұрын
There is a second part of this tutorail ??
@arsylgames
@arsylgames 3 жыл бұрын
Look on his channel
@Bylem_
@Bylem_ 4 жыл бұрын
How to make this road procedurally generated?
@arsylgames
@arsylgames 3 жыл бұрын
By using code
@Bylem_
@Bylem_ 3 жыл бұрын
@@arsylgames that's what i did :)
@arsylgames
@arsylgames 3 жыл бұрын
@@Bylem_ and did you find it?
@Bylem_
@Bylem_ 3 жыл бұрын
i wrote it
@adamnapier9200
@adamnapier9200 2 жыл бұрын
@@Bylem_ I am very interested in seeing how you managed this as it is what I am looking to do. Care to share?
@ritujaak9550
@ritujaak9550 4 жыл бұрын
my camera is not following may car
@plcerider6502
@plcerider6502 3 жыл бұрын
How about the head when you hit the ground
@mefusey3739
@mefusey3739 3 жыл бұрын
Help, i dont can see the Wheel Joint 2d lines for edit..?
@zupa4528
@zupa4528 3 жыл бұрын
me too
@zupa4528
@zupa4528 3 жыл бұрын
@@mefusey3739 thanks
@Jnox.f
@Jnox.f 2 жыл бұрын
Control with buttons
@weelearnfrommobile773
@weelearnfrommobile773 5 жыл бұрын
Simple like ABCD
@scientificguruji9401
@scientificguruji9401 4 жыл бұрын
hey valem can you create a game like hill climb racing 2
@grazin9761
@grazin9761 5 жыл бұрын
Will you be releasing the project file??
@ValemVR
@ValemVR 5 жыл бұрын
Hi CrazyNonSens I will create a github link today and share it in the description. :)
@grazin9761
@grazin9761 5 жыл бұрын
@@ValemVR thanks man!
@mmkkik1600
@mmkkik1600 5 жыл бұрын
@@ValemVR Aere you realsed it?
@Toonpur_00
@Toonpur_00 Жыл бұрын
Are u a game developer?.. i wanna learn to make games..?
Minecraft but Your Size Decreases!
22:42
xNestorio
Рет қаралды 368 М.
Joven bailarín noquea a ladrón de un golpe #nmas #shorts
00:17
I Need Your Help..
00:33
Stokes Twins
Рет қаралды 145 МЛН
ELE QUEBROU A TAÇA DE FUTEBOL
00:45
Matheus Kriwat
Рет қаралды 24 МЛН
HILL CLIMB RACING na Unity 2D Tutorial COMPLETO
34:20
Cell_Gamedev
Рет қаралды 2,6 М.
Make your own Flappy Bird in 10 minutes (Unity Tutorial)
10:15
Creating Rope Objects with Physics | Unity Tutorial
10:36
Sasquatch B Studios
Рет қаралды 16 М.
MAKING RUN, IDLE & JUMP 2D GAME ANIMATIONS - UNITY TUTORIAL
15:30
Blackthornprod
Рет қаралды 507 М.
Making the FASTEST Creature in Spore.
14:19
BogBoy
Рет қаралды 73 М.
How to make 2D car in unity || Tutorial
12:07
Art Kekh
Рет қаралды 7 М.
Level of Detail #gamedev #unity #valem #learning
0:58
Valem
Рет қаралды 10 М.
The Unity Tutorial For Complete Beginners
46:39
Game Maker's Toolkit
Рет қаралды 3,1 МЛН
Escape Nextbots Rosalia And Obunga Police #gmod
0:36
BizarroTube GMod
Рет қаралды 18 МЛН
ONE MORE SUBSCRIBER FOR 6 MILLION!
0:38
Horror Skunx
Рет қаралды 14 МЛН
Проиграл свою душу Голландцу #шортс
1:00
Help Cameraman dad escape from crying #skibiditoilet #shorts
0:30
Boss Studio
Рет қаралды 4,5 МЛН
💀💀 #brawl #gaming #games #supercell
0:20
GGg
Рет қаралды 6 МЛН
Майнкрафт ПЕСНЯ 2🎙 | WICSUR #shorts
1:00
Бискас
Рет қаралды 3,8 МЛН