5 Unity game examples: C# scripting tutorial for beginners

Discussion in 'Teaching' started by MikeHergaarden, Jun 8, 2010.

  1. MikeHergaarden

    MikeHergaarden

    Member

    Joined:
    Mar 9, 2008
    Messages:
    894
    Unity game examples - C# scripting tutorial for beginners

    [​IMG]

    About
    I'm hereby releasing my latest tutorial to the public (for free). This tutorial has been originally created for Creative Technology, Universiteit Twente and Multimedia @ VU Amsterdam. The tutorial is aimed at users who are new to Unity scripting. This time I'm showing you a collection of game examples to demonstrate how basic unity games work. This tutorial comes with a premade example project.

    I hope this tutorial can help you get going with Unity!


    Download
    Links to the webplayer, PDF and project folder download can be found here:
    http://m2h.nl/unity
    Last edited: Dec 5, 2011
    deLord and q_dork like this.
  2. KarelA

    KarelA

    Member

    Joined:
    Dec 30, 2008
    Messages:
    334
    Thank you thank you. Your tutorials and C# converter has been always so helpful :)

    A great source of inspiration :)

    Thank you.
  3. KHopcraft

    KHopcraft

    Member

    Joined:
    Jun 6, 2009
    Messages:
    3,223
    Coo man, thats really cool.
  4. Creative

    Creative

    New Member

    Joined:
    May 8, 2010
    Messages:
    184
    looks good! ty leepo
  5. tiago

    tiago

    Member

    Joined:
    Sep 27, 2009
    Messages:
    15
    Great c# resource, thanks a lot for taking the time to provide the community with this, Leepo!
  6. MikeHergaarden

    MikeHergaarden

    Member

    Joined:
    Mar 9, 2008
    Messages:
    894
    Thanks all, your comments are appreciated :)
  7. shader

    shader

    New Member

    Joined:
    Apr 4, 2009
    Messages:
    251
    Thank you Mike !

    I really like these easier tutorials as they give me good ideas

    Anymore planned ??

    Cheers
  8. HJP

    HJP

    New Member

    Joined:
    Jul 8, 2009
    Messages:
    152
    Your tutorials are so clean. I like that. Good work. Thanks
  9. retaf99

    retaf99

    New Member

    Joined:
    Jan 14, 2010
    Messages:
    11
    Thank you so much, this is great stuff!
  10. HJP

    HJP

    New Member

    Joined:
    Jul 8, 2009
    Messages:
    152
    What's your solution to sync animations?
  11. Creative

    Creative

    New Member

    Joined:
    May 8, 2010
    Messages:
    184
    @HJP look in the unity's networking example.
  12. HJP

    HJP

    New Member

    Joined:
    Jul 8, 2009
    Messages:
    152
    @Creative, thanks for the advice ....
  13. satrebor

    satrebor

    New Member

    Joined:
    Feb 7, 2010
    Messages:
    71
    M2H is the best thing ever! ^^ thank you
  14. sandolkakos

    sandolkakos

    Member

    Joined:
    Jun 3, 2009
    Messages:
    133
    Thanks very much Leepo.
    God Bless you...
  15. mikesgames

    mikesgames

    New Member

    Joined:
    Apr 16, 2010
    Messages:
    1,072
    Thanks for these Leeopo!!
  16. KidNiki

    KidNiki

    New Member

    Joined:
    Jun 11, 2010
    Messages:
    7
    These are great, thanX a ton man!!! :D
  17. flim

    flim

    New Member

    Joined:
    Mar 22, 2008
    Messages:
    323
    Thank you so much! That's what I am looking for.
  18. Kalmak

    Kalmak

    New Member

    Joined:
    Nov 15, 2008
    Messages:
    44
    Hey Leepo

    The example games look great but I can't seem to track down the pdf file that is supposed to go with it. I've looked in the files downloaded from the asset store and on the M2H website but no luck. I can go through the code and track things down, I just wanted to make sure I wasn't missing something.

    Thanks again

    K
  19. MikeHergaarden

    MikeHergaarden

    Member

    Joined:
    Mar 9, 2008
    Messages:
    894
    The file is in the root of the project: /UnityGameExamples_by_M2H.pdf
    In the asset store view it's the bottom most file.
  20. Kalmak

    Kalmak

    New Member

    Joined:
    Nov 15, 2008
    Messages:
    44
    Huh my import must not have been complete. Just went back to the store and sure enough it was there. Thanks a bunch

    K
  21. djpercy

    djpercy

    New Member

    Joined:
    Feb 23, 2011
    Messages:
    1
    Hi,

    how can i found the tutorial? Thanks a lot!

    Greetings Denis
  22. MikeHergaarden

    MikeHergaarden

    Member

    Joined:
    Mar 9, 2008
    Messages:
    894
    Last edited: Feb 24, 2011
  23. Aurelio

    Aurelio

    New Member

    Joined:
    Apr 9, 2011
    Messages:
    6
    Hi, thanks for the tutorials!

    I have one question, when I open the files all the Game Objects miss the links to the scripts and items. I don't mind attaching them myself, but there is no way of knowing which script or item I should attach where.
    But maybe I am doing this the wrong way (new project and then drag and drop the tutorial files in the project list), although I don't know how to make this work in another way.

    Anyway, help will be much appreciated.

    Thanks!
    Aurelio
  24. MikeHergaarden

    MikeHergaarden

    Member

    Joined:
    Mar 9, 2008
    Messages:
    894
    Yes, you should open the folder as project. Dragging the files into an existing project will result in a loss of 'links'.
  25. rockysam888

    rockysam888

    Member

    Joined:
    Jul 28, 2009
    Messages:
    622
    Hi Leepo,

    I also got the loss of 'links'
    What is the proper step to run the program?

    Thanks in advance
  26. MikeHergaarden

    MikeHergaarden

    Member

    Joined:
    Mar 9, 2008
    Messages:
    894
    Did you try creating a fresh, empty project and then reimporting the package via the asset store?
  27. Aurelio

    Aurelio

    New Member

    Joined:
    Apr 9, 2011
    Messages:
    6
    Thx! I've got it working now. Wonderful project!
  28. Rush Rage Games

    Rush Rage Games

    Member

    Joined:
    Sep 9, 2010
    Messages:
    1,999
    Awesome stuff, thanks!
  29. andie12serador

    andie12serador

    New Member

    Joined:
    Apr 17, 2011
    Messages:
    3
  30. zeldafan_mimo

    zeldafan_mimo

    New Member

    Joined:
    Jan 27, 2010
    Messages:
    23
    Is there Anyway i can Downlaod this Outside the Asset Store.. Mine doesent open.. when i press downlaod from WWW.M2H.NL\UNITY
    i get a Link to the Asset Store :(
  31. rockysam888

    rockysam888

    Member

    Joined:
    Jul 28, 2009
    Messages:
    622
    This product is free in Asset Store. And it is the only way now to download it.
  32. brumdogpro

    brumdogpro

    New Member

    Joined:
    Nov 18, 2011
    Messages:
    52
    I downloaded these and I just want to say that these are wonderful starting points if you are learning C#. I recommend that anybody try to look at these and just filter through the scripts. You might just learn something. ;)
  33. BrandeX

    BrandeX

    New Member

    Joined:
    Dec 5, 2011
    Messages:
    1
    Dead link?
    http://u3d.as/content/116
  34. Hujo

    Hujo

    New Member

    Joined:
    Dec 6, 2011
    Messages:
    88
    even though i just started, and haven't reached the scripting parts yet,seriously, thank you =) your code will offer a lot of teaching =)
  35. Nomad72

    Nomad72

    New Member

    Joined:
    Oct 25, 2011
    Messages:
    117
    Thank you, very useful!
  36. atmob

    atmob

    New Member

    Joined:
    Jan 20, 2012
    Messages:
    22
    Hi ,
    Im triing to get you asset from the store , but is suck at billing 38% , is like this fro one day ?! rebooted restarted unity ... and nothing.
    And by the way, are those game supported by mobile ?

    Any tip ?
    @mob


    Tried today again an it worked ;)

    Tks
    Last edited: Jan 26, 2012
  37. DrPygameNewb

    DrPygameNewb

    New Member

    Joined:
    May 6, 2011
    Messages:
    136
    Had you thought about making any other examples in the future?

    Downloaded it, went with the approach of building the egg catching game by scratch. Collision didn't work. And the meshcollider for the basket didn't collide with the spheres. I generated a isosphere in blender but the model didn't appear.
    Last edited: Feb 5, 2012
  38. urg0tt

    urg0tt

    New Member

    Joined:
    Aug 6, 2012
    Messages:
    1
    Hi! :)

    I've started to do some exercises from the "UnityGameExamples_by_M2H.pdf". Are there any solutions for it? I would like to check if mine are correct and I need some hints for some of them. Thanks.
  39. JakeX

    JakeX

    New Member

    Joined:
    Sep 3, 2012
    Messages:
    1
    Hey,

    Thanks very much for the files. The scripting really is helping me understand how to program a lot better.
  40. MikeHergaarden

    MikeHergaarden

    Member

    Joined:
    Mar 9, 2008
    Messages:
    894
    urg0tt: I dont have any solutions available. Most important is whether your approach works..just run some user tests and try to find edge cases (e.g. moving out of the screen or so).

    Jake: glad it's of help!
  41. softcon

    softcon

    New Member

    Joined:
    Sep 25, 2012
    Messages:
    1
    Hi,

    i am new to unity platform and i want to download your tutorial but i am unable to download because link is broken can you please tell how can i download these 5 tutorials?? Thanks
  42. MikeHergaarden

    MikeHergaarden

    Member

    Joined:
    Mar 9, 2008
    Messages:
    894
  43. SubZeroGaming

    SubZeroGaming

    Member

    Joined:
    Mar 4, 2013
    Messages:
    510
    Hi Mike,

    Are these tutorials suppose to be Interactive? Or are we suppose to just read the scripts? And you have commented through them?

    Thanks :)
  44. Amurchik1

    Amurchik1

    New Member

    Joined:
    Apr 3, 2013
    Messages:
    5
    Hello, and please tell me, is there a book on Unity 3d four describing the language programming c #
  45. lisa5134

    lisa5134

    New Member

    Joined:
    Sep 7, 2013
    Messages:
    1
    I am very new to Unity (never actually heard about it before) and new to coding (I took a C++ class back in 95...didn't do to well). I would like to create a basic bowling game, but I don't know how to go about coding it, let alone which language is better (C# or Javascript). Can someone point me in the right direction of a great tutorial that will help me please? Thank you.