Jump to content

  • Log In with Google      Sign In   
  • Create Account

I've decided unity


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
14 replies to this topic

#1 InfamousTDK   Members   -  Reputation: 117

Like
1Likes
Like

Posted 26 July 2014 - 01:20 PM

I asked a question what engine to use and I've decided after reading the replies and reading up, to go with unity

Now I want to ask, I know no languages so I'm new to this.
In regards to the engine should I learn both unityscript or C#, or should I focus on one just one. If I should do both what should I learn first, time is not a issue for me so I can go as slow as needed.

One last thing any good places to learn or even a book you recommend based on the answer you can give to the language question above.

Thanks for your time and patience

Sponsor:

#2 mikeo01   Members   -  Reputation: 175

Like
3Likes
Like

Posted 26 July 2014 - 01:38 PM

Personally any sort of languages would be beneficial unless you'd like to just create graphics all day.

 

Personally I'd go with C# rather than Unity's proprietary UnityScript; mainly because you'll get used to using it and limit yourself to Unity in a way. Using JavaScript inside Unity is slightly different to using it under web dev.

 

It would be beneficial to learn either language as that will aid in your knowledge of code in general outside of "pure game development", which is handy. JavaScript is most often used along side web development, side client stuff whilst C# will get you into differing concepts and application use, which is invaluable.

 

 

Bottom line is, both have their uses outside of Unity and I'd probably be looking at the bigger picture and what other interests with coding you have smile.png

 

You'll probably fine you'll want to learn both eventually as your curiosity grows. So either is a way forward.


Edited by mikeo01, 26 July 2014 - 01:40 PM.


#3 InfamousTDK   Members   -  Reputation: 117

Like
0Likes
Like

Posted 26 July 2014 - 04:52 PM

Thanks for the response.

Can you recommend any books, website or videos to learn C#

#4 superman3275   Crossbones+   -  Reputation: 2061

Like
2Likes
Like

Posted 26 July 2014 - 06:06 PM

Using JavaScript inside Unity is slightly different to using it under web dev.

Very different :)!


I'm a game programmer and computer science ninja ph34r.png!

Here's my 2D RPG-Ish Platformer Programmed in Python + Pygame, with a Custom Level Editor and Rendering System!

 

Here's my Custom IDE / Debugger Programmed in Pure Python and Designed from the Ground Up for Programming Education!

Want to ask about Python, Flask, wxPython, Pygame, C++, HTML5, CSS3, Javascript, jQuery, C++, Vimscript, SFML 1.6 / 2.0, or anything else? Recruiting for a game development team and need a passionate programmer? Just want to talk about programming? Email me here:

hobohm.business@gmail.com

or Personal-Message me on here smile.png!


#5 Hodgman   Moderators   -  Reputation: 31984

Like
3Likes
Like

Posted 27 July 2014 - 02:06 AM

Using JavaScript inside Unity is slightly different to using it under web dev.

Very different smile.png!

Yeah they call it "JavaScript", but you're actually writing Boo code! They've written a whole bunch of macros to make it seem like you're writing JavaScript code.



#6 superman3275   Crossbones+   -  Reputation: 2061

Like
0Likes
Like

Posted 27 July 2014 - 07:01 AM

 

Using JavaScript inside Unity is slightly different to using it under web dev.

Very different smile.png!

Yeah they call it "JavaScript", but you're actually writing Boo code! They've written a whole bunch of macros to make it seem like you're writing JavaScript code.

Don't they use Boo because it's built on .NET, and they can compile it to bytecode and use it just like C#?


I'm a game programmer and computer science ninja ph34r.png!

Here's my 2D RPG-Ish Platformer Programmed in Python + Pygame, with a Custom Level Editor and Rendering System!

 

Here's my Custom IDE / Debugger Programmed in Pure Python and Designed from the Ground Up for Programming Education!

Want to ask about Python, Flask, wxPython, Pygame, C++, HTML5, CSS3, Javascript, jQuery, C++, Vimscript, SFML 1.6 / 2.0, or anything else? Recruiting for a game development team and need a passionate programmer? Just want to talk about programming? Email me here:

hobohm.business@gmail.com

or Personal-Message me on here smile.png!


