• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
This question was closed Jan 01, 2016 at 04:07 PM by SgtShadowWalker for the following reason:

Other

avatar image
0
Question by SgtShadowWalker · Nov 14, 2014 at 10:14 PM · c#2djavascript2d-platformerlanguage

2D games; Javascript or C#?

Hello, So I've been wanting to make a 2D game for a while and I'm now working on the story, art, etc. I've been looking into which language is better for a 2D game and it seems that everyone is using C#. Now I'm not that good with C#, so I want to know if it's possible to make one with (mostly) Javascript.

Thank you

Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image MrSoad · Nov 14, 2014 at 06:56 PM 0
Share

Either is fine but if you are starting from scratch then C# is the better language to learn. $$anonymous$$ixing the two can be problematic at times and most of the useful things you find on the Asset store are in C#, so they are far easier to modify and interact with if your use C# throughout your whole project. I have made a full game only using js though so ultimately the choice is yours.

avatar image Derpyness · Nov 15, 2014 at 12:31 AM 0
Share

It's not really about which is better, it's about which one you are more comfortable coding with. It just happens that most people choose C#, but the choice is yours.

avatar image MrSoad · Nov 15, 2014 at 12:34 AM 0
Share

I know js (Unityscript) far better than C#, but I'm switching over, not because I feel more comfortable with C# but because it is ultimately a better language to use.

1 Reply

  • Sort: 
avatar image
0

Answer by Jeff-Kesselman · Nov 15, 2014 at 12:22 AM

Javascript, like any scripting language, is easy and convenient for fairly small projects.

For projects of any serious size or complexity however, you need the organizational power of a real programming language such as c#.

Just about every full Unity game project I know of that started out in javascript, eventually had to move to C# to complete.

(Btw, its technically not Javascript, its Unityscript. Javascript and Unityscript are two different distinct dialects of ECMAscript. Unityscript files by convention end in .js which confuses things somewhat.)

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Trying to get Player Tip for player to open on Return and close on Return 2 Answers

Trying to make the camera follow the player but stop at the edge. 1 Answer

Particle System On Key Press 2 Answers

Multiple Cars not working 1 Answer

2D Character Movement Issues 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges