How did you learn to use unity/script

I’m really lost. I’m trying my hardest to teach myself unity, and javascript, but I somewhere seem to fall down. How did you do it? Teach yourself to write code and use unity proficiently, teaching it to myself is proving far too difficult.

Brute force and ignorance is how i learned programming :slight_smile:

No seriously. Practice, practice and more practice. Start simple and work your way up SLOWLY. Don’t try to run before you can walk, you will only waste time in the long run. It also helps to have a logical thinking mind when it comes to programming. Everyone can learn if they have their heart in it for the long haul, it just takes some longer than others.

Stick at it!

What are good starter games to try? That aren’t snake, cause Snake.

Pong :slight_smile:

Or any of the old classics really, Asteroids, Missile Command stuff like that.

Check this thread out:

http://forum.unity3d.com/threads/97595-How-did-you-learn-to-use-Unity

Has some good links in it.

game development as a whole is really complex. If you’ve never programmed before IMO you should start with the basics. I’d go with C# also instead of java script. There are tons of tutorials online that you can code some basic things to get the hang of general programming practices. You’ll need to learn how to use an IDE and how to look up documentation on classes and functions. It wont always be spelt out for you so you’ll have to figure out how to use things from time to time.

Once you’ve got some basic programming foundation and understand the tools involved with that aspect you can start to focus on learning the unity tools. There is a pretty great book that takes you step by step through unity and spells out the code pretty well it’s called “unity 3.x game development essentials”

People sugget basic games because you have to get some fundamental groundwork or else the entire experience will be too overwhelming.

I learned it by reading the documentation. A great starter game is Space Invaders. It is a great foray into coding and teaches you coroutines and raycasts. It also will help you learn to program physics and use arrays.

Youtube and google are your best ffriend

I think the first and most important thing when starting to code, without having previously coded in another language before, is to understand the logic behind it, which is very similar between all languages. Learn the absolute basics (loops/ifs/functions), and before starting to write learn to READ code (start from simple pieces, ignore more complex ones for now).
It’s like music: first you have to learn how to read the notes, then you start playing a lot of different songs to gather skill and experience, then move to more complex ones and then finally you’ll be able to play without sheet music.

I remember how I started more or less, I think I watched some basic tutorial vids from the unity3d.com, then first thing I did is add a cube into the scene, then made a script that rotated the transform, and applied the script on the cube!

the cube… ROTATED!

that was me ^

NOW THIS is my story. :slight_smile:

+1 lol

I made a game

I picked up both Will Goldstones books, one will do. Unity3.x Game Development Essentials got me up and running in no time at all. :slight_smile:

I jumped right into the deep end and tried to make a racing sim.
It failed miserably, but I learn’t a hell of a lot along the way.

Easiest way to learn is too do some step-by-step example or scripting projects.
Then do 2 or 3 very simple games. As you progress through each game, tackle each element seperately. Once you’ve made a couple of games you’ll be a lot more confident.

I had a really amazing Flash ActionScript3 teacher back in school who taught scripting in a very artist-friendly way. I had tried to learn to program many times before, but it never clicked until this class. After it clicked, everything came back to me and made sense, and I took off way ahead of the class.

Before the “click” I had been using Unity for many years as an art tool, as well as for some pre-written gameplay code - but a couple quarters after the Flash class, I had the opportunity to lead a team of students in making a game prototype. I knew right away that I wanted to use Unity, so I decided to learn how to script in it and did so in about 2 weeks.

At the time, I was learning to use JavaScript/UnityScript, and the transition was made much easier with the help of Ethical Games’ Unity for Flash Developers series: Unity for Flash Developers – Tutorial 1 | Ethical Games Blog

Eventually I decided to give C# a shot, and I’ve been extremely happy with it. I used to be one of those people who believed it couldn’t be that much better - but it really is. That said, I still thing JavaScript is a better intro language for people who have never done any programming - especially if you’re more of an artist (it just reads in a more familiar manner for some reason).

These days though, my suggestion would be to just watch programming tutorial videos and program along side it. At first, you’ll learn best by just copying what the people in the videos are doing. Over time, you’ll start to find yourself pausing the videos to play around with the code to make your own weird things. And one day, you’ll be comfortable enough to just start writing your own scripts from scratch.

Also, Unity is working on their own set of tutorials that will be coming out soonish, so keep those in mind as you learn: Learn Unity update no. 2

Tutorials was my entry. And working through the available examples, looking how they solved their problems. And of course asking here and elsewhere for some help when i got stuck. Nowadays i would recommend to start with one of the Unity books too. Because you don`t only learn the language, but also Unity when you want to make a game with Unity. Amazon will lead you.

I learned by watching some tutorials on youtube, using Unity’s script reference page and if i had doubts on how to do something i would just ask in the forum ( Seaching on the forums before posting anything ).

Here’s the tutorial where i learned to work and script with Unity : http://www.youtube.com/watch?v=5-X-Ebh1kYA
You will learn the basics with that tutorial series.

Also make a very simple game first before you try to make something complex.

Try some books. I tried one of the first books - the unity essentials or whatever it’s called, with a project about making an island with a volcano on it… i learned a lot from that. I needed it because Unity does have some learning curve. As far as scripting goes maybe do some javascript tutorials online or just get stuck in experimenting with code. It takes time to become better at programming. Unity has a lot of object-oriented classes with a lot of documentation - it’s a good idea to read as much of the online documentation as you can to get an idea of what’s out there.