Scripting (460234)

Hello,

I am new to all of this and so far have been following some video guides but it is becoming clear I will need to learn a programing language to get the most out of it (whic is fine, I fancy learning one anyways)

My question is..

C++ or Java?

I believe Unity uses either or, What would be best and is there a major difference in the learning curve ?

I have a basic, very bacic understanding of scripts

Thanks

Tom

Would be C# or java :slight_smile: technicly unity uses a version of javascripting that is called unity script, which is really not javascript in any good way, C# on the other hand is the same so you’d have a better experience from the get go learning that as you can make use of more wider resources for teaching.

ahhh ok c# it is then! thanks. Is C++ much different to C# then?

Yes.

I’m not the hardcore coding type of guy, but I get along well with java!

same here. Java is so chill bro!

Well, C# is very similar to java. Unity doesn’t use Java, though. It uses C# and JavaScript.

You can’t go wrong starting with C++. Actually, you can’t go wrong starting with any language using C style syntax. C++ will give you exposure to some of the things the later languages handle for you. I find this advantageous even when using something else. Then again, I’m old and extremely biased.

If you stick with programming any language long enough you’ll find transitioning to others relatively easy.

Best of luck.

so a few options then. Well thanks ill maybe take a look at C# or C++ and maybe start there, too many options! haha

I would say Obj-C, as it gives you the best of both worlds and it’s the language Java is based on. It’s a object-based language that can also use just regular C.

Calling UnityScript Java should result in a ban.

Thanks for the replies all, I have lots of stuff to learn but thats all part of the fun!

Just in case it wasn’t clear, you can only use two languages in unity: C#, and UnityScript(close to javascript).

What? Javascript has java in it = IT IS JAVA! (spot the troll)

i think it doesnt matter too much which object oriented language you learn. They all end up with the same ideas. Syntax you can always look up. Hell learn Ruby on rails! Also teaches you MVC and its beautiful (muahahahaha)

You forgot Boo.

–Eric

no one cares about Boo.

No offence, but that’s horrid advice. Starting with C++ will turn most inexperienced coders away. It’s just way too complex for the total beginner to handle. He doesn’t need to know about pointers and shared references and garbage collection just yet (maybe in theory, yes, but not the way it’s needed in C++).

My advice would be to start off with Python. It’s a really powerful language, yet its simple syntax will let you make games in a week or so. If and only if you feel the need to learn C++, have a go at it. You’ll have to write much more boilerplate code and, in general, your programs will be at least 4-5 times longer. And they will also take, on average, a lot longer to write. Unless you start developing applications for mobile devices or you get hired by a game studio, you probably would never need to write a single line of C code.

What you need to focus on right now is programming paradigms and concepts, not C’s ancient syntax. Once you know most of the programming concepts learning a new language simply becomes an exercise of learning the new syntax. Simple as that.

P.S. You can also pick up Ruby (not Ruby on Rails, that’s different). It’s really neat and I really like it as a language, but I think it’s a bit unconventional and it’s not a really good idea to learn it as a first language (you will get way too spoiled :P).

Wow, shows just how popular it is eh? lol sorry.

Are you serious? I’d never recommend C++ to a beginner.

There was a game design platform near me the other day. One of the company representatives who were there said to go Unity all the way. One of the inventors of Ms. Pacman was also there and said the best language to start with is C++.