No JAVASCRIPT Tutorials?

Im looking everywhere and there’s no place to learn javascript for unity?
Please Help!!!

Pretty much all the tutorials use Javascript syntax. Try these:

http://unity3d.com/support/resources/

You can also try unity-tutorials.com, unitytutorials.com, or check the learning forum. Quite a few people on there post tutorials.

I would suggest using google to find good tutorials on javascript.

It is much easier to get into the unity content if you already have a firm concept of programming and the syntax.

L

I suggest just start coding.

For example:
Take the 3d shooter game demo as a reference, look at that tutorial and type the codes (don’t copy and paste)…

Then add adjustments yourself, like potion bottles or more weapons in the level.

“Coding isn’t hard”, it is really logical… just think what you want to do.
For example:
Their is an health script in the 3d shooter demo, if you look at the code and start a new script you can easily adjust it into a potion script.

Just think:

  • player hits object
  • collision
  • object needs to disappear
  • health needs to reduce (with for example: 10)
  • maybe a sound?
  • maybe health keeps reducing until player finds “anti-potion” (with help of a timer, something like; health = HealtStart - Time.time)
  • if player hits anti-potion, timer stops…
  • anti-potion disappears
    etc…

Remember, type as much as possible and skip the copy and paste for now.

Also look at the script reference, for instance you want to create a script that reduces health until player finds an anti-potion.
You decide to do this with a timer:
Go to the script reference and read the chapter of timer etc…