Search Unity

Coding a game which is a better code for a single player game 3d?

Discussion in 'Scripting' started by KingLlama, Aug 1, 2015.

  1. KingLlama

    KingLlama

    Joined:
    Jul 18, 2015
    Posts:
    199
    So right now im using javascript for my base health,damage, and other things related to that. My question is if C+ will be a better language to learn. Im planning on taking a couple classes to learn how to script I have a very basic undertanding so far.
     
  2. ande04b

    ande04b

    Joined:
    Aug 29, 2012
    Posts:
    119
    I suppose you mean C# and not "C+".

    Whether you use JavaScript (UnityScript, really) or C# is basically personal preference. There might be a slight difference in performance, but to my knowledge, it's minimal.

    EDIT:
    While UnityScript might be easier to learn right off the bat, tutorials and general help is more available to C#.
    I also started with UnityScript - I wish I had started with C#.
     
  3. KingLlama

    KingLlama

    Joined:
    Jul 18, 2015
    Posts:
    199
    Oh okay, Hmmm is c# more organized or is that a user error for not understanding how to correctly organize scripts? Ill look into it more so.
     
  4. PatrickDuncan

    PatrickDuncan

    Joined:
    Jul 9, 2015
    Posts:
    11
    If you're looking to get better at programming in general I'd pick C#.
     
    BenZed likes this.
  5. Kiwasi

    Kiwasi

    Joined:
    Dec 5, 2013
    Posts:
    16,860
    C# is more explicit. This means there is less stuff going on under the hood to mess up.
     
    passerbycmc and BenZed like this.
  6. BenZed

    BenZed

    Joined:
    May 29, 2014
    Posts:
    524
    I also advocate c#.