Struggling to learn, where to start?

Alright so I’ve been through all of the beginner scripting tutorials while testing what they did accordingly with the video. I’ve gone all the way through the Roll A Ball tutorial.

I’ve opened Unity now to try and see what I had learned. First thing I do, I add a plane and a sphere to my scene, create the materials and set the light and camera in a place I like. I open the script for the sphere so that I can add player controls. But that’s where I stop. I get the “moveHorizontal” = Input.GetAxis (“Horizontal”); part right, but then I check the original script again and I see that I only wrote one line out of many.

I have no idea how to write my own script. Just feeling helpess in front of the blank page. During the tutorials I pretty much just copy pasted what the guy was doing, because I had no idea why he was doing it. What’s “void”, or “float”? What’s the difference between “public” and “private”? What should I even begin by doing if I simply want a sphere to roll in one direction when I press a button?

I know that’s explained in the Scripts lessons, but I don’t think I’m understanding what each script accomplishes in the gameplay and in what order I have to write them. I understood for example what transform.translate is but I have no idea how to apply it. Is there any easier exercice I can do to learn these basics of the basics?

Probably not. If you have never programmed before (which sounds like is the case), then you have a lot to learn: how to code, and how to use Unity and its framework. There is no shortcut.

However, you can learn C# coding on its own. Search for “C# tutorial” and you’ll find many, including these. There are also many books and classes available, if that works better for you.

Then, come back to the Unity tutorials again. Go through them more carefully, making sure you understand each step. Test your understanding by making it do something different. When stumped, ask for help (we’re a friendly bunch)!

Good luck!

2 Likes

I wrote a series of Beginner’s tutorials that might work for you. Most of the coding and engine stuff is explained pretty in-depth, and if you follow along with the learncs tutorials posted above you should be able to learn lots. I also include the full project for each step of the tutorial to make sure you don’t get lost.

2 Likes

That’s actually amazing. I quickly read your work and it’s what I was looking for. I wasn’t expecting to find this. You go more in detail and into beginner basics than the Roll A Ball tutorial. I’ll have to look into what JoeStrout suggested to complete my initial training, but for now this is the missing step I was looking for, thanks a lot!

If there are any more suggestions I’m open. I know there’s Google, but finding the right tutorial for me in the mountains of more advanced tutorials is sometimes difficult.

Try the Yellow Book. It’s a free book for learning C#. Might help you get your head around the language.

3 Likes

Thank you so much for creating that tutorial. I can’t stress to you enough how much it’s helped me since finding it today.

Like many I’m new to Unity and don’t have a programming background. For the past 4 days I’ve been watching the tutorials videos in the learning section and reading stuff about C# and honestly none of it was making any damn sense. I can’t tell you how many times in the past 4 days I’ve felt like just giving up. I could follow what was being addressed in the tutorials videos but nothing is explained in a way where it made sense. What I mean is although I could follow my brain just couldn’t retain the information due to how it was being explained. Whenever I try to write my own code often I was just staring at an empty canvas on MonoDevelop for hours upon hours throughout the day.

I’m so glad I didn’t give up and came searching here. I found your tutorial lessons and while I still have a long way to go I can say with confidence that s**t is finally making sense. Thank you man… thank you so much!

1 Like