- Home /
What code/assets should I use for 2D apps?
So I plan on making some 2D apps currently with Unity. I have a couple ideas, and am exited to work on them. Now, I have a few main questions...
1) What should I use for scripting? I was working towards learning C++ when I realized I can't use that with Unity. I have no C# experience and a little experience with Javascript (which I've heard Untiy's JS is different, so have been looking up video tutorials along with a nice one I found on the forums.) So basically, for making simple 2D games should I learning Unity's JS or should I learn C#?
2) was going to use this guide some... http://maniacdev.com/2012/02/developing-2d-games-in-unity-3d-without-paying-extra-for-tools due to the fact I have no money to spend :P is this a good place for a noob like me to start? Any other suggestions regarding free tools I should use to make it easier?
Thanks for your time, sorry if some of this has already been answered somewhat somewhere but I honestly have been Googling stuff for a good solid three days.
Answer by tanoshimi · Nov 04, 2013 at 01:03 PM
Really doesn't matter. Some people find Javascript/Unityscript "easier", but that's mainly because it's more forgiving of sloppy code (which can then come back to haunt you later on). C# is regarded as a more "professional" choice. There's plenty of examples for both languages, so just choose one and stick to it.
Never heard of that particular guide, but there are a ton of resources out there. You might want to be aware of the fact that Unity 4.3 (the next version, currently in beta) provides a radical overhaul of the inbuilt 2d features, so you might want to wait for that before committing too much effort learning the "current" way of doing 2d stuff...
Thanks for the info! I guess I'll just work on learning UnityScript/C# until the update comes :)
Will it be free as well, I'm guessing?
I don't work for Unity, but I'm 99.9999% certain there will be both Free and Pro versions (possibly some advanced features only being available in Pro), as currently.
This answer is great, but I want to chime in with a couple of tips:
I recommend you commit to C# ins$$anonymous$$d of Javascript. The syntax differences are negligible, and if you are serious about this, C# will make you a more disciplined developer and will provide you with powerful tools.
Although waiting for the next version of Unity "2D" is an option, if you want to start right away, I would recommend looking into the 2D Toolkit asset in the asset store.
Alright, will work towards learning C# and I guess I can try starting with some assets. Can I transfer the game over to Unity2D or whatever it will be once the update hits?
You'll be able to transfer whatever code you've written in the current "vanilla" Unity to the next version. However, 2D Toolkit is a 3rd party asset, and it's very unlikely that you'll be able to simply convert any code specific to that asset into the new Unity2D functions.
Incidentally, I assume when you mean a "2D" game, you mean one created from sprites etc.? If you simply mean a game in which the gameplay only takes place in two dimensions (but in which the models are actually 3D), you could start with a tutorial such as this: http://cgcookie.com/unity/cgc-courses/lunar-landing-series/