#7 Lithander   Members   -  Reputation: 245

Like
0Likes
Like

Posted 27 July 2014 - 05:00 PM


Can you recommend any books, website or videos to learn C#

 

http://www.microsoftvirtualacademy.com/training-courses/c-fundamentals-for-absolute-beginners

 

Got nothing to do with Unity but if you want to become a game programmer imho you should learn to code first and worry about Unity later.



#8 Gian-Reto   Members   -  Reputation: 1822

Like
1Likes
Like

Posted 28 July 2014 - 03:17 AM

Just to make sure you didn't miss it:

 

The Unity homepage is full of technical tutorials and language references. As far as I know there are also some useful beginners tutorials.I have no access to the Unity page right now, but I might be able to dig up some good ones for you later on if you like.

 

Altough I do agree with Lithander on the topic "I fyou want to become a programmer, learn the language", and really, using C# inside Unity is going to be a looong journey to really learn the language (as long as you don't start on an Unity project of epic proportions codewise)... as you didn't state that you are in this for learning to program, if you are just looking for some code to move your objects, you will be able to find useful code on the Unity page and with short Google searches quickly.

 

of course, every game dev should learn some minimum programming skills if you ask me. Just so he doesn't see his programmers as practitioners of black magic anymore ;)


Edited by Gian-Reto, 28 July 2014 - 03:19 AM.


#9 InfamousTDK   Members   -  Reputation: 117

Like
0Likes
Like

Posted 28 July 2014 - 07:49 AM

Just to make sure you didn't miss it:
 
The Unity homepage is full of technical tutorials and language references. As far as I know there are also some useful beginners tutorials.I have no access to the Unity page right now, but I might be able to dig up some good ones for you later on if you like.
 
Altough I do agree with Lithander on the topic "I fyou want to become a programmer, learn the language", and really, using C# inside Unity is going to be a looong journey to really learn the language (as long as you don't start on an Unity project of epic proportions codewise)... as you didn't state that you are in this for learning to program, if you are just looking for some code to move your objects, you will be able to find useful code on the Unity page and with short Google searches quickly.
 
of course, every game dev should learn some minimum programming skills if you ask me. Just so he doesn't see his programmers as practitioners of black magic anymore ;)

  

Can you recommend any books, website or videos to learn C#

 
http://www.microsoftvirtualacademy.com/training-courses/c-fundamentals-for-absolute-beginners
 
Got nothing to do with Unity but if you want to become a game programmer imho you should learn to code first and worry about Unity later.


Thanks for the help. Yeah I want and am willing to learn a language.

I may have missed that bit in my op, but I wanted to ask which is most worthwhile and relevant to use later on with unity.

I appreciate the link and I'll check it out.

#10 Xyexs   Members   -  Reputation: 124

Like
0Likes
Like

Posted 29 July 2014 - 04:19 AM

 

Just to make sure you didn't miss it:
 
The Unity homepage is full of technical tutorials and language references. As far as I know there are also some useful beginners tutorials.I have no access to the Unity page right now, but I might be able to dig up some good ones for you later on if you like.
 
Altough I do agree with Lithander on the topic "I fyou want to become a programmer, learn the language", and really, using C# inside Unity is going to be a looong journey to really learn the language (as long as you don't start on an Unity project of epic proportions codewise)... as you didn't state that you are in this for learning to program, if you are just looking for some code to move your objects, you will be able to find useful code on the Unity page and with short Google searches quickly.
 
of course, every game dev should learn some minimum programming skills if you ask me. Just so he doesn't see his programmers as practitioners of black magic anymore ;)

  

 

Can you recommend any books, website or videos to learn C#

 
http://www.microsoftvirtualacademy.com/training-courses/c-fundamentals-for-absolute-beginners
 
Got nothing to do with Unity but if you want to become a game programmer imho you should learn to code first and worry about Unity later.


Thanks for the help. Yeah I want and am willing to learn a language.

I may have missed that bit in my op, but I wanted to ask which is most worthwhile and relevant to use later on with unity.

I appreciate the link and I'll check it out.

 

https://buckysroom.org/videos.php?cat=15

Video tutorials here, they might not be for you, but it's around 200 * 5-10 min.

 

