Extreme noob question

Hi there,

I decided to jump in WAY over my head and mess around with the iPhone.

I noticed on the demo movie the gamecontroller script but it isn’t in my version of Unity for iPhone. Do I need to create a custom script or should there be a default one somewhere?

Heh, in case anyone cares that’s my voice in the sample video. :stuck_out_tongue:

That entire project, including the controller scripts can be downloaded from the Resources area on our site:

Unity iPhone Examples

That video is of the Star Trooper demo, go get it! Then look at the others too as they’re likely to help as well.

Have fun!

Thanks for that, Mr Voice!

I’d downloaded it but was wondering if there was a default script - you’ve answered my question :slight_smile: Is it okay to muck around with scripts like that and use them in my own projects or do I have to start from scratch? Don’t wanna infringe on anyone’s copyright :wink:

Also, I have a bunch of coding books for iPhone/OS X which I’ll delve into t some stage (I haven’t coded since BASIC on a C64) but I really want to use Unity first as I doubt I’ll ever be able to make anything remotely fun without it. Javascript is the best option for scripting, yes? Any good books you could recommend or is it the sort of thing I could pick up by looking at examples and other’s work?

You are free to use any/all assets we provide in your own projects, commercial or otherwise, as long as those projects are created in Unity.

No, it’s not the “best” option at all, it and C# are on par with each other so choose what works best for you. This is a hotly debated topic and it really boils down to what you’d prefer to use, if that’s JavaScript then great, if that’s C# then great.

Books? No, not yet. There is one to be published later this fall but it’s not iPhone-specific (although it is Unity-specific). Check out all the stuff in our Resources area, there are tutorials, example projects and some great videos from our Unite conference (notably from Unite '08 and one that deals with Unity iPhone in specific). Then after that you can move on to the Unify Community Wiki and the growing number of 3rd party tutorials sites* to help you learn and master Unity.

*Like these:

http://vimeo.com/channels/ncsuunity
http://vimeo.com/ryanzec
http://unitytutorials.com/
http://unity-tutorials.com/
http://www.learnmesilly.com/

and more…

Great, thanks for all that info :slight_smile:

One more thing, which is easier to pick up for a noob? C# or JavaScript? I’m also using a Mac if that makes any difference…

if you are a self learner then potentially unityscript (its not javascript as the javascript you will find books and articles on on the web).

if you prefer books etc then C# as it is the same industry standard language as everywhere

Ah, okay - thanks for that :slight_smile: I’ll just try to learn from tutorials etc - no point filling my tiny brain with useless JS that I’ll never need. lol.