Learn C# Scripting for Unity 15 Minutes - Part 3 - 3D Player Movement , Camera Follow & More

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ธ.ค. 2024

ความคิดเห็น • 206

  • @ChargerGames
    @ChargerGames  4 ปีที่แล้ว +23

    Move To Any Specific Part Of The Video(Click Below):
    1. 00:00 - Intro
    2. 00:40 - Creating 3D Movement Player Controller
    3. 04:50 - Play Testing & Fixing Problems
    4. 05:20 - Creating Bigger Play Area
    5. 05:47 - Creating Simple Camera Follow Script
    6. 07:28 - Fixing Camera View Problem
    7. 08:36 - Creating Collectable Coins
    8. 11:20 - Detecting Collision & Collecting Coins
    9. 12:40 - Adding Rotation to Coins
    10 14:35 - Playing Audio in Unity
    11 16:33 - Manually Playing Audio Clips
    | -------------------------------------------------------------------- |
    Get My Complete C# Course Here: bit.ly/31UgmOB
    ( 25+ Hours of Video Content )

    • @sunitagupta7240
      @sunitagupta7240 4 ปีที่แล้ว +4

      Bro i have purchased your cource it was around 490 inr thanks bro it is really awesome but i have an suggestion for you can you make a video on how to make a leaderboard for android game
      Thanks for such a lovely cource😘😍 and subscribed to your channel

    • @ChargerGames
      @ChargerGames  4 ปีที่แล้ว +2

      @@sunitagupta7240 Thanks a lot.. I creaed a course on that topic few years ago, I'll try to make an updated version :)

    • @thelongestleg
      @thelongestleg 3 ปีที่แล้ว

      @@ChargerGames my character keeps falling through the floor how can I fix this?

    • @whereswaldo4197
      @whereswaldo4197 3 ปีที่แล้ว

      Do you know why it's rotating around me, and not the y?

    • @unknownmonkey5791
      @unknownmonkey5791 2 ปีที่แล้ว

      @@thelongestleg maybe cuz u didnt add a terrain or didnt add rigidbody settings ig. I new aswell

  • @convolutedpeppercorn1078
    @convolutedpeppercorn1078 4 ปีที่แล้ว +37

    Just in these 3 parts, I have learned more than I have in a year of classes. Thank you for existing man!

  • @volar5227
    @volar5227 4 ปีที่แล้ว +48

    da best unity tutor in the whole world your even better than brackeys in coding wow

  • @scampernoodle6757
    @scampernoodle6757 4 ปีที่แล้ว +37

    These tutorials are easy to follow, and he ACTUALLY EXPLAINS what's happening and you can actually remember them 🤣

    • @JA_RON
      @JA_RON 3 ปีที่แล้ว +1

      Yeah I agree. He is the perfect tutor....

  • @projectdez8676
    @projectdez8676 4 ปีที่แล้ว +40

    This series is awesome! Like... dude... this is sometimes a 'lil better than brackeys.

  • @decxi
    @decxi 4 ปีที่แล้ว +22

    The way you explain things is amazing! Everything is clear and easy to understand! Can't wait for more videos :)

  • @aiminggames8676
    @aiminggames8676 3 ปีที่แล้ว +3

    Hey I purchased your course and can confirm that you are a very good teacher, you explain everything very clearly.
    And if anyone is looking for a course for game development and is a complete beginner go for this course!
    It is the course for you!!

  • @dzmo-official
    @dzmo-official 2 ปีที่แล้ว +2

    I wish I knew this guy personally

  • @windowpanememberrrr
    @windowpanememberrrr 3 ปีที่แล้ว +3

    I just want to give a huge thank you to you. The way you walk through the code and explain everything just enough is so helpful. This series has helped me come so far in such a short amount of time. Thank you.

  • @corgerr
    @corgerr 2 ปีที่แล้ว +1

    youtube has recommended this to me twice today
    i stopped watching these tutorials out of laziness or something
    i think this is a sign i should watch more of these again

    • @ChargerGames
      @ChargerGames  2 ปีที่แล้ว

      Keep Learning, All The Best :)

  • @TheDXJC56
    @TheDXJC56 ปีที่แล้ว +1

    It's really still unbelievable every time I get things to work flawlessly just from following your instructions

    • @ChargerGames
      @ChargerGames  ปีที่แล้ว

      Thanks man, Glad you found it helpful :)

  • @soundshq2556
    @soundshq2556 4 ปีที่แล้ว +5

    I don't know how much I have to thank you I was looking for these tutorials your way of explaining is great alll others videos are not clear just wasting time

    • @ChargerGames
      @ChargerGames  4 ปีที่แล้ว +2

      Glad I could help!
      More videos coming soon :)

  • @Cramad84
    @Cramad84 ปีที่แล้ว +1

    Seriously the best unity teacher on TH-cam

    • @ChargerGames
      @ChargerGames  ปีที่แล้ว

      Thanks a lot Craig, Happy Learning :)

  • @Nischal_Kandel
    @Nischal_Kandel 4 ปีที่แล้ว +3

    Thanks a lot brother!, I am just learning this for fun nothing more but I kept giving up after not knowing what was going on. Your videos has helped me a lot to not give up and try to understand things instead.

  • @sriramyashwant7656
    @sriramyashwant7656 4 ปีที่แล้ว +6

    raja Parents: you need to sleep by 11:15pm
    raja: making a 15min c# tutorial very fast.
    it takes me 1hr to learn a 15min tutorial. nice tutorial for babies.thank you

    • @ChargerGames
      @ChargerGames  4 ปีที่แล้ว

      Haha.. Good one Sriram.. :D
      Stay Subscribed, Keep Learning

  • @Tinfoiltomcat
    @Tinfoiltomcat 3 ปีที่แล้ว

    I've learned more in the 45 minutes you've spent on this topic than I have in a year

  • @edi8355
    @edi8355 4 ปีที่แล้ว +6

    You should to post a video like this every week.I will follow them with pleasure.I hope you take my opinion into account.

    • @ChargerGames
      @ChargerGames  4 ปีที่แล้ว +3

      Thanks for the suggestion, I'll try to do it regularly :)

  • @pranjalsharma3436
    @pranjalsharma3436 3 ปีที่แล้ว

    waah...bahut acha tutorial.Bahut kuch seekhne ko mila👍👍

  • @yako668
    @yako668 2 ปีที่แล้ว +1

    Man these videos are great!! I just learnt a lot in a very short video. I think there are few things remained unexplained like why you chose to write your code in FixedUpdate method instead of merging all of it in the Update method. And for the rotate axis I believe it would be better if you talk in general on how we would write the line of code for different axis before choosing the Vector3.up for the Y axis and why not using the Quaternion since you mentioned it before. I understand that you're doing your best to make the video short, but honestly with this quality content I'm ready to watch a serie of 40min videos each since I'm learning a lot from it!! Thank you so much

  • @monocode1334
    @monocode1334 4 ปีที่แล้ว

    OMG THE PLAYER MOVEMENT SAVED MY LIFE I just about to give on making a player movement until I saw this video Thank you SO SO SO SO SO SO Much !!!!

  • @qqq9542
    @qqq9542 3 ปีที่แล้ว

    Raja, ur channel is one of the best for unity tutorials. You explain very clearly in ur videos. Keep doing what u do, ur channel will grow big, it's only a matter of time. Cheers!!!

  • @TheFaixee
    @TheFaixee 2 ปีที่แล้ว +1

    Wow man u did awsam job its ez to understand ... Love from Pakistan

  • @volar5227
    @volar5227 4 ปีที่แล้ว +1

    all of Raja's tutorials are the best for unity

  • @ArnavAggarwal
    @ArnavAggarwal 4 ปีที่แล้ว +2

    I was waiting for you video u are my favorite

  • @SumanDeyMusic
    @SumanDeyMusic 4 ปีที่แล้ว +1

    Eagerly waiting to join the class 👌👌

  • @Smile-dg1mk
    @Smile-dg1mk 4 ปีที่แล้ว +1

    Luv your vids man it always helps me

  • @michaelhouston7731
    @michaelhouston7731 3 ปีที่แล้ว +3

    Anyone able to solve an issue I am having with the destroy object script? I have everything set up word for word like the video, but the coin will not destroy. I have even attached a debug.log command to see if its at least recognizing that there was a collision but that doesn't work either. What could be the issue? I have the coin tagged as "Coin", the player cube has a collider, the parent coin has a sphere collider. As of right now the player cube just runs into the coin and gets stopped, which means unity recognizes they both have colliders. But the script wont fire. No luck. Please help :(

    • @kaiserfoxi266
      @kaiserfoxi266 ปีที่แล้ว

      I ran into this issue as well, I figured out its because I didn't reset the positions of both the parent and child coin. This is important because when you make the sphere collider on the parent coin, the collider doesn't appear in the same place as the child coin.

  • @oluwer2165
    @oluwer2165 4 ปีที่แล้ว +1

    It's so clear! You're the best man ty!

  • @sultonys
    @sultonys 3 ปีที่แล้ว

    3:50 I'm watching & learning your video, but object still don't want to move, I think it should input to script key for up down & left right move i think.

  • @MK-nv6ri
    @MK-nv6ri 4 ปีที่แล้ว +1

    Hi Raja, enrolled your course in Udemy.
    Very useful 👍👍

  • @UnlegitDqrk
    @UnlegitDqrk 3 ปีที่แล้ว

    This tutorial is easy to understand and good for refresh your skills (sorry my english is not good)

  • @AlanJojy
    @AlanJojy 3 ปีที่แล้ว

    Really Nice Tutorial... Going to see that 1 hr version... just started with unity

  • @grantscott1686
    @grantscott1686 3 ปีที่แล้ว

    I can't understand why at 4:50 the camera is looking at/following the cube as it tumbles and rotates. It didn't look like you had set the camera follow at that point. Am I wrong?

  • @ryuwi1516
    @ryuwi1516 4 ปีที่แล้ว +1

    Damn your tutorial video is one the best! I learn so much here

  • @noahsaunders8372
    @noahsaunders8372 4 ปีที่แล้ว

    This was absolutely awesome. Thank you so much!!

  • @moazzarts
    @moazzarts 4 ปีที่แล้ว +3

    Hey, your tutorials are very great and to the point, I really appreciate your work and hope you will continue to teach us. I was wondering if you could teach us how to make unlockable levels, scene transitions on buttons/ transition by moving through the screen. Thanks!

    • @ChargerGames
      @ChargerGames  4 ปีที่แล้ว

      Thanks Moazzam for the suggestions, I'll try to create videos on those topics.
      :)

  • @dmmtech3115
    @dmmtech3115 4 ปีที่แล้ว +1

    Bro I am your biggest fan

  • @Rahulsingh-theraha
    @Rahulsingh-theraha 4 ปีที่แล้ว +3

    Will u bring any intermediate level course this year in Udemy

    • @ChargerGames
      @ChargerGames  4 ปีที่แล้ว +1

      Thanks for the suggestion, I'll try to create one :)
      If you have any more suggestions , like courses on which topic do you want, you can let me know..

    • @christiaan_saaiman
      @christiaan_saaiman 4 ปีที่แล้ว

      @@ChargerGames maybe an intermediate course on making something like a 2D rouguelike game?

  • @guessimissedthelz32
    @guessimissedthelz32 7 หลายเดือนก่อน +1

    underated channel

    • @ChargerGames
      @ChargerGames  6 หลายเดือนก่อน

      Thanks for your support :)

  • @bodhisattabhattacharjee3338
    @bodhisattabhattacharjee3338 4 ปีที่แล้ว

    @ 16:00, whenever my cube hits the coin, there is an error in console saying - "ArgumentNullException: Value cannot be null.
    Parameter name: source
    UnityEngine.AudioSource.Play () (at :0)
    Player.OnCollisionEnter (UnityEngine.Collision collision) (at Assets/Scripts/Part3/Player.cs:46) "
    Help !!

  • @jamham4820
    @jamham4820 4 ปีที่แล้ว +7

    Great tutorials but in the next one can u show us how to jump

    • @ChargerGames
      @ChargerGames  4 ปีที่แล้ว +1

      Ok, I'll try to add this topic :)

  • @omegabit_2991
    @omegabit_2991 3 ปีที่แล้ว

    ... And this is why I'm subscribed ...

  • @victorrus01
    @victorrus01 4 ปีที่แล้ว

    BTW I love your videos!!! Please keep making more!!

  • @hernandonj
    @hernandonj 4 ปีที่แล้ว +1

    Awesome video! thank you very much!

  • @mavikedi1814
    @mavikedi1814 4 ปีที่แล้ว +1

    Pls contunio like that you are making best c# tutorial videos

  • @المنيفي-تعز
    @المنيفي-تعز 4 ปีที่แล้ว

    What music you use in the latest video

  • @MilesRaynor
    @MilesRaynor 4 ปีที่แล้ว +1

    4:00 after making the float public (and before) there’s still no move speed up showed in unity pls help me:(

    • @ChargerGames
      @ChargerGames  4 ปีที่แล้ว +1

      Probably there's some error in the code, check the console

    • @MilesRaynor
      @MilesRaynor 4 ปีที่แล้ว +1

      Charger Games oh yes you are right in the console is printed: The name xinput does not exist in the current context.(same by zinput)so what should i do 🥺

    • @MilesRaynor
      @MilesRaynor 4 ปีที่แล้ว

      @Charger Games

    • @disastrousaj7570
      @disastrousaj7570 4 ปีที่แล้ว

      @@MilesRaynor Did you spell it correctly? Sometimes that can be a pain in the butt :P

  • @ConchStreetStories
    @ConchStreetStories 4 ปีที่แล้ว +2

    Plss pls do a video about playerprefab, like you did with the coin thing, and how to access it on other scenes

    • @ChargerGames
      @ChargerGames  4 ปีที่แล้ว

      Ok, Thanks for the suggestion :)

  • @cripplingtoast8383
    @cripplingtoast8383 3 ปีที่แล้ว

    thank god that indian guys on internet are here to teach me actual codding

  • @FPChris
    @FPChris 4 ปีที่แล้ว

    Awesome tutorials! I would have like to have seen the coin audio attached to the coin prefab then called on Destroy. That way it could be reused by other games without having to attach it to the player every time.

  • @goldenwolf2621
    @goldenwolf2621 4 ปีที่แล้ว +2

    How can i make the cube look at the direction that he goes for
    And think you your tutorials is awesome

    • @ChargerGames
      @ChargerGames  4 ปีที่แล้ว +2

      Thanks man, I'll try to make a video on that topic :)

  • @amanamortalknight5586
    @amanamortalknight5586 3 ปีที่แล้ว

    Hello why its not possible to multiply the
    rb.velocity = new Vector3 (xvelocity, rb.velocity.y, zvelocity);
    to Time.deltaTime?

  • @someshsahu4638
    @someshsahu4638 3 ปีที่แล้ว

    Very informative video sir thankyou 🙏

  • @marysharyn4652
    @marysharyn4652 3 ปีที่แล้ว

    Help!! What should be the format of the audio file??

  • @-windowing-3238
    @-windowing-3238 4 ปีที่แล้ว

    Charger games my collision with the cube and coin is not working please help

  • @viper_talks
    @viper_talks 3 ปีที่แล้ว

    What visual studios version is this?

  • @akara956
    @akara956 4 ปีที่แล้ว

    would this work for 3d roguelike game

  • @Stinger-rq4gy
    @Stinger-rq4gy 3 ปีที่แล้ว

    Awseome, excellent I saw this and it helped me a lot🥇🥇🥇🎖🎖🎖🏆🏆🏆👍👍👍😁😁😁😁😁😁😁😁😁😁😁

  • @MilesRaynor
    @MilesRaynor 4 ปีที่แล้ว +1

    Charger Games oh yes you are right in the console is printed: The name xinput does not exist in the current context.(same by zinput)so what should i do 🥺

    • @johnbiluke8406
      @johnbiluke8406 4 ปีที่แล้ว +1

      Make sure you spelled Horizontal and Vertical correct like this: "Horizontal" "Vertical"

    • @MilesRaynor
      @MilesRaynor 4 ปีที่แล้ว

      MYSTIC MAN idk if this would help cause i deleted all and make danis tutorial and now it works anyway thx

  • @simplysane2090
    @simplysane2090 4 ปีที่แล้ว +1

    Why make Awake and FixedUpdate private void?

    • @bodhisattabhattacharjee3338
      @bodhisattabhattacharjee3338 4 ปีที่แล้ว

      any function (either predefined or user created ) will be private void by default, not writing the private keyword does not matter

  • @gautamgarg7377
    @gautamgarg7377 4 ปีที่แล้ว +2

    Awesome tutorial. However, my coin orbits instead of rotating.
    private void FixedUpdate()
    {
    transform.Rotate(Vector3.up, rotspeed);
    }

    • @mmhcartoons9395
      @mmhcartoons9395 2 ปีที่แล้ว

      same here.. do u find the solution ?

  • @huniatomoum672
    @huniatomoum672 ปีที่แล้ว

    Thank you so much for your tutorials! I have an error though for the player file. NullReferenceException: Object reference not set to an instance of an object Player.FixedUpdate () (at Assets/Scripts/Player.cs:39) Any idea how to resolve it? I used your exact code.
    using System.Collections;
    using System.Collections.Generic;
    using System.Collections.Specialized;
    using UnityEngine;
    public class Player : MonoBehaviour
    {
    Rigidbody rb;
    float xInput;
    float zInput;
    public float moveSpeed;
    private void awake()
    {
    rb = GetComponent();
    }
    // Start is called before the first frame update
    void Start()
    {

    }
    // Update is called once per frame
    void Update()
    {
    xInput = Input.GetAxis("Horizontal");
    zInput = Input.GetAxis("Vertical");
    }
    private void FixedUpdate()
    {
    float xVelocity = xInput * moveSpeed;
    float zVelocity = zInput * moveSpeed;
    rb.velocity = new Vector3(xVelocity, rb.velocity.y, zVelocity);
    }
    }

  • @Ascyt
    @Ascyt 4 ปีที่แล้ว

    Quick question, what's the difference between Update and fixedUpdate?

  • @Bruh-ms4jh
    @Bruh-ms4jh 4 ปีที่แล้ว +1

    wow, these video's help a lot!

  • @FPChris
    @FPChris 4 ปีที่แล้ว

    13:23 Typo on rotateSpeed. ;)

  • @zeph0shade
    @zeph0shade 3 ปีที่แล้ว

    Is the reason for using tags instead of names purely a matter of "good habits" or is there another reason?

  • @YunkyongKim
    @YunkyongKim 2 ปีที่แล้ว +1

    THANK YOU SO MUCH!!!

  • @akara956
    @akara956 4 ปีที่แล้ว

    does this only work for a cube can you use characters for this script and secondly will it still work if you use anything other than a cube

  • @5th_Vertex
    @5th_Vertex 4 ปีที่แล้ว

    Hey i am having that error while trying to collect the coins and play the audio source:"ArgumentNullException: Value cannot be null.
    Parameter name: source
    UnityEngine.AudioSource.Play () (at :0)
    Player.OnCollisionEnter (UnityEngine.Collision collision) (at Assets/Scripts/Player.cs:46)"

  • @namename-be5bd
    @namename-be5bd 4 ปีที่แล้ว +2

    If you make the next part can it be for nity 2d like moving in unity 2d and stuff like that

    • @ChargerGames
      @ChargerGames  4 ปีที่แล้ว +1

      Ya, Thanks for the suggestion :)

  • @techgaming4905
    @techgaming4905 4 ปีที่แล้ว

    Very nice tutorial

  • @elloxz706
    @elloxz706 4 ปีที่แล้ว +1

    Great video! Can you maybe do a intermediate tutorial?

    • @ChargerGames
      @ChargerGames  4 ปีที่แล้ว

      Possibly!
      Btw, you can check my complete course from description :)

  • @ayushkumar4922
    @ayushkumar4922 4 ปีที่แล้ว +22

    The video is 18 minutes.... they lied to us😂

    • @ChargerGames
      @ChargerGames  4 ปีที่แล้ว +8

      Haha.. There's some Intro & Outro..

    • @scampernoodle6757
      @scampernoodle6757 4 ปีที่แล้ว +4

      :o

    • @stylosketch
      @stylosketch 3 ปีที่แล้ว +1

      Still better than videos that are a few hours long...

  • @Dotten83
    @Dotten83 ปีที่แล้ว

    i got a problem: i followed all the steps but the coin wont spin
    edit: i had to use back instead of up
    and rotatespeed does nothing it just automaticaly spins

  • @manighanbari1606
    @manighanbari1606 ปีที่แล้ว

    which extension do you use for c#?

    • @ChargerGames
      @ChargerGames  ปีที่แล้ว

      Please check my video Visual Studio Auto Completion Fix

  • @ibtesamriasat2583
    @ibtesamriasat2583 4 ปีที่แล้ว

    Why doesnt mine move? help please!

  • @giovanniiovino529
    @giovanniiovino529 4 ปีที่แล้ว +1

    sorry if i ask, but it wouldn't be easier to use * cinemachine * instead of using the script?

    • @ChargerGames
      @ChargerGames  4 ปีที่แล้ว

      You can do it bot ways, here we have used just one line of code, feel free to use whatever you think is more optimal :)

  • @GouriPrasadPatnaik
    @GouriPrasadPatnaik 2 ปีที่แล้ว

    Dear Raja make vedios for racing games 3d and 2d in unity and thanks for your tutorials😊

  • @cylaschambers7465
    @cylaschambers7465 2 ปีที่แล้ว

    Can I use your code for my horror game?

  • @clive_clive
    @clive_clive 4 ปีที่แล้ว +3

    commenting so youtube promotes the video

  • @tiantiankaixin
    @tiantiankaixin ปีที่แล้ว +1

    thanks a lot!

  • @greendecoys7475
    @greendecoys7475 4 ปีที่แล้ว +1

    Thanks.

    • @ChargerGames
      @ChargerGames  4 ปีที่แล้ว +1

      Hope you liked the video :)

    • @greendecoys7475
      @greendecoys7475 4 ปีที่แล้ว

      @@ChargerGames I did and the last 2 tutorials.

  • @hyperionsupreme7814
    @hyperionsupreme7814 4 ปีที่แล้ว

    Hello Sir, I want to create a fighting game, everything is fine but I am stucked in place where i want to create a combo move by pressing 1 button, like if i press one button player performs a move then i press button again in limited time it performs a different move and then 3rd time again, if we dont press in the time back to the idle, can you make a tutorial....? it will help me a lot

  • @moonknight7564
    @moonknight7564 4 ปีที่แล้ว +1

    Can you make a tutorial on fps (first person shooting)

  • @RockyWolfTheEditingWolf
    @RockyWolfTheEditingWolf 4 ปีที่แล้ว

    Hey I'm having a problem with tuples needing to have two elements I don't really know what a tuple is and visual studio isn't giving me problems I'm new to unity and I was hoping I could find someone who could help me

  • @keener7549
    @keener7549 4 ปีที่แล้ว

    i did everthing corecrt but my cube did not move i cant find any thing wrong

    • @ChargerGames
      @ChargerGames  4 ปีที่แล้ว

      Make sure to add a speed value from the Editor. :)

  • @aimedforyou997
    @aimedforyou997 4 ปีที่แล้ว

    Hello, I'm new to using unity and also new to using c#. There's something that's bugging me whilst I'm trying to make my first game, basically I heard that you can not use somebody's c# coding because its classed as plagiarism, now I do not get it because there's thousands of gaming apps out there. surely there isn't thousands of different codes to make a player move. so I guess what I am saying is what do you do then? thank you

  • @advaygugliani3544
    @advaygugliani3544 3 ปีที่แล้ว +1

    0:21 just look at the trophies behind 😂😂

  • @punkinhel
    @punkinhel 4 ปีที่แล้ว

    how to make the camera follows the player around so that it won't look so far when it just follows where the player. but it actually follows as it travel?

    • @ChargerGames
      @ChargerGames  4 ปีที่แล้ว +1

      I'll try to create a camera follow video in future :)

    • @punkinhel
      @punkinhel 4 ปีที่แล้ว

      @@ChargerGames thank you so much. keep it up

  • @Liammoz
    @Liammoz 3 ปีที่แล้ว +1

    Only thing that is a bit confusing is all the brackets and curly brackets

  • @isaiahbaptiste3941
    @isaiahbaptiste3941 4 ปีที่แล้ว

    I need help! My coins don’t rotate

    • @ChargerGames
      @ChargerGames  4 ปีที่แล้ว

      Paste the code, someone might help :)

    • @isaiahbaptiste3941
      @isaiahbaptiste3941 4 ปีที่แล้ว

      @@ChargerGames Nvm i fixed it. I forgot to add a create empty object to the coins. Thanks!

  • @HERO_KID_SHORTS
    @HERO_KID_SHORTS 4 ปีที่แล้ว +1

    Plz make another eps ♥

    • @ChargerGames
      @ChargerGames  4 ปีที่แล้ว +1

      Thank You, There are already 5 episodes in this series :)

  • @kratos_6.9
    @kratos_6.9 3 ปีที่แล้ว

    veryunderrated video

  • @WorstDeveloper
    @WorstDeveloper 4 ปีที่แล้ว

    Shouldn't the coin sound code be added to the actual coin instead? Otherwise you'll end up with loads of code on your player for playing sounds of different things it interacts with.

    • @ChargerGames
      @ChargerGames  4 ปีที่แล้ว

      Yes you can do that.. I created it the simplest way in this video :)

  • @Seer_Verse
    @Seer_Verse 3 ปีที่แล้ว

    This video was super helpful but the only thing was that I want the camera to FOLLOW the player, not LOOK AT it. Can anyone tell me a script that shows me how to follow and not look?

  • @HeroicTrickz
    @HeroicTrickz 4 ปีที่แล้ว +1

    If anyone's having trouble with the camera following your cube incorrectly, you can simply make the Main Camera a child of the Cube (literally just drag main camera into cube, it should create a drop down that has main camera in it). From there make the x & y position of the camera the exact same as the cube, then make the z slightly different so that the camera is behind the cube
    (Cube position: -0.65, 2.37, -3.48 | Camera position: -.65, 2.37, -5. You can def play around with it and see what you like) and when you move the cube the camera will follow! Seems to be a super easy and honestly better camera follow... no script neccessary.
    And in regards to the movement of the cube, I had to change xInput to: Input.GetAxis("Vertical"); and zInput to: Input.GetAxis("Horizontal"). Also had to change
    rb.velocity to: new Vector3(-xVelocity, rb.velocity.y, zVelocity)... This made my cube go WASD properly with a nice camera follow. Hope this helped at least 1 person (and wasn't too confusing, feel like I worded it pretty reasonably)!

  • @relaxing1633
    @relaxing1633 3 ปีที่แล้ว

    Guys i need help when i start i cant move he said axis not setup

    • @Celcious
      @Celcious 3 ปีที่แล้ว

      what

    • @relaxing1633
      @relaxing1633 3 ปีที่แล้ว

      @@Celcious i press but ita not move and the script out of errors

  • @xdmcreamysickalien9067
    @xdmcreamysickalien9067 4 ปีที่แล้ว +2

    How do i give you some money to thank you?

    • @ChargerGames
      @ChargerGames  4 ปีที่แล้ว +1

      You can purchase my courses.. :)

  • @zackviccaji6342
    @zackviccaji6342 3 ปีที่แล้ว

    Thanks bhai

  • @themaskedgamerguys5805
    @themaskedgamerguys5805 4 ปีที่แล้ว

    could you make a third and or first-person tutorial

    • @ChargerGames
      @ChargerGames  4 ปีที่แล้ว

      Thanks for the suggestion, I'll try to make videos on these topics :)