2D Toolkit
The first thing to get for Unity for easy 2D game making would be the 2D Toolkit from Unikron Software. There are plenty of other ones out there but I picked this one because it was the most popular and seems to have the most support, tutorials, and documentation.
The toolkit is available in the Unity asset store, it looks a lot like the iTunes store but it's full of thing to use in Unity like assets, templates, tools, and interface upgrades. I bought the 2D Toolkit for $60 (USD). It's definitely worth every penny because it has saved me countless hours of frustration and I can now use it for my future projects too. I also could afford it because I got it the same day Unity made it's Android and iOS development packs free. They used to cost $800 total and I had money saved up to buy them, luckily I felt like checking Gamasutra before getting started with my first Unity project and I saw that the kits were just made free for developers! It seems like Unity is constantly doing things to make my job easier.
Unity Layout
Make the menu easy for you to use. |
Just drag the windows to arrange them. |
In the Project window you can see all the main folders for your project. You can find all your sprites, sounds, scripts, fonts, and scenes here. You can make and arrange folders to stay organized in a way that makes sense to you. The folders are on the left and the highlighted one's contents are on the left. The contents can be shown as images or icons with text and you can use a slider to change their size.
In the Inspector window you can change the properties of objects. You can add scripts, components, and sprites to objects. Scripts make the objects act, components can enable things like physics and sound, and sprites can be picked out of sprite collections.
It's a nice little info tab for everything and it lets you change object properties easily. You can even move the components around and move the stuff you like to use most to the top.
Unity has it's own script editor, MonoDevelop which makes it easy to change code for the game and test it quickly. You can code in JavaScript, C#, or Boo. You can keep them all open, or just use the scripts you edit most. You can even open MonoDevelop without opening Unity.
When importing sprites you just drag & drop from your documents and select it in the Project window. When you do you can alter it's settings for transparency and resolution. When you push the open button you can either edit it or look at a preview depending on your computer's default reaction to double clicking an image file.
After that making a sprite objects with 2D toolkit is a matter of going to the Hierarchy window and pushing the create button.
2D toolkit has sprite images stored in Sprite Collections you make to use for the Objects in the game. You drag & drop the sprite files from Project to the Sprite Collection and then attach collision boxes and anchor points. Sprite images can only be used if they are in sprite collections.
Polygon colliders let you make weird shapes |
Once you get familiar with the environment and watch a few tutorials, using Unity will be as easy and natural as navigating a web browser. Hopefully this little walkthrough gave some insight into how Unity works and feels. Now with this new knowledge pen it up and give it a try!