I haven't seen these, but i followed his java and c++ tutorials and they are nice biggrin.png

 

Also, it doesn't matter what you script in in unity. But if you want to proceed with ex. OpenGL you'll wanna learn a c language (c,c++,c#).

If you wanna make websitelike stuff, use javascript.


Edited by Xyexs, 29 July 2014 - 04:21 AM.


#11 InfamousTDK   Members   -  Reputation: 117

Like
0Likes
Like

Posted 29 July 2014 - 06:58 AM

I am right in thinking that C# can be used completely in Unity to create a project from scratch?

Meaning by using that I can just use code to create a game, instead of the copy/paste of items and such

#12 Gian-Reto   Members   -  Reputation: 1822

Like
0Likes
Like

Posted 29 July 2014 - 07:46 AM

I am right in thinking that C# can be used completely in Unity to create a project from scratch?

Meaning by using that I can just use code to create a game, instead of the copy/paste of items and such

 

You can do a lot in Unity with C#... if you know how.

 

 

Now, I am not sure what your question here really is.

 

 

If your question was if you have to use the editor:

 

Unity is just a tool that takes your input (scripts, 3D Objects, Sounds, ...) and builds an executable game out of it. How you structure your project, is completly up to you.

 

Of course, Unity was meant to be used with their Component-based architecture: You use the editor to create a level by placing 3D Objects, assign physics compoents, and in the end write behaviour scripts attached to the objects in the scene to get things moving.

 

But you don't have to. There are multiple people building their Unity projects in a completly different way.

 

For example some people will create scripts, or maybe even c++ Programs (yes, you can run them from a Unity script... You just can't open and change them in the Unity editor), that will generate stuff on the fly. They will place your mobs or other level objects, they might generate completly random levels, and so on.

Here, the code in the C# or Unityscript script or C++ Program will create the levels needed for the game, without creating them in the editor.

 

Of course the editor is still useful for some tasks. Importing 3D Objects and Textures for example. 

 

 

If your question is if you can write everything or if you have to copy and paste:

 

Of course! That is the ultimate goal of every tool like Unity to give you the ability to write your own code and come up with original ideas nobody else has thought about.

 

But don't be afraid to use the occasional sprinkling of some copy-pasta code when you get stuck on a problem. Most professional programers are masters of the arcane arts of Google-Fu... its part of the secret to their awesome code (because to become good at something, you will need to learn from others first).

 

The good thing about an Engine with a huge community like Unity is: if you want to code away on your own, you can. If you get stuck and need to get some help, its always just around the corner.

 

 

If your question was just about the way you place Objects in the Scene in the Editor:

 

I think even in some of the most basic tutorials you will learn how to instanciate a prefab.

What "Instanciating a Prefab" means is: You have a preconfigured object (with physics, 3D Model, attached scripts) and place it somewhere in the running game.

 

How you create your prefab is up to you. Easiest is probably in the editor with drag and drop, you could of course also do this in code.



#13 InfamousTDK   Members   -  Reputation: 117

Like
0Likes
Like

Posted 29 July 2014 - 08:24 AM

I am right in thinking that C# can be used completely in Unity to create a project from scratch?
Meaning by using that I can just use code to create a game, instead of the copy/paste of items and such

 
You can do a lot in Unity with C#... if you know how.
 
 
Now, I am not sure what your question here really is.
 
 
If your question was if you have to use the editor:
 
Unity is just a tool that takes your input (scripts, 3D Objects, Sounds, ...) and builds an executable game out of it. How you structure your project, is completly up to you.
 
Of course, Unity was meant to be used with their Component-based architecture: You use the editor to create a level by placing 3D Objects, assign physics compoents, and in the end write behaviour scripts attached to the objects in the scene to get things moving.
 
But you don't have to. There are multiple people building their Unity projects in a completly different way.
 
For example some people will create scripts, or maybe even c++ Programs (yes, you can run them from a Unity script... You just can't open and change them in the Unity editor), that will generate stuff on the fly. They will place your mobs or other level objects, they might generate completly random levels, and so on.
Here, the code in the C# or Unityscript script or C++ Program will create the levels needed for the game, without creating them in the editor.
 
Of course the editor is still useful for some tasks. Importing 3D Objects and Textures for example. 
 
 
If your question is if you can write everything or if you have to copy and paste:
 
Of course! That is the ultimate goal of every tool like Unity to give you the ability to write your own code and come up with original ideas nobody else has thought about.
 
But don't be afraid to use the occasional sprinkling of some copy-pasta code when you get stuck on a problem. Most professional programers are masters of the arcane arts of Google-Fu... its part of the secret to their awesome code (because to become good at something, you will need to learn from others first).
 
The good thing about an Engine with a huge community like Unity is: if you want to code away on your own, you can. If you get stuck and need to get some help, its always just around the corner.
 
 
If your question was just about the way you place Objects in the Scene in the Editor:
 
I think even in some of the most basic tutorials you will learn how to instanciate a prefab.
What "Instanciating a Prefab" means is: You have a preconfigured object (with physics, 3D Model, attached scripts) and place it somewhere in the running game.
 
How you create your prefab is up to you. Easiest is probably in the editor with drag and drop, you could of course also do this in code.


Yeah I was basically asking can I code from scratch and was asking what language was more worthwhile to learn for it, of course there would be some things I'd have to google and use from others.

But yeah I basically wanted to learn a language and eventually code a project, nothing big or fancy

#14 mikeo01   Members   -  Reputation: 175

Like
2Likes
Like

Posted 29 July 2014 - 12:10 PM

Put it this way, don't start with the question "What language is best", instead learn the programming fundamentals. Understand OOP, how objects interact, understand classes and structures and why they are used, understand arrays, lists and maps etc.

 

The language is the platform, its only the syntax that really changes smile.png you'll use the same technique in Java, C#, C++, JavaScript. The only differences between these languages is the way in which they are used, most suited to and basically what you can do with them. 

 

Once you've understood programming concepts in general the sky is the limit.

 

 

In fact what I've picked up recently is that although I've gotten pretty used to C++ I am looking at learning Python for the simplicity of it, because I can use that in Blender. The engine will do the heavy lifting if you need it. During a project if you want to focus more on the design and visual aspects for the time being you can smile.png if you figure you'd like something to happen at a lower level (I don't know, AI logic) you can. Try that without an engine and it is a lot more difficult to switch between graphics and the underlying logic. So I believe Unity is a good place to start.

 

 

 

Like everything, you'll endlessly be learning syntax, as long as you understand the logic and workflow you'll be fine smile.png

 

 

Especially for indie developers, you've got the full power of OpenGL and DirectX, but unless you really need all those features, and optimisations it can offer you may as well stick to an engine that'll make your life easier.

 

 

One last note: The only thing I would not recommend is going into Unity without understanding programming concepts, because when something is implemented or you would like to implement something, things will get messy. Quickly. Understand the nitty gritty stuff and you'll happily use JavaScript, UnityScript, C# fine, because you'll know how things work under the hood.

 

Understanding languages will get you confused, understanding concepts and techniques will progress your knowledge further smile.png


Edited by mikeo01, 29 July 2014 - 12:14 PM.


#15 Gian-Reto   Members   -  Reputation: 1822

Like
0Likes
Like

Posted 30 July 2014 - 03:12 AM

One last note: The only thing I would not recommend is going into Unity without understanding programming concepts, because when something is implemented or you would like to implement something, things will get messy. Quickly. Understand the nitty gritty stuff and you'll happily use JavaScript, UnityScript, C# fine, because you'll know how things work under the hood.

 

Understanding languages will get you confused, understanding concepts and techniques will progress your knowledge further smile.png

 

+1

 

This is what a lot of programming newbies need to understand: the differences between most languages are smaller than you think.

 

Learning a new language is pretty easy when you know the core concepts of most programming languages. The hard part is then learning the new concepts unique to this new language.

 

A Java programmer will happily churn out C++ code after a short time of looking up the different syntax, as long as you hide the memory management and pointer topics from him.

I've used a C++ Engine that used Macros and stuff like that to basically hide away all the difficulties of C++. Besides using different syntax elements from time to time I was feeling right at home as a long time Java programmer (not saying here that this specific Engine/Framewrok design is inherently a good choice, just pointing out how similar Java and C++ Syntax is in their cores)

 

 

In the beginning it matters little what language you start with IMO.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS