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

Поділитися
Вставка
  • Опубліковано 20 сер 2024

КОМЕНТАРІ • 254

  • @ValemVR
    @ValemVR  5 років тому +53

    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 років тому +6

      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 років тому +2

      Thanks! Hope you got more subs"

    • @arsylgames
      @arsylgames 5 років тому +2

      Can you maybe add a coin system?

    • @AnkitKanungo05
      @AnkitKanungo05 4 роки тому

      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

  • @JonasTyroller
    @JonasTyroller 5 років тому +136

    Those unity sprite shapes look awesome! The internet needs more tutorials like this. Good job.

    • @ValemVR
      @ValemVR  5 років тому +9

      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 4 роки тому +3

      Two legends in one place😄

    • @theun-knownmusician5468
      @theun-knownmusician5468 4 роки тому +4

      Jonas Tyroller hey! I’m learning right now, I’m 13 and hope to be a game developer someday :)

    • @Itsysss
      @Itsysss 4 роки тому +3

      @@theun-knownmusician5468 Just like me

    • @CJ-mr8dn
      @CJ-mr8dn 3 роки тому

      @@theun-knownmusician5468 same

  • @arsylgames
    @arsylgames 5 років тому +78

    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 5 років тому +2

      Thanks;

    • @voidnatta
      @voidnatta 5 років тому +2

      Thanks, the second fix helped me a lot :D.

    • @arsylgames
      @arsylgames 4 роки тому

      Emperius I now, Otherways your suspension is broken

    • @antonai367
      @antonai367 4 роки тому +1

      thanks :*

    • @arsylgames
      @arsylgames 4 роки тому

      @@antonai367 no problem!

  • @nicklasl7973
    @nicklasl7973 3 роки тому +4

    Great Tutorial! Spent a whole day trying to do this from other tutorials and failed, so now I'm very happy indeed :)

  • @karlkiyotaka
    @karlkiyotaka Рік тому +2

    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.

  • @jameswalker6052
    @jameswalker6052 4 роки тому +8

    Very good video bro this was my first unity project. Thanks

  • @stormaestheticrap5819
    @stormaestheticrap5819 5 років тому +8

    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 5 років тому +1

      Thanks! I was stuck on this for an hour before I saw your comment.

    • @szplayz265
      @szplayz265 5 років тому

      Thanks;

    • @devswell6538
      @devswell6538 4 роки тому

      THANK YOU !

  • @borgesp.azevedo5316
    @borgesp.azevedo5316 5 років тому +11

    Hey man, good tutorial, helped me too much!

  • @RickardApps
    @RickardApps Рік тому +1

    Amazing work Valem. This is my start to exploring your channel :)

  • @dokhtaroneh
    @dokhtaroneh 4 роки тому +3

    You are the best tutor on the UA-cam! You should make more videos like this.

  • @exod2703
    @exod2703 5 років тому +12

    Thanks Q ! That"s exactly what i was looking for ! #Love

  • @adamhilali806
    @adamhilali806 4 роки тому +5

    Thank boy I am just 9 years old and I love to code in unity you were my inspiration thanks

  • @artusartus4540
    @artusartus4540 2 роки тому

    Salut! Ça fait plaisir de voir un français faire des videos en anglais! Ça donne de la motivation

  • @ziakhan6478
    @ziakhan6478 4 роки тому +3

    we need more tutorial like this◉‿◉

  • @lifelevelup8503
    @lifelevelup8503 2 роки тому

    dude your so funny i like that. learning with a smile is the best way to learn. you have my clicks !

  • @plasteelgaming
    @plasteelgaming 5 місяців тому

    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

  • @webpro607
    @webpro607 3 роки тому

    Great work bro... the best Unity youtube channel ever

  • @wikiti-yt
    @wikiti-yt 5 років тому +4

    This is nice. Thank you!

  • @meghs91
    @meghs91 4 роки тому +2

    Truly amazing, keep it up

  • @Frankslaboratory
    @Frankslaboratory 3 роки тому +1

    Awesome, I will try to build something similar with JavaScript

  • @Nasser_Moahammed
    @Nasser_Moahammed 3 роки тому +1

    It's good
    I have one suggest
    if you put a physics material 2d on the ground and the wheels it will be better

  • @selvamelangoven6207
    @selvamelangoven6207 3 роки тому +1

    Help needed: @8:21 similarly my wheels are not rotating in its center of axis

  • @Huliuspulius
    @Huliuspulius 2 роки тому +1

    how can i make it so that i can control the car in air?

  • @AmineGM73
    @AmineGM73 Рік тому

    I really like the tutorial nice explained I will subscribe 👍👍

  • @martin128
    @martin128 3 роки тому +1

    Thanks, i was just wondering how hard this would be to do in Unity

  • @aysamatik
    @aysamatik 4 роки тому +3

    In my unity, surface is stretch, why, how can i solve it?

  • @FC12CGaming
    @FC12CGaming 2 роки тому +1

    any way to make it mobile friendly?

  • @kuzmychmaksym3843
    @kuzmychmaksym3843 Рік тому

    Very useful tips, thank you.

  • @Hood_Rats_DXX
    @Hood_Rats_DXX 2 роки тому

    This is such a good turorial

  • @mehboobfazal
    @mehboobfazal 4 роки тому +3

    When I Build and Run, The CarController object was invisible. Everything else run and behave fine....How to fix this ???

  • @JaconicGroup
    @JaconicGroup 2 роки тому +1

    thank you very much! ♥

  • @bestbester
    @bestbester 4 роки тому +1

    great video but i hope to Solve the problem of spinning the wheel if they go fast

  • @Bylem_
    @Bylem_ 4 роки тому +13

    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?

  • @ROXPLAYZONE
    @ROXPLAYZONE 4 роки тому

    Awesome tuitorial..thanks a lot

  • @JaimieX
    @JaimieX 4 роки тому +1

    Why do we add torque to the car as well?

  • @animemotivasiofficial
    @animemotivasiofficial 2 роки тому +3

    after 5 seconds i run the car, my tires spin irregularly bro
    .
    like in your video at 8:19

  • @cherin5959
    @cherin5959 2 роки тому

    to me it stays frozen on the ground only the tires move when I add the motor

  • @officialspock
    @officialspock 4 роки тому

    Awesome tutorial, just subbed

  • @ChristianRiosCartin
    @ChristianRiosCartin 4 роки тому +3

    My wheels keep spinning out of place when too much torque is applied

    • @arsylgames
      @arsylgames 4 роки тому

      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

  • @RandomNPC2532
    @RandomNPC2532 4 роки тому +6

    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.

  • @oath4717
    @oath4717 4 роки тому +2

    Bro I love your accent; French?

  • @animemotivasiofficial
    @animemotivasiofficial 2 роки тому +1

    my tires are like rasenggan

  • @gorsayamyan1632
    @gorsayamyan1632 3 роки тому +2

    @Valem can you please say me how to make this level endless?
    i mean to generate road randomly and infinite.
    thank you for advance ))

  • @oclips3601
    @oclips3601 3 роки тому +1

    Can the next tutorial e on how to make this endless?

  • @pierrelatrille9726
    @pierrelatrille9726 3 роки тому

    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

  • @Quran_Lofi1
    @Quran_Lofi1 3 роки тому

    Keep it up bro love you

  • @I_am_pradeep
    @I_am_pradeep 4 роки тому

    Awesome tutorial. Do more like this.

  • @knoaf9092
    @knoaf9092 2 роки тому

    Thank you for the video.

  • @strangesos5448
    @strangesos5448 2 роки тому

    That's really great

  • @Rastlore
    @Rastlore 5 років тому

    NIce tutorial, I liked your Flappy bird one too. Can you make an old skool type game, like maybe Donkey Kong in Unity?

  • @xrc7576
    @xrc7576 7 місяців тому

    Any pointers with using code to generate this sprite shape profile to produce endless terrain?

  • @callmesadboy2695
    @callmesadboy2695 3 роки тому +1

    how u control this when u convert this game to android?

  • @frasergamedev9259
    @frasergamedev9259 2 роки тому

    when i push the left arrow it goes right and vice versa

  • @ghostlygeeks5991
    @ghostlygeeks5991 4 роки тому

    Merci pour la vidéo! :)

  • @suikasuika4157
    @suikasuika4157 3 роки тому

    would like to see how he does the screeshot then shot it in the end of a session (when we lose)

  • @johnberryconwayiii7071
    @johnberryconwayiii7071 4 роки тому +1

    THANK YOU!

  • @EndlessPanos
    @EndlessPanos 2 роки тому

    bonsoir mon ami français, merci pour ton aide :)

  • @SzymonBadylewski
    @SzymonBadylewski 2 місяці тому

    How to make infinite ground map generator?

  • @WNFDraco
    @WNFDraco Рік тому

    Thanks

  • @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?

  • @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

  • @MuhammadUsman-hb6zk
    @MuhammadUsman-hb6zk 2 роки тому

    i got error of nullreference on movement = Input.GetAxis("Horizontal");

  • @Jnox.f
    @Jnox.f 2 роки тому +1

    Control with buttons

  • @suikasuika4157
    @suikasuika4157 3 роки тому

    Could you show how the game make to screen a part of the screen then show it when we die?

  • @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.

  • @drammaman
    @drammaman 4 роки тому +2

    everything was fine until my stupid dudes head started falling through the map. Any help?

  • @blackshark9311
    @blackshark9311 4 роки тому

    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.

  • @alonemiles
    @alonemiles 3 роки тому

    My car is not moving with inputs, while referencing this code

  • @rohanmills8509
    @rohanmills8509 Рік тому

    How do you make the ground now with open sprite shapes and closed I can't seem to make it work?

  • @marci6191
    @marci6191 2 роки тому

    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.

  • @sagnikroy5001
    @sagnikroy5001 3 роки тому

    HEy camera follow script not working please help

  • @umarramadhan_
    @umarramadhan_ 10 місяців тому

    why tf the wheels is wiggling like that

  • @balochgamez8388
    @balochgamez8388 3 роки тому

    in unity script are not showing back tire and front tire

  • @scratchtutorials1068
    @scratchtutorials1068 4 роки тому

    i think you did some parts behind the scene

  • @janimusicshorts7707
    @janimusicshorts7707 2 роки тому

    i like it.

  • @TSthegamer
    @TSthegamer 5 років тому

    I want to know more pls make more vids like this !

  • @osamamahmoud7539
    @osamamahmoud7539 4 роки тому +1

    There is a second part of this tutorail ??

  • @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

  • @samORDOCH
    @samORDOCH 4 роки тому

    Maybe make a game like bbtan or simple card game or board game like checkers

  • @plcerider6502
    @plcerider6502 3 роки тому

    How about the head when you hit the ground

  • @SS-ed1ko
    @SS-ed1ko 5 років тому +2

    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 ...

  • @Muhaiminul_coding_club
    @Muhaiminul_coding_club Рік тому

    i love your vidio

  • @ROXPLAYZONE
    @ROXPLAYZONE 4 роки тому +1

    Recreate Altos Adventure Next ..Thanks

  • @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, :(

  • @cashclipsromania
    @cashclipsromania 4 роки тому

    What buttons i use to go in front and back?

  • @GuranshAneja
    @GuranshAneja 3 роки тому

    love it

  • @jumpix2652
    @jumpix2652 3 роки тому +1

    Why is my car not going forward when i press the arrow keys?

    • @MIO313
      @MIO313 3 роки тому

      I have the same Problem ... do you have a solution for this problem ?

    • @jumpix2652
      @jumpix2652 3 роки тому +1

      @@MIO313 add me on discord i have kind of finished the game,

    • @MIO313
      @MIO313 3 роки тому

      @@jumpix2652 ok thats nice is your discord name the same like the youtube name? and i need your #number

    • @jumpix2652
      @jumpix2652 3 роки тому +1

      @@MIO313 im on phone rn send me yours lol

    • @MIO313
      @MIO313 3 роки тому

      @@jumpix2652 MIO#1790

  • @ritujaak9550
    @ritujaak9550 5 років тому

    my camera is not following may car

  • @JuanGamer0202
    @JuanGamer0202 2 роки тому

    i'm sad i cant use paint XD

  • @freddyfox1
    @freddyfox1 5 років тому

    Valem, hello. Good video bro. If you know, show how i can add 2 buttons on display, like Gas and Stop for car?

  • @abina5900
    @abina5900 3 роки тому

    my tires in the car are wobbling like crazy. how to fix?

    • @josephheaney7738
      @josephheaney7738 3 роки тому

      don't use wheel join in the wheels put 2 wheel joins in the car and connect to the wheel from there

    • @abina5900
      @abina5900 3 роки тому +1

      @@josephheaney7738 i'll try that

  • @dhogdy6301
    @dhogdy6301 Рік тому

    how do you do the auto generated road?

  • @grazin9761
    @grazin9761 5 років тому +3

    Will you be releasing the project file??

    • @ValemVR
      @ValemVR  5 років тому +2

      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?

  • @dao_zey2735
    @dao_zey2735 3 роки тому

    hello thank you for this awesome tutorial. How to make multiplayer?

  • @scientificguruji9401
    @scientificguruji9401 4 роки тому

    hey valem can you create a game like hill climb racing 2

  • @waleed9083
    @waleed9083 2 роки тому

    Images download link?

  • @Ziggy2
    @Ziggy2 4 роки тому

    my car doesnt move

  • @thunderwind202
    @thunderwind202 2 роки тому

    Bad trucker 2 please

  • @avidtrainspotting
    @avidtrainspotting 3 роки тому

    I have no money and i want the source code rly bad.