I hope the post I am making is not against any rule as I did not find anything about exactly what I am about to ask.
I am picking up coding only lately, C# specifically, and I noticed that many tutorials tell you what to do but not why are you doing it.
I found this line in a beginner tutorial I was following about 2D game creation in Unity, and in order to make an object move there is a line which says:
private Rigidbody2D _myRigidBody;
what I don’t understand is, why is this necessary? isn’t it possible to just write in Update () that I want to change the Vector2 of Rigidbody2D without having to use this line? If what I said is extremely wrong I apologise, but even though I really like this I find it very, very hard to understand.
this was justified by saying that he is “assigning that rigidbody to our rigidbody component”, yet for me it is like he is speaking in Arabic and those words mean nothing no matter how much I squeeze my brain!! what is this for? and what does this do?
Again, if what I am saying makes no sense whatsoever I apologise; I just feel like I can’t find a tutorial which explains everything from the VERY beginning, as all of them quite imply that I have a prior knowledge.
Thanks in advance in case anyone should be able to understand what I am trying to say!
My point is, all the tutorials I looked for (even the ones labelled as “for beginners”, “for newbies” etc) start from a point in which they take stuff for granted; Example, I look at “very basic” tutorial for C#, and they tell me to use the “x” and “y” thingies without explaining what are they actually for, or they tell me to use “vector” stuff as if I know what it is already; is there a tutorial for ACTUAL beginners? And by that I mean someone with absolutely no experience in the programming field whatsoever. Would be great to start from the very basics and go to more difficult stuff gradually without skipping explainations.
“Beginner” is someone, who actually learned C#, and yes, they take it for granted. Its like learning to make basic cakes without learning, how to turn on the heater. And you learn about vectors in school. I actually know what they are, and im only in the first year of high school
Apologies for my lack of knowledge, in my Italian high school I only studied classical subjects (Latin, Italian, Greek, etc…but that’s off topic).
My question was as simple as where can I find a basic tutorial for C# which starts from scratch? I am not looking for one that gives me the scripts already written for me to copy-paste, but instead one that teaches you the theory and everything behind it. The ones on the Unity website are all valid, absolutely, but quite hard to follow as, like I already mentioned, explain approximately 70% of stuff leaving the rest out…
If what I am saying really makes no sense then never mind, I will just try checking more and more and more tutorials until I will find one that explain the basics. Thanks for your replies nonetheless.
Not really, i dobt know exactly what you meant by me being an asshole. I said, that yes, they take it for granted, that you learn C# before unity, then i made a metaphor, to show the reason for that , then I meant that vectors are not that hard, and I tried to proove it by using my age and knowledge about them as an example
Not like I said, or meant, that hes stupid, he should know that, and that he shoukdjt be here without any experience on c#, because I know, that nit every people is the same, and nit every school teaches vectors, so please consider what I said, and read my comment once again, and just let me know if you have a provlem with it. And you should also check out my other comments if you really think im boosting my comment count.