Search Unity

Learning java.

Discussion in 'Scripting' started by gustavort00, Feb 12, 2013.

  1. gustavort00

    gustavort00

    Joined:
    Feb 11, 2013
    Posts:
    2
    I found in youtube some tutorials of how to make a game in unity, now that i finished the tutorial (and obviously the game) i want to learn how to write java so i can write anything i want when i need it, so can you tell me some good tutorials of java? and sorry for the bad english.
     
  2. willemsenzo

    willemsenzo

    Joined:
    Nov 15, 2012
    Posts:
    585
  3. scrawk

    scrawk

    Joined:
    Nov 22, 2012
    Posts:
    804
  4. Padges

    Padges

    Joined:
    Jan 22, 2013
    Posts:
    46
    As scrawk said, Java and JavaScript are two different languages.

    If you really mean that you want to write in JavaScript, then willemsenzo provided a nice website for you.

    However, If you really mean you want to learn how to write Java itself, so you can write regular programs outside of Unity, try this
    http://docs.oracle.com/javase/tutorial/java/index.html
    ^^ this is a good place to start learning the basics of Java.

    Again, Java and JavaScript itself are two different things, and with this approach you will essentially have to learn two different languages and frequently switch between them. If you DO want to write programs outside of Unity using the same language that you can also use inside of Unity, I suggest moving over to C#. Its syntax is incredibly similar to Java, and the language is identical across Unity and other IDE's like Visual Studio.

    Tl;Dr

    If you want to learn more JavaScript: http://www.walkerboystudio.com/html/...___free__.html

    If you want to learn Java in addition to JavaScript:
    http://docs.oracle.com/javase/tutorial/java/index.html

    If you want to learn C# so you don't have to keep switching between languages:
    http://msdn.microsoft.com/en-us/library/aa288436(v=vs.71).aspx
     
  5. Mike L

    Mike L

    Joined:
    Sep 14, 2010
    Posts:
    1,035
    Unity doesnt use Java, as explained before, it uses JavaScript (or, as stated before and is a more accurate title, UnityScript), C#, and Boo (a python derivative i think). You dont actually need to learn every single Programming language, because most of them are almost exactly the same concept wise, the only thing you have to learn is the syntax, or wording of the language. its just like if you know english, and what an apple is in english, you dont need to re-learn what an apple is in french, you know what an apple is still, you just need to know how to spell it. you dont need a knowledge of C because of reasons i just explained, and also not many programs still use C, they all use developments of C such as C# and C++, where C++ is the closest resemblance of C that i know